Error using entropy expected input number to be real.

조회 수: 1 (최근 30일)
Mira mosad
Mira mosad 2022년 3월 20일
댓글: Image Analyst 2022년 3월 21일
The following error appears when applying an image enhancement code. The errors appears only with jpeg images. Could you please help me?Error using entropy expected input number to be real.

채택된 답변

Image Analyst
Image Analyst 2022년 3월 20일
Evidently your input is not real. If it's complex, use real() to get the real part. If it's an integer, like uint8, use double() to cast the integer variable to double.
  댓글 수: 2
Mira mosad
Mira mosad 2022년 3월 21일
I appreciate your answer .
The input is unit8( image) so i used im2double() and still have the same problem ?
can you help ?

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by