Effacer les filtres
Effacer les filtres

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

3 vues (au cours des 30 derniers jours)
kiruthika r
kiruthika r le 21 Sep 2015
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?

Réponse acceptée

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

Plus de réponses (1)

Evanjalin Indra
Evanjalin Indra le 20 Fév 2017
How to find rows columns
if true
% code
end
  1 commentaire
Walter Roberson
Walter Roberson le 20 Fév 2017
Modifié(e) : Walter Roberson le 20 Fév 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.)

Connectez-vous pour commenter.

Catégories

En savoir plus sur Read, Write, and Modify Image dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by