Hello,
I can see that the convhull doesn't work unless all objects have their thickness > 1. however, i am working on images that come from microscopy pictures, and i can not garantee that condition. don't you think that convhull should return correctly even when it encounters objects that are 'lines' of 1 or more pixels? here are 2 examples, the first will work, and the second fails, where i am expecting the second to actually return the coordinates of the object itself, what do you think?
I=[0 1 1 0; 1 1 1 1; 0 0 0 0];
[x, y] = find(I==1);
inds = convhull(x, y);
I2=[0 0 0 0; 1 1 1 1; 0 0 0 0];
[x, y] = find(I2==1);
inds = convhull(x, y);
Thanks,
Karen