フィルターのクリア

Eliminate the pixel that have a lower intensity?

3 ビュー (過去 30 日間)
valerio auricchio
valerio auricchio 2020 年 11 月 9 日
コメント済み: Ameer Hamza 2020 年 11 月 10 日
I read the immage in this way:
m=max(Imm,[],'all');
%Threshold
thr=10;
for i=1:2048
for j=1:2448
if Imm(i,j)>(m-thr)
pos(k,1:2)=[i,j];
k=k+1;
end
end
end
"Pos" contain all the pixel of my intrest, now i want to elimintate all the coordinates of the pixel that have intensity lower than a value

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 11 月 9 日
You don't need a for-loop for this
m=max(Imm,[],'all');
%Threshold
thr=10;
[r,c] = find(Imm>(m-thr))
pos = [r c];
By elimination, if you mean to set them to zero, then try this
m=max(Imm,[],'all');
%Threshold
thr=10;
Imm(Imm<(m-thr)) = 0;
  4 件のコメント
valerio auricchio
valerio auricchio 2020 年 11 月 10 日
the fact is that after i find the point in fist immage and save them in this way:
m=max(Imm,[],'all');
%Threshold
thr=10;
[r,c] = find(Imm>(m-thr))
pos = [r c];
I want to use this point in the second immage and want to eliminate the point saved in "pos" where the intensity is lower than a value
Ameer Hamza
Ameer Hamza 2020 年 11 月 10 日
I didn't understand the question. Can you take 2 small 3x3 matrices and show with an example of what you want?

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by