필터 지우기
필터 지우기

How to find the row and column number in an image?

조회 수: 3 (최근 30일)
kiruthika r
kiruthika r 2015년 9월 21일
편집: Walter Roberson 2017년 2월 20일
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?

채택된 답변

Walter Roberson
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);

추가 답변 (1개)

Evanjalin Indra
Evanjalin Indra 2017년 2월 20일
How to find rows columns
if true
% code
end
  댓글 수: 1
Walter Roberson
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 CenterFile 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!

Translated by