How to find the row and column number in an image?
조회 수: 3 (최근 30일)
이전 댓글 표시
I want to find the row and column number at a point in an image manually. How can I do it? Is there any options available?
댓글 수: 0
채택된 답변
Walter Roberson
2015년 9월 21일
Something like putting up an image and using ginput() ? If you use that then remember that X corresponds to columns and Y corresponds to row.
If you have a particular value you want to find in a 2D array, then
[row, col] = find(YourArray == TheValue);
댓글 수: 0
추가 답변 (1개)
Evanjalin Indra
2017년 2월 20일
How to find rows columns
if true
% code
end
댓글 수: 1
Walter Roberson
2017년 2월 20일
편집: Walter Roberson
2017년 2월 20일
How to find those given what information? Which row and column?
(My Spidey Sense is telling me that you should be using conv2 instead of what you are trying to do now.)
참고 항목
카테고리
Help Center 및 File Exchange에서 Read, Write, and Modify Image에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!