MATLAB: How can i morphologically “close” a certain part of an image? so that it can be used for a semi-automatic tumor recognition function.

Image Processing Toolboximage segmentationmri

I wrote a semi-automatic function for a tumor segmentation system. The function delivers a picture where enhancing tumor tissue and necrotic tumor tissue are highlited. And the comparison with an expert segmentation is made. The problem is when the enhancing tumor tissue isn't "closed", the necrotic tissue can't be recognized anymore. I've tried using imclose and bwmorph(IM,'close',kernel) but this doesn't seem to help. Also imdilate has to little effect to efficiently close the tumor tissue. Does anybody have an idea to help me? I've provided the code, and the input images for the function.

Best Answer

Not sure what your ideal output would be. Please include that. Maybe you want bwconvhull() or activecontour() (demo attached) - I'm not sure.
Related Question