필터 지우기
필터 지우기

separate orange band and violet band from rgb image

조회 수: 1 (최근 30일)
Ghg
Ghg 2023년 11월 4일
댓글: Ghg 2023년 11월 5일
in the context of serparate red , green and blue bands from RGB image
i need to method to separate orange band first and therefore separate violet band from RGB image

채택된 답변

Image Analyst
Image Analyst 2023년 11월 4일
There are no "bands" of violet and orange in an RGB image, only a red band, a green band, and a blue band. In fact computers cannot even display violet. They can display purple, but not violet. https://petapixel.com/2017/07/19/photos-may-colors-screens-cant-display/
That said, you can extract orange and purple colors from your image. Simply use the Color Thresholder app on the Apps tab of the tool ribbon. Use HSV color space and then click the Export button to generate the function.
  댓글 수: 9
DGM
DGM 2023년 11월 5일
편집: DGM 2023년 11월 5일
What is your actual goal? I have to ask, because the example you're giving isn't what you say you want. If you isolate the components of a color image, the results aren't color images anymore.
That magenta-ish and yellowish image are just the original image multiplied by [254 0 254] and [254 254 0] -- or at least that's as close as I can back-estimate from a JPG.
If what you want is to do a multiply blend on the image like that, then it's still not really clear why you're asking how to do it, because you clearly have already done it.
Are you asking how to do it with [191 0 255] or some other color instead?
inpict = imread('990uu.png');
FG = [0.6 0.3 1]; % pick a unit-scale tuple
outpict = im2double(inpict).*permute(FG,[1 3 2]);
outpict = im2uint8(outpict);
imshow(outpict,'border','tight')
Ghg
Ghg 2023년 11월 5일
thank so much dear DMG

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by