Optionally take largest blob for recenter mask in Class2D

Hi,

When 2D-classifying small particles on crowded grids, the recentering mask often has two or more discontinuous regions, leading to suboptimal recentering behavior and loss of particles that might be retained if the convergence radius for recentering were larger.

It would be useful to have an option in Class2D to just keep the largest masked region (this would also help avoid including streaks or artefacts in the recentering mask).

1 Like

Hi @olibclarke,

We’ve recorded this feature request!

-Katherine

1 Like

Hi,

This would still be really useful to have!

I’ve implemented it in a CS tools script:

https://www.dropbox.com/scl/fi/4bevgpzjv279y5u4cnl8j/recenter_2d_classes.py?rlkey=lay5vhbl1hall0ymoxolqfuvz&dl=0

(This actually recenters on either the largest blob, or the one closest to the box center, depending on options)

But this only allows recentering particles after 2D. It would be helpful if this happened on the fly, to avoid these kind of classes emerging:

These are pretty common for small, crowded particles, and I suspect lead to early loss of good particles.

Cheers

Oli

1 Like