Error using entropy expected input number to be real.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Mira mosad
am 20 Mär. 2022
Kommentiert: Image Analyst
am 21 Mär. 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 Kommentare
Akzeptierte Antwort
Image Analyst
am 20 Mär. 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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Filtering and Enhancement finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!