logo资料库

matlab画图像的二维直方图-matlab画图像的二维直方图.doc

第1页 / 共1页
资料共1页,全文预览结束
I=imread('Mriscan.tif'); J=imadjust(I,stretchlim(I),[]);%把原图灰度级扩展到所有灰度级 - a* r, n4 N& T0 j8 ` subplot(2,2,1);imshow(I); title('原图');1 ^/ M4 \) B. ~+ w" O, j subplot(2,2,2);imhist(I); title('原图直方图');; N6 p- @! ?8 D( S. A subplot(2,2,3);imshow(J); title('灰度调整后的图像'); subplot(2,2,4);imhist(J); title('灰度调整后的图像的直方图');7 Z+ A! %显示灰度调整后的图像 %显示原图直方图 %显示原图 * G2 _7 `4 S4 {6 G %显示灰度调整后的图像的直方图 2 O T# D' w$ b) ^$ Z7 W5 t0 s
分享到:
收藏