function [IC,IM,IY] = convertRGB2CMY(I); 

% function [IC,IM,IY] = convertRGB2CMY(I);
% 
% Convertit une image codee au format RGB (N=256) au format CMJ.  

Iconvert = ones (size(I)); 

IC = Iconvert; 
IC(:,:,1)=ones(size(I(:,:,1))) - I(:,:,1);

IM = Iconvert; 
IM(:,:,2)=ones(size(I(:,:,2))) - I(:,:,2);

IY = Iconvert; 
IY(:,:,3)=ones(size(I(:,:,3))) - I(:,:,3); 
