Getting all points which are inside of the convexhull
Show older comments
I have an image in 3D. I'd like to get all points which are inside its convexhull, but don't belong to the image. So I'd like to do something like this:
[K, V] = convhull(image);
result= zeros(size(image));
result(K == 1 & granule == 0) = 2;
It doesn't work, because K is of size x (the number of rectangles which create the convex hull) by 3.
How can I do it properly?
Accepted Answer
More Answers (0)
Categories
Find more on Bounding Regions in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!