- For 2D median filtering, you can use the "medfilt2" function. Refer to the documentation here: https://www.mathworks.com/help/images/ref/medfilt2.html
- For segmentation using K-means clustering, you can use the "imsegkmeans" function. You can tune the number of clusters according to your use case. Refer to the documentation here: https://in.mathworks.com/help/images/ref/imsegkmeans.html
- Next, the tumor can be detected by applying binary thresholding. This can be achieved using the "imbinarize" function. Refer to the link here: https://www.mathworks.com/help/images/ref/imbinarize.html
How to detect objects in images using ROI
8 次查看(过去 30 天)
显示 更早的评论
I want to detect physical changes in the image and display the changes using the ROI method.
1. Picture 1 shows the original image
2. Picture 2 shows the physical changes
And I hope the result is like the following image
0 个评论
回答(1 个)
Shreeya
2024-2-20
From the given image, I'm assuimg that you want to apply a median filter on your image for noise removal, followed by segmentation using K-means clustering algorithm and thresholding.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!