haesleinhuepf / napari-skimage-regionprops

Feature extraction for labeled objects in images using regionprops from scikit-image
BSD 3-Clause "New" or "Revised" License
47 stars 13 forks source link

Avoid 'convex_area' measurements when 2D labels in 3D images #45

Closed zoccoler closed 1 year ago

zoccoler commented 1 year ago

Hi Robert @haesleinhuepf ,

As we briefly discussed, I am adding a small temporary workaround to avoid scikit-image regionprops bug when calculating measurements related to 'convex_area' in 3D images when there is a 2D label present.

Basically, it does not compute measurements that rely on that. I am working to get it fixed there, and then these changes can be dropped here, but for now it will avoid error messages for users in napari.

This PR may be of interest to #27 , not a final solution though.

CCing @marabuuu :)

Best, Marcelo

haesleinhuepf commented 1 year ago

Awesome, thanks @zoccoler !