Stefan, I concur. Juan, 0.9 might have been a more plausible value, since if I'm not mistaken it is "number of pixels in image / number of pixels in the convex hull". Convex hull image will have more number of pixels. ;) Couple of things: 1. This error seems to pop up for this specific case. In the sense, if you remove the 1 in the 1st row, `regionprops` computes the 'Solidity' perfectly. No need of padding as well. 2. The error comes up for all the three 'ConvexImage', 'ConvexArea' and 'Solidity' even with the padded image. Whereas, `convex_hull_image` computes it alright. So, specifically for this padded case there seems to be a problem with the way the array is being passed and not Delaunay. First, I think we need to find why the dual nature, `convex_hull_image` independently works fine but not from `regionprops`. Next and a probable way forward would be try/except, if an error occurs, then pad the image and again try/except. What do you'll think? Chintak
participants (1)
-
Chintak Sheth