Error using entropy expected input number to be real.
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Mira mosad
il 20 Mar 2022
Commentato: Image Analyst
il 21 Mar 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.
0 Commenti
Risposta accettata
Image Analyst
il 20 Mar 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.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Image Filtering and Enhancement in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!