我将灰度图像加载到Matlab以执行量化。不幸的是输出没什么。
I = imread('asa.jpg');
imshow(I)
axis off
title('Grayscale Image')
thresh = multithresh(I,7);
valuesMax = [thresh max(I(:))]
[quant8_I_max, index] = imquantize(I,thresh,valuesMax);
valuesMin = [min(I(:)) thresh]
quant8_I_min = valuesMin(index);
imshowpair(quant8_I_min,quant8_I_max,'montage')
title('Minimum Interval Value Maximum Interval Value')