フィルターのクリア

Find pixel intensity with coordinates?

1 回表示 (過去 30 日間)
valerio auricchio
valerio auricchio 2020 年 11 月 5 日
コメント済み: valerio auricchio 2020 年 11 月 6 日
I have two vector:
X[12 34 12 22]
Y[2 3 44 5]
They rappresent the coordinates (x,y) of a pixel. I want to know the intensity of each pixel and eliminate the pixel that have intensity lower than a value.

採用された回答

Matt J
Matt J 2020 年 11 月 5 日
pixelValues=yourImage( sub2ind(size(yourImage),X,Y) );
keep=(pixelValues>=threshold);
X=X(keep);
Y=Y(keep);
  3 件のコメント
Rik
Rik 2020 年 11 月 6 日
What do you mean? Are you talking about the values of the keep array itself?
valerio auricchio
valerio auricchio 2020 年 11 月 6 日
Solved thx a lot!

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange3-D Scene Control についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by