Error using entropy expected input number to be real.

1 visualización (últimos 30 días)
Mira mosad
Mira mosad el 20 de Mzo. de 2022
Comentada: Image Analyst el 21 de Mzo. de 2022
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.

Respuesta aceptada

Image Analyst
Image Analyst el 20 de Mzo. de 2022
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 comentarios
Mira mosad
Mira mosad el 21 de Mzo. de 2022
I appreciate your answer .
The input is unit8( image) so i used im2double() and still have the same problem ?
can you help ?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Filtering and Enhancement en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by