www.gusucode.com > images 案例代码 matlab源码程序 > images/QuantifyLandCoverChangesInAnRGB3DImageExample.m
%% Quantify Land Cover Changes in an RGB (3-D) Image % %% % Read an image and convert color space from RGB to LAB. %% % Copyright 2015 The MathWorks, Inc. I = imread('autumn.tif'); cform = makecform('srgb2lab'); LAB = applycform(I, cform); %% % Perform the range filtering on the LAB image. %% rLAB = rangefilt(LAB); %% % Display the images. %% imshow(I); figure, imshow(rLAB(:,:,1),[]); figure, imshow(rLAB(:,:,2),[]); figure, imshow(rLAB(:,:,3),[]);