WHY I GET NAN FROM "IMPIXCEL"

I want to read an image and get color of pixells but the result from "impixel" for some pixels is NAN why" please help me

3 commentaires

Matt J
Matt J le 9 Fév 2018
Modifié(e) : Matt J le 9 Fév 2018
Maybe some of the pixels in your image are NaN...? How can we know?
mandana
mandana le 9 Fév 2018
pixels that are nan sounds like what? how can i recognize them?
mandana
mandana le 11 Fév 2018
thanks alot

Connectez-vous pour commenter.

Réponses (1)

Walter Roberson
Walter Roberson le 9 Fév 2018

0 votes

If you specified row and column numbers to impixel() and they were outside of the image, then you would get NaN returned.
Watch out that impixel expects column (x coordinate) to be passed in before row (y coordinate)

Question posée :

le 9 Fév 2018

Commenté :

le 11 Fév 2018

Community Treasure Hunt

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

Start Hunting!

Translated by