MATLAB: How to remove the boundary around an object

boundarycannyedgeimage processingmaximumpixelremove noise

I have a dicom Image and I applied edge command on it (canny) but now I want to remove the edge or boundary around the object.I tried to use some for loop for it but it doesn't work properly. Is there any other command so that I can use? and also I want to remove some noise around the image,what should I do? The main thing that I want is to find the maximum pixel of this image,but because there is some highlight boundary around the image I can not find the maximum which is inside the picture. Is there any other way for finding maximum pixel inside the image?

Best Answer

Please have a look at regionprops and bwboundary
Related Question