I am following one tutorial “Segment Lungs from 3-D Chest Scan” to get 3D structure based on scanned images. Instead of getting details inside the object, I only want it stops at the boundary and everything inside is solid. So I try to use “edge” method after using bwconvhull() for activecontour(). However, the images that work fine with “Chan-Vese” method are now not working with “edge”.
Here is the error message,
“Iterations terminated prematurely because no part of the contour lies within the image domain. If the range of pixel values in the input image is small (such as 0-1), consider increasing the range by multiplying the input image with a scale factor. Also, consider specifying a different initial contour position in MASK.”
I have seen this procedure working with 2D images,
So, is “edge” method working for 3D?