I have a problem with log while implementing vague shadow mask but the R component is already in uint8.
조회 수: 7 (최근 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에서 Data Type Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!