<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">

Exported from Notepad++
rgb_image = imread('peppers.png'); hsv_image = rgb2hsv(rgb_image); ycbcr_image = rgb2ycbcr(rgb_image); gray_image = rgb2gray(rgb_image); cform = makecform('srgb2lab'); Lab_image = applycform(rgb_image,cform); figure,imshow(Lab_image); subplot(3,2,1),imshow(rgb_image) subplot(3,2,2),imshow(hsv_image) subplot(3,2,3),imshow(ycbcr_image) subplot(3,2,4),imshow(Lab_image) subplot(3,2,5),imshow(gray_image)