How to detect objects in images using ROI
Afficher commentaires plus anciens
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

Réponses (1)
Shreeya
le 20 Fév 2024
0 votes
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.
- 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
Catégories
En savoir plus sur Image Segmentation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!