Clear Filters
Clear Filters

Get pixel where the intensity is 255

2 views (last 30 days)
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

Accepted Answer

Ameer Hamza
Ameer Hamza on 30 Oct 2020
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 Comments

Sign in to comment.

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!