I have a problem with log while implementing vague shadow mask but the R component is already in uint8.

Respuestas (1)

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

Categorías

Más información sobre Data Type Conversion en Centro de ayuda y File Exchange.

Preguntada:

el 25 de Feb. de 2016

Respondida:

el 25 de Feb. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by