I need to save an optimized jpeg (meaning minimal looses and maximal compression). I noticed there is no built-in save that can do that so I wrote some code to take the original image and using some logic I am trying to …... to calaculate the SSIM, I load all pixels using image.LoadPixels(image...savedImage = (RasterImage)RasterImage.Load(ms); double ssim = CalculateSsim(originalImage...