2
我把一個灰度圖像加載到Matlab來執行量化。不幸的是,輸出結果是什麼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')
嘗試'imshowpair(quant8_I_min,quant8_I_max,'蒙太奇','縮放',''獨立'')' –
@AnderBiguri我試過,但我仍然得到一個空白屏幕。什麼可能是這個問題? – AsankaD7