How can I convert all NaNs to Zero in the image?

2 views (last 30 days)
Converting all NaNs to zero in an image is my problem.

Accepted Answer

Image Analyst
Image Analyst on 22 May 2012
yourImageArray(isnan(yourImageArray)) = 0;

More Answers (0)

Community Treasure Hunt

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

Start Hunting!