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 日

3 投票

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 that converting,for I used it as a reference?
hamed abdulaziz
hamed abdulaziz 2014 年 2 月 24 日
I used the code but I get this error
Error: File: RGB_to_oppent.m Line: 9 Column: 12 Unexpected MATLAB expression. at this line
O2 = (R+G-2B)./sqrt(6);
hamed abdulaziz
hamed abdulaziz 2014 年 2 月 24 日
Then,I tried this correction
O2 = (R+G-2.*B)./sqrt(6);
is that correct?
Anand
Anand 2014 年 2 月 24 日
Yes, thats right.
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 日

1 投票

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 日

1 投票

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 日

0 投票

THANKS, I FOUND THIS EQUATION IN THIS LECTURE,PLEASE COULD YOU GUIDE ME TO CODE THEM
AND THIS LECTURE

カテゴリ

ヘルプ センター および File ExchangeImage Processing and Computer Vision についてさらに検索

質問済み:

2014 年 2 月 24 日

回答済み:

2014 年 2 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by