trackpy.minmass_v03_change

trackpy.minmass_v03_change(raw_image, old_minmass, preprocess=True, invert=False, noise_size=1, smoothing_size=None, threshold=None)

Convert minmass value from v0.2.4 to v0.3.

From trackpy version 0.3.0, the mass calculation is changed. Before version 0.3.0 the mass was calculated from a rescaled image. From version 0.3.0, this rescaling is compensated at the end so that the mass reflects the actual intensities in the image.

This function calculates the scalefactor between the old and new mass and applies it to calculate the new minmass filter value.

Parameters:
raw_imagendarray
old_minmassnumber
preprocessboolean, optional

Defaults to True

invertboolean, optional

Defaults to False

noise_sizenumber, optional

Defaults to 1

smoothing_sizenumber, optional

Required when preprocessing. In locate, it equals diameter by default.

thresholdnumber, optional
Returns:
New minmass