Effacer les filtres
Effacer les filtres

SQRT function doesn't work on uint16 image type

11 vues (au cours des 30 derniers jours)
Imam
Imam le 10 Déc 2014
Commenté : Star Strider le 10 Déc 2014
So, my problem is: I have to load an image in png format an represent it as a matrix. I can do it with imread. But as soon as I performed function like sqrt it shows error message:
Undefined function 'sqrt' for input arguments of type 'uint16'
What should I do? Can somebody help?

Réponse acceptée

Star Strider
Star Strider le 10 Déc 2014
Convert them to the double data type first.
  2 commentaires
Imam
Imam le 10 Déc 2014
Ok thanks a lot.
Star Strider
Star Strider le 10 Déc 2014
My pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by