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

4 vues (au cours des 30 derniers jours)
Andrea
Andrea le 22 Mai 2012
Converting all NaNs to zero in an image is my problem.

Réponse acceptée

Image Analyst
Image Analyst le 22 Mai 2012
yourImageArray(isnan(yourImageArray)) = 0;
  1 commentaire
Andrea
Andrea le 22 Mai 2012
Thanks a lot, it worked.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by