Commit 3c281dc2 by Googler Committed by Rohit Singh

Expose MssimCaluclator for use in Duetdev tests

Child: <unknown commit>

PiperOrigin-RevId: 524876651
parent 1df03eb7
......@@ -25,7 +25,7 @@ import static java.lang.Math.pow;
*
* <p>See <a href=https://ece.uwaterloo.ca/~z70wang/publications/ssim.pdf>the SSIM paper</a>.
*/
/* package */ final class MssimCalculator {
public final class MssimCalculator {
// Referred to as 'L' in the SSIM paper, this constant defines the maximum pixel values. The
// range of pixel values is 0 to 255 (8 bit unsigned range).
private static final int PIXEL_MAX_VALUE = 255;
......@@ -47,7 +47,7 @@ import static java.lang.Math.pow;
/**
* Calculates the Mean Structural Similarity (MSSIM) between two images with window skipping.
*
* @see #calculate(byte[], byte[], int, int, boolean).
* @see #calculate(byte[], byte[], int, int, boolean)
*/
public static double calculate(
byte[] referenceBuffer, byte[] distortedBuffer, int width, int height) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment