I want to remove background in the given image.
3 views (last 30 days)
Show older comments
I want to remove background in the given image and only want these red markers in output image, i have almost 150 images of this type so a program that should that use for all frames.
1 Comment
KALYAN ACHARJYA
on 17 Jan 2021
Edited: KALYAN ACHARJYA
on 17 Jan 2021
Already I had answered in your previous question, asked for measurement of the ankle (L and W), which also required to localized the most distance markers
Answers (1)
KALYAN ACHARJYA
on 17 Jan 2021
Edited: KALYAN ACHARJYA
on 17 Jan 2021
As the color of ROIs is quite clear, you can try to get a range of red pixels with different color models. Please note, the definition of colors is quite subjective, there may be a possibility of representing the same color in different ways. Some cases what you have seen may not be same for a computer or vice versa.
Here one ways, modify as requirements (Different Color Models and Pixel Values in dominant plane)
rgbImage=imread('image_preeti.jpeg');
ycbrImage=rgb2ycbcr(rgbImage);
[r,c]=find(ycbrImage(:,:,3)>180);
%......
rgbImage(r,c,1:3)=255;
imshow(rgbImage);
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!