Segmentation not working properly?
5 views (last 30 days)
Show older comments
Warid Islam on 17 Oct 2022
Commented: Warid Islam on 21 Oct 2022
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.
Find more on Image Segmentation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!