You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function hrCi = cIm2hrCi(cIm)% CIM2HRCI Transforms a uint8 color image (cIm) into a 2D high-res % (24 bits) classification image (hrCi).% E.g., im = rand(256,256,3);% cIm = uint8((256 - 1) * im);% hrCi = cIm2hrCi(cIm);%% See also DEMOSTAT4CI, HRCI2CIM%% The Stat4Ci toolbox is free (http://mapageweb.umontreal.ca/gosselif/stat4ci.html); if you use % it in your research, please, cite us:% Chauvin, A., Worsley, K. J., Schyns, P. G., Arguin, M. & Gosselin, F. (2004). A sensitive % statistical test for smooth classification images.% % Alan Chauvin & FrŽdŽric Gosselin ([email protected]), 20/08/2004 cIm = double(cIm);hrCi = cIm(:,:,1) * 256^2 + cIm(:,:,2) * 256 + cIm(:,:,3);