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

1 view (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)

Categories

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!