geowatch.tasks.tracking.agg_functions module

aggregation functions for heatmaps

geowatch.tasks.tracking.agg_functions.binary(heatmaps, norm_ord, morph_kernel, thresh, viz_dpath=None)[source]
geowatch.tasks.tracking.agg_functions.rescaled_binary(heatmaps, norm_ord, morph_kernel, thresh, upper_quantile=0.999, viz_dpath=None)[source]
geowatch.tasks.tracking.agg_functions.probs(heatmaps, norm_ord, morph_kernel, thresh, viz_dpath=None)[source]
geowatch.tasks.tracking.agg_functions.rescaled_probs(heatmaps, norm_ord, morph_kernel, thresh, upper_quantile=0.999, viz_dpath=None)[source]
geowatch.tasks.tracking.agg_functions.mean_normalized(heatmaps, norm_ord=1, morph_kernel=1, thresh=None, viz_dpath=None)[source]

Normalize average_heatmap by applying a scaling based on max(heatmaps) and max(average_heatmap)

geowatch.tasks.tracking.agg_functions.frequency_weighted_mean(heatmaps, thresh, norm_ord=0, morph_kernel=3, viz_dpath=None)[source]

Convert a list of heatmaps to an aggregated score, averaging is computed based on samples for every pixel