RGB to opponent color space code
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
hamed abdulaziz
le 24 Fév 2014
Réponse apportée : Image Analyst
le 24 Fév 2014
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
0 commentaires
Réponse acceptée
Anand
le 24 Fév 2014
Modifié(e) : Anand
le 24 Fév 2014
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 commentaires
Plus de réponses (3)
Image Analyst
le 24 Fév 2014
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.
0 commentaires
Image Analyst
le 24 Fév 2014
There are lots of color spaces you could use. Here are formulas for some of them: http://www.easyrgb.com/index.php?X=MATH
0 commentaires
Voir également
Catégories
En savoir plus sur Convert Image Type dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!