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_image : ndarray old_minmass : number preprocess : boolean, optional
invert : boolean, optional
noise_size : number, optional
smoothing_size : number, optional
threshold : number, optional |
---|---|
Returns: | New minmass |