/** * <p>Computes the mean squared error (MSE) between the two images.</p> * * @param imgA first image. Not modified. * @param imgB second image. Not modified. * @return error between the two images. */ public static double meanDiffSq(InterleavedU16 imgA, InterleavedU16 imgB ) { InputSanityCheck.checkSameShape(imgA,imgB); return meanDiffSqU(imgA.data,imgA.startIndex,imgA.stride, imgB.data,imgB.startIndex,imgB.stride, imgA.height, imgA.width*imgA.numBands); }
/** * <p>Computes the mean squared error (MSE) between the two images.</p> * * @param imgA first image. Not modified. * @param imgB second image. Not modified. * @return error between the two images. */ public static double meanDiffSq(GrayU16 imgA, GrayU16 imgB ) { InputSanityCheck.checkSameShape(imgA,imgB); return meanDiffSqU(imgA.data,imgA.startIndex,imgA.stride, imgB.data,imgB.startIndex,imgB.stride, imgA.height, imgA.width); }
/** * <p>Computes the mean squared error (MSE) between the two images.</p> * * @param imgA first image. Not modified. * @param imgB second image. Not modified. * @return error between the two images. */ public static double meanDiffSq(InterleavedU8 imgA, InterleavedU8 imgB ) { InputSanityCheck.checkSameShape(imgA,imgB); return meanDiffSqU(imgA.data,imgA.startIndex,imgA.stride, imgB.data,imgB.startIndex,imgB.stride, imgA.height, imgA.width*imgA.numBands); }
/** * <p>Computes the mean squared error (MSE) between the two images.</p> * * @param imgA first image. Not modified. * @param imgB second image. Not modified. * @return error between the two images. */ public static double meanDiffSq(GrayU8 imgA, GrayU8 imgB ) { InputSanityCheck.checkSameShape(imgA,imgB); return meanDiffSqU(imgA.data,imgA.startIndex,imgA.stride, imgB.data,imgB.startIndex,imgB.stride, imgA.height, imgA.width); }