gusucode.com > 精通Matlab数字图像处理与识别源码程序 > 精通Matlab数字图像处理与识别源码程序/chapter9/code/ex9_1.m

    I = imread('../plane.bmp');
cmy = imcomplement(I);
figure, imshow(cmy);