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

