- 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
조회 수: 5 (최근 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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1452677/image.png)
And I hope the result is like the following image
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1452682/image.png)
댓글 수: 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!