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 件のコメント

Matt J
Matt J 2018 年 2 月 9 日
編集済み: Matt J 2018 年 2 月 9 日
Maybe some of the pixels in your image are NaN...? How can we know?
mandana
mandana 2018 年 2 月 9 日
pixels that are nan sounds like what? how can i recognize them?
mandana
mandana 2018 年 2 月 11 日
thanks alot

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 2 月 9 日

0 投票

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)

1 件のコメント

mandana
mandana 2018 年 2 月 11 日
thanks alot

サインインしてコメントする。

カテゴリ

質問済み:

2018 年 2 月 9 日

コメント済み:

2018 年 2 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by