境界線抽出とオーバーレイ
이전 댓글 표시
以下のような処理をして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 );
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!