绘彩
用Matlab绘彩图像的直方图
⽤Matlab绘彩⾊图像的直⽅图直⽅图是常⽤的图表,⽤MATLAB实现如下:Img=imread('football.jpg');BW = Img;R=BW(:,:,1);[REDcounts,x] = imhist(R);G=BW(:,:,2);[Greencounts,y] = imhist(R);B=BW(:,:,3);[Bluecounts,z] = imhist(R);figure;su...
⽤Matlab绘彩⾊图像的直⽅图直⽅图是常⽤的图表,⽤MATLAB实现如下:Img=imread('football.jpg');BW = Img;R=BW(:,:,1);[REDcounts,x] = imhist(R);G=BW(:,:,2);[Greencounts,y] = imhist(R);B=BW(:,:,3);[Bluecounts,z] = imhist(R);figure;su...