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);
0 个评论
采纳的回答
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 Center 和 File Exchange 中查找有关 Denoising and Compression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!