Get pixel where the intensity is 255

1 回表示 (過去 30 日間)
valerio auricchio
valerio auricchio 2020 年 10 月 30 日
コメント済み: Ameer Hamza 2020 年 10 月 30 日
Hi I have an immage 2048x2448 grayscale, I want to find all the pixel where the intensity is "255".
After i have find them i want to print this point on the immage

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 10 月 30 日
img; % 2048x2448 matrix
[r, c] = find(img==255); % r and c contain all row and columns
If you want to mark these points on the image
plot(c, r, '+')
It will draw '+' marker at those locations.
  7 件のコメント
valerio auricchio
valerio auricchio 2020 年 10 月 30 日
thx a lot!
Ameer Hamza
Ameer Hamza 2020 年 10 月 30 日
I am glad to be of help!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by