I have a problem with log while implementing vague shadow mask but the R component is already in uint8.
2 ビュー (過去 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!