I want to remove background in the given image.

3 ビュー (過去 30 日間)
preeti verma
preeti verma 2021 年 1 月 17 日
編集済み: KALYAN ACHARJYA 2021 年 1 月 17 日
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 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2021 年 1 月 17 日
編集済み: KALYAN ACHARJYA 2021 年 1 月 17 日
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

サインインしてコメントする。

回答 (1 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2021 年 1 月 17 日
編集済み: KALYAN ACHARJYA 2021 年 1 月 17 日
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);

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by