I have a problem with log while implementing vague shadow mask but the R component is already in uint8.
4 次查看(过去 30 天)
显示 更早的评论
r=log®; Undefined function 'log' for input arguments of type 'uint8'.
0 个评论
回答(1 个)
Titus Edelhofer
2016-2-25
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dates and Time 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!