seung-lab / connected-components-3d

Connected components on discrete and continuous multilabel 3D & 2D images. Handles 26, 18, and 6 connected variants; periodic boundaries (4, 8, & 6)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

3d small object cannot removed when use cc3d. connected-compoenents?

selvakarna opened this issue · comments

3d small object cannot removed when use cc3d. connected-compoenents?:

from reference : #21

its not workin @william-silversmith

The code you referenced looks correct to me. Are you sure you're getting some mask_ids back? Maybe try a bigger dust_threshold, 50 is very small (a 4x4x4 cube is bigger). I often go as high as 1000.

Hi @william-silversmith ,
if i increase threshold as 10000 , its error. can you share sample code remove , unwanted small 3d volume?

Can you share the error? The code you were using looked good to me. If you want to try something else, you can give https://github.com/seung-lab/fastremap/ a try.