필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

(Image processing) new image with the specified color

조회 수: 1 (최근 30일)
Daniel Kamel
Daniel Kamel 2019년 3월 9일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello everyone,
I would like to ask for the code or method that would help me get a new image containing only the color that I want.
For example: I have an image that contains only 2 red lines, what code or method would help me get a new image that only contains the color red in the original image(in my case the 2 red lines).
And thank you,
Daniel.

답변 (3개)

Pranjal Priyadarshi
Pranjal Priyadarshi 2019년 3월 14일
To separate out the red lines you may convert the RGB image to HSV (Hue-Saturation-Value) image. HSV separates the image intensity from the color information. Then you can use the color information of the HSV image to filter out a specific range of colors. For more you can refer the following answer
https://www.mathworks.com/matlabcentral/answers/230051-filter-image-such-that-only-certain-colours-show

Image Analyst
Image Analyst 2019년 3월 14일
편집: Image Analyst 2019년 3월 14일
Try using the Color Thresholder app on the Apps tab of the MATLAB tool ribbon. Use the export button to create code (a function) from what you did interactively.
Or you can check out the full demos in my File Exchange

Daniel Kamel
Daniel Kamel 2019년 3월 14일
okkay thank you guys :)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by