WHY I GET NAN FROM "IMPIXCEL"

3 次查看(过去 30 天)
mandana
mandana 2018-2-9
评论: mandana 2018-2-11
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 个评论
mandana
mandana 2018-2-9
pixels that are nan sounds like what? how can i recognize them?

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2018-2-9
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)

Community Treasure Hunt

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

Start Hunting!

Translated by