Get pixel where the intensity is 255

4 次查看(过去 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 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by