matlab - SSIM Coding Error -
I have a few questions, I try to follow some coding from Math Works:
I = imread ('cameraman.tif'); SsimValues = Nil (1,10); Quality = 10: 10: 100; For I write = 1:10 (I, 'compressedImage.jpg', 'jpg', 'quality', qualityfactor (i)); SsimValues (i) = ssim (imread ('compressedImage.jpg'), I); Lastly,
I simply change the image file which is a.jpg
and b.jpg
but I get this error from MATLAB : 'Ssim' error in SSIMTesting (line 6) ssimValues (i) = ssim (imread ('logohalal1.') For the input arguments of type 'UIT 8'. Jpg '), i);
Why is that so? Can someone explain me the code and error? Sorry because I'm new to MATLAB
thanks.
This function was new to R2014a if you have an older version of MATLAB , Or you do not need that toolbox, you do not have it.
To check your version of MATLAB and the installed toolbox, type / code> on the command line. ver
To check that the function can be found on your MATLAB path, you can use , which
, such as ssim
Comments
Post a Comment