Show binarized classes when recenter_mask_binary is true [feature request]


The recenter_mask_binary parameter in 2D classification, when combined with the recenter_mask_threshold parameter, are useful for obtaining well-centered 2D classes, which is important for template picking.

As I understand it, what these parameters do is binarize the 2D class at a certain fraction of the maximum density, and use that for recentering, rather than using a grayscale-weighted average.

At present, the default threshold is 0.2, but it’s difficult to see what this means, as there is no way to visualize this threshold on the 2D classes.

Would it be possible, if this parameter is set to true, to output the binarized classes which are used for recentering? This would be useful to judge what threshold to use.

Alternatively/additionally, it would be useful to have an option to recenter classes when they are used for template picking (perhaps recentering after low-pass filtering and binarizing).


1 Like