How to solve JPEG compression error ?

3 次查看(过去 30 天)
Hello everyone,
While running my code, I am getting the following error. Can anyone please tell me how can I fix this error? Thanks
??? Error using ==> image Error using ==> image TrueColor CData contains element out of range 0.0 <= value <= 1.0
Error in ==> wavelet_compression_exercise at 11 image(G);

采纳的回答

Image Analyst
Image Analyst 2014-7-6
It's telling you that G has pixels outside the range of 0-1. Try im2double(G) or mat2gray(G).

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Denoising and Compression 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by