摘要:
忙了几天终于搞定了RGB和HSI的转化:************************************************R [0,255],G [0,255],B [0,255]H [0,359],S [0,255],I [0,255]************************************************function hsi=rgb2hsi(rgb)r=rgb(:,1);g=rgb(:,2);b=rgb(:,3);num=0.5*((r-g)+(r-b));den=sqrt((r-g).^2+(r-b).*(g-b));theta=acos(num 阅读全文