- 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 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Shreeya
on 20 Feb 2024
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 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!