境界線抽出とオーバーレイ
Show older comments
以下のような処理をしてSAR画像(I)の白い部分を赤く表示しました。この赤くした部分の境界線を抽出してベクトル形式でオーバーレイする方法を教えてください。
また、画像が暗くてわかりにくいので明るくする方法も教えてください(histeqは3次元のものは無理でした)。
% code
% RGBのチャネルを作成
R = I;
G = I;
B = I;
% 白っぽい部分を抽出
ind = R > intmax('uint16')*0.3;
% 白いところは赤成分をmaxにし、それ以外は0
R(ind) = intmax('uint16');
G(ind) = 0;
B(ind) = 0;
% 結合する
I_colored = cat(3,R,G,B);
% 可視化
figure;
imshow(I_colored );
Accepted Answer
More Answers (0)
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!