campa.tl.thresholded_count
- thresholded_count(df, threshold=0.9)[source]
Count largest CSL objects per cell.
Sort objects by area (largest areas first) and count how many are needed to exceed threshold % of the total area. This is essentially a small object invariant way of counting big objects. Can be used as aggregation function in
FeatureExtractor.get_object_stats().- Parameters
threshold – Only consider large objects up to the cumulative sum of 90% of the total area.
- Return type
count