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
댓글 수: 0
채택된 답변
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개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!