Using uint8 and Double

조회 수: 3 (최근 30일)
Emerson Nithiyaraj
Emerson Nithiyaraj 2019년 3월 26일
댓글: John D'Errico 2019년 3월 26일
I have a input image of size 800*800 and of type uint8. When i do convolution with a 5*5 filter, it produces me a result of type Double. With the result of convolution, I have to perform some other operations and whether I must convert my convolution output to uint8 ? i have many variables which stores results of many operation. Whether all the variable should be of same type?
  댓글 수: 1
John D'Errico
John D'Errico 2019년 3월 26일
So what is your question? You do what you need to do, for whatever problem you face at any given point. Sometimes that involves converting from an integer form to double or the reverse as necessary.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Matched Filter and Ambiguity Function에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by