I have a problem with log while implementing vague shadow mask but the R component is already in uint8.
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
r=log®; Undefined function 'log' for input arguments of type 'uint8'.
0 commentaires
Réponses (1)
Titus Edelhofer
le 25 Fév 2016
Hi,
you need to convert back to double:
r = log(double(r));
If you afterwards go back to uint8 (which probably makes little sense), then use uint8 to convert.
Titus
0 commentaires
Voir également
Catégories
En savoir plus sur Data Type Conversion 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!