配列をイメージ表示させた際に、格子線を表示させる方法について
Ältere Kommentare anzeigen
A = rand(5)
B = A < 0.5
image(B)
例えば、上記のような2値画像を表示させる際に、カラー付きの格子線(グリッドがはっきり見えるような外線)も表示させたいのですが、方法がありますでしょうか。
よろしくお願いいたします。
Akzeptierte Antwort
Weitere Antworten (1)
格子線がどのようなものかイメージできていません
ただし頂いた例で白黒はっきり見る方法はあります
A = rand(50);
B = A < 0.7;
IMG = uint8(B).*255;
imshow(IMG,'InitialMagnification','fit')
Kategorien
Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

