Assuming that Frame_new is your image
Frame_HSV = rgb2hsv(Frame_new);
Frame_H = Frame_HSV (:,:,1);
Frame_S = Frame_HSV (:,:,2);
Frame_V = Frame_HSV (:,:,3);%輝度
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!