matlab 数字图像处理中 如图[ ]表示什么含义?有什么作用?

如题所述

  I = imread('football.jpg');
I = rgb2gray(I);
subplot(121),imshow(I,[ ]);
subplot(122),imshow(I,[100, 200]);

上面显示的代码效果。

imshow(I,[LOW HIGH]) displays the grayscale image I, specifying the display
    range for I in [LOW HIGH]. The value LOW (and any value less than LOW)
    displays as black, the value HIGH (and any value greater than HIGH) displays   as white. Values in between are displayed as intermediate shades of gray,    using the default number of gray levels. If you use an empty matrix ([]) for    [LOW HIGH], imshow uses [min(I(:)) max(I(:))]; that is, the minimum value in    I is displayed as black, and the maximum value is displayed as white.

像素小于100的显示为黑色,大于200显示为0。如果不设置正常显示

温馨提示:答案为网友推荐,仅供参考
第1个回答  2015-08-08
相似回答