配列をイメージ表示させた際に、格子線を表示させる方法について
Afficher commentaires plus anciens
A = rand(5)
B = A < 0.5
image(B)
例えば、上記のような2値画像を表示させる際に、カラー付きの格子線(グリッドがはっきり見えるような外線)も表示させたいのですが、方法がありますでしょうか。
よろしくお願いいたします。
Réponse acceptée
Plus de réponses (1)
格子線がどのようなものかイメージできていません
ただし頂いた例で白黒はっきり見る方法はあります
A = rand(50);
B = A < 0.7;
IMG = uint8(B).*255;
imshow(IMG,'InitialMagnification','fit')
Catégories
En savoir plus sur MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

