seung-lab / fill_voids

Fill holes in binary 2D & 3D images fast.
GNU General Public License v3.0
16 stars 4 forks source link

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

Open ogencoglu opened 5 days ago

ogencoglu commented 5 days ago

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?

william-silversmith commented 5 days ago

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: @.***>