Segmentation not working properly?
3 views (last 30 days)
I want to segment tumors from stomach. 'u2.png' is the original image. The region inside the red boundary should be the actual segmentated region. However, my segmentation result is 'u1.png', which is not correct. I tried the method below. Any suggestions would be appreciated, Thank you.
T = graythresh(m); % find the threshold for input image
S = imbinarize(m,T); % Segment the image using thresholding
binaryImage = imfill(S, 'holes');
BW = bwareafilt(binaryImage, 1);
Vinayak Choyyan on 20 Oct 2022
As per my understanding, you are trying to perform medical image segmentation. I see you are trying to use predefined segmentation techniques but have not got good results.
Please check out this link
to know more about the segmentation tools and methods provided in MATLAB and easily try out various segmentation techniques, including deep learning based segmentation, through MATLAB’s Image Segmenter App. You can also use the Image Segmenter App to refine the segmentation and get better results.