Borrar filtros
Borrar filtros

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

3 visualizaciones (últimos 30 días)
kiruthika r
kiruthika r el 21 de Sept. de 2015
Editada: Walter Roberson el 20 de Feb. de 2017
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?

Respuesta aceptada

Walter Roberson
Walter Roberson el 21 de Sept. de 2015
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);

Más respuestas (1)

Evanjalin Indra
Evanjalin Indra el 20 de Feb. de 2017
How to find rows columns
if true
% code
end
  1 comentario
Walter Roberson
Walter Roberson el 20 de Feb. de 2017
Editada: Walter Roberson el 20 de Feb. de 2017
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.)

Iniciar sesión para comentar.

Categorías

Más información sobre Read, Write, and Modify Image en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by