RGB to opponent color space code

조회 수: 4 (최근 30일)
hamed abdulaziz
hamed abdulaziz 2014년 2월 24일
답변: Image Analyst 2014년 2월 24일
HI ALL,
Did any one guide me to find function for RGB to opponent color space that mentioned in the attached paper and link to paper RGB to opponent color space code : to

채택된 답변

Anand
Anand 2014년 2월 24일
편집: Anand 2014년 2월 24일
From what I can tell, this should do it:
%load RGB image
im = im2double(imread('peppers.png'));
%extract each channel
R = im(:,:,1);
G = im(:,:,2);
B = im(:,:,3);
%convert to opponent space
O1 = (R-G)./sqrt(2);
O2 = (R+G-2*B)./sqrt(6);
O3 = (R+G+B)./sqrt(3);
  댓글 수: 6
hamed abdulaziz
hamed abdulaziz 2014년 2월 24일
Thank you very much,please could you provide me the paper or web site that you used for coding the RGB to opponent color space?
hamed abdulaziz
hamed abdulaziz 2014년 2월 24일
MR. Anand:I am waiting your answer,thank you.

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

추가 답변 (3개)

Image Analyst
Image Analyst 2014년 2월 24일
All that is not built into MATLAB, but MATLAB includes the lower level functions for you to build that capability yourself , particularly in the Image Processing Toolbox and the Computer Vision System Toolbox.

Image Analyst
Image Analyst 2014년 2월 24일
There are lots of color spaces you could use. Here are formulas for some of them: http://www.easyrgb.com/index.php?X=MATH

hamed abdulaziz
hamed abdulaziz 2014년 2월 24일
THANKS, I FOUND THIS EQUATION IN THIS LECTURE,PLEASE COULD YOU GUIDE ME TO CODE THEM
AND THIS LECTURE

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by