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)

카테고리

도움말 센터File Exchange에서 NaNs에 대해 자세히 알아보기

질문:

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