
SAR画像の2値化
1 view (last 30 days)
Show older comments
wataru yoshimi
on 20 Jan 2017
Commented: Tohru Kikawada
on 22 Jan 2017
16bitのSAR画像を白い部分を赤色に変えたいです
0 Comments
Accepted Answer
Tohru Kikawada
on 20 Jan 2017
画像の色づけの例はこちらに豊富にあるので参考にしてみてください。
また、質問する際は下記をご参照の上、ご投稿をお願いします。
明るい部分を赤く色づけしたいという内容と解釈しました。
タイトルの2値化については理解ができていません。
あるしきい値を超えた明るさの部分だけを赤色にする処理を下記に示します。
ご参考まで。
% 画像データ(uint16)
I = im2uint16(imread('cameraman.tif'));
% RGBのチャネルを作成
R = I;
G = I;
B = I;
% 白っぽい部分を抽出
ind = R > intmax('uint16')*0.8;
% 白いところは赤成分をmaxにし、それ以外は0
R(ind) = intmax('uint16');
G(ind) = 0;
B(ind) = 0;
% 結合する
I_colored = cat(3,R,G,B);
% 可視化
figure;
imshow(I_colored);

More Answers (0)
See Also
Categories
Find more on Multirate Signal Processing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!