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 CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by