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

5 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

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

Più risposte (1)

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

Accedi per commentare.

Categorie

Scopri di più su Read, Write, and Modify Image in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by