fill_voids icon indicating copy to clipboard operation
fill_voids copied to clipboard

Does 2D fill has the concept of scipy's 'structure' ?

Open ogencoglu opened this issue 1 year ago • 1 comments

In scipy binary_fill_holes, one can control the definition of "hole" with e.g. structure=ndimage.generate_binary_structure(2, 2).

This specific example will produce

image

vs fill_voids fill:

image

The reason is the diagonal pixel on top right.

Does this library has such control?

ogencoglu avatar Oct 05 '24 10:10 ogencoglu

Hi, unfortunately this capability does not exist in fill_voids.

On Sat, Oct 5, 2024, 6:52 AM Oguzhan Gencoglu @.***> wrote:

In scipy binary_fill_holes, one can control the definition of "hole" with e.g. structure=ndimage.generate_binary_structure(2, 2).

This specific example will produce

image.png (view on web) https://github.com/user-attachments/assets/00dcc23a-c721-4e1f-a8da-629d019c3650

vs fill_voids fill:

image.png (view on web) https://github.com/user-attachments/assets/ee59350a-124f-4fcb-b99b-63cdd3a9b42d

The reason is the diagonal pixel on top right.

Does this library has such control?

— Reply to this email directly, view it on GitHub https://github.com/seung-lab/fill_voids/issues/9, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATGQSPYEWDAZEXFJ722NU3ZZ7AF5AVCNFSM6AAAAABPNHUWWKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGU3DOOBVGUYDQMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

william-silversmith avatar Oct 05 '24 14:10 william-silversmith