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?

采纳的回答

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