#![allow(clippy::excessive_precision)]
#[derive(Debug, Clone, Copy)]
pub struct DiffmapStats {
pub min: f32,
pub max: f32,
pub mean: f32,
pub std: f32,
}
#[derive(Debug, Clone)]
pub struct ReferenceCase {
pub name: &'static str,
pub width: usize,
pub height: usize,
pub expected_score: f64,
pub expected_stats: DiffmapStats,
}
pub const REFERENCE_CASES: &[ReferenceCase] = &[
ReferenceCase {
name: "uniform_gray_128_shift_10_7x7",
width: 7,
height: 7,
expected_score: 15.767254829406738,
expected_stats: DiffmapStats {
min: 15.7670240402,
max: 15.7672548294,
mean: 15.7671098709,
std: 0.0000502170,
},
},
ReferenceCase {
name: "uniform_gray_128_shift_50_7x7",
width: 7,
height: 7,
expected_score: 74.613021850585938,
expected_stats: DiffmapStats {
min: 74.6123275757,
max: 74.6130218506,
mean: 74.6126861572,
std: 0.0001576536,
},
},
ReferenceCase {
name: "uniform_gray_128_shift_10_8x8",
width: 8,
height: 8,
expected_score: 15.767254829406738,
expected_stats: DiffmapStats {
min: 15.7670192719,
max: 15.7672548294,
mean: 15.7671031952,
std: 0.0000499420,
},
},
ReferenceCase {
name: "uniform_gray_128_shift_50_8x8",
width: 8,
height: 8,
expected_score: 74.613021850585938,
expected_stats: DiffmapStats {
min: 74.6122589111,
max: 74.6130218506,
mean: 74.6126861572,
std: 0.0001593264,
},
},
ReferenceCase {
name: "uniform_gray_128_shift_10_9x9",
width: 9,
height: 9,
expected_score: 15.767124176025391,
expected_stats: DiffmapStats {
min: 15.7666788101,
max: 15.7671241760,
mean: 15.7668819427,
std: 0.0000935060,
},
},
ReferenceCase {
name: "uniform_gray_128_shift_50_9x9",
width: 9,
height: 9,
expected_score: 74.612106323242188,
expected_stats: DiffmapStats {
min: 74.6112594604,
max: 74.6121063232,
mean: 74.6117172241,
std: 0.0002113283,
},
},
ReferenceCase {
name: "uniform_gray_128_shift_10_15x15",
width: 15,
height: 15,
expected_score: 21.285842895507812,
expected_stats: DiffmapStats {
min: 21.2855377197,
max: 21.2858428955,
mean: 21.2856636047,
std: 0.0000576327,
},
},
ReferenceCase {
name: "uniform_gray_128_shift_50_15x15",
width: 15,
height: 15,
expected_score: 100.727890014648438,
expected_stats: DiffmapStats {
min: 100.7270050049,
max: 100.7278900146,
mean: 100.7273406982,
std: 0.0002356713,
},
},
ReferenceCase {
name: "uniform_gray_128_shift_10_16x16",
width: 16,
height: 16,
expected_score: 21.285823822021484,
expected_stats: DiffmapStats {
min: 21.2854557037,
max: 21.2858238220,
mean: 21.2856521606,
std: 0.0000642855,
},
},
ReferenceCase {
name: "uniform_gray_128_shift_50_16x16",
width: 16,
height: 16,
expected_score: 100.727905273437500,
expected_stats: DiffmapStats {
min: 100.7267913818,
max: 100.7279052734,
mean: 100.7274398804,
std: 0.0002607292,
},
},
ReferenceCase {
name: "uniform_gray_128_shift_10_17x17",
width: 17,
height: 17,
expected_score: 21.285728454589844,
expected_stats: DiffmapStats {
min: 21.2854194641,
max: 21.2857284546,
mean: 21.2855911255,
std: 0.0000711212,
},
},
ReferenceCase {
name: "uniform_gray_128_shift_50_17x17",
width: 17,
height: 17,
expected_score: 100.727523803710938,
expected_stats: DiffmapStats {
min: 100.7263336182,
max: 100.7275238037,
mean: 100.7267684937,
std: 0.0003839632,
},
},
ReferenceCase {
name: "uniform_gray_128_shift_10_23x23",
width: 23,
height: 23,
expected_score: 21.285795211791992,
expected_stats: DiffmapStats {
min: 21.2851486206,
max: 21.2857952118,
mean: 21.2854213715,
std: 0.0001403049,
},
},
ReferenceCase {
name: "uniform_gray_128_shift_50_23x23",
width: 23,
height: 23,
expected_score: 100.727500915527344,
expected_stats: DiffmapStats {
min: 100.7250366211,
max: 100.7275009155,
mean: 100.7264099121,
std: 0.0006888828,
},
},
ReferenceCase {
name: "uniform_gray_128_shift_10_24x24",
width: 24,
height: 24,
expected_score: 21.285535812377930,
expected_stats: DiffmapStats {
min: 21.2850151062,
max: 21.2855358124,
mean: 21.2851963043,
std: 0.0001155889,
},
},
ReferenceCase {
name: "uniform_gray_128_shift_50_24x24",
width: 24,
height: 24,
expected_score: 100.726318359375000,
expected_stats: DiffmapStats {
min: 100.7246322632,
max: 100.7263183594,
mean: 100.7258834839,
std: 0.0004706371,
},
},
ReferenceCase {
name: "uniform_gray_128_shift_10_31x31",
width: 31,
height: 31,
expected_score: 21.285743713378906,
expected_stats: DiffmapStats {
min: 21.2850418091,
max: 21.2857437134,
mean: 21.2853050232,
std: 0.0002038444,
},
},
ReferenceCase {
name: "uniform_gray_128_shift_50_31x31",
width: 31,
height: 31,
expected_score: 100.727767944335938,
expected_stats: DiffmapStats {
min: 100.7249145508,
max: 100.7277679443,
mean: 100.7264785767,
std: 0.0006681152,
},
},
ReferenceCase {
name: "uniform_gray_128_shift_10_32x32",
width: 32,
height: 32,
expected_score: 21.285757064819336,
expected_stats: DiffmapStats {
min: 21.2850780487,
max: 21.2857570648,
mean: 21.2853546143,
std: 0.0001982208,
},
},
ReferenceCase {
name: "uniform_gray_128_shift_50_32x32",
width: 32,
height: 32,
expected_score: 100.727874755859375,
expected_stats: DiffmapStats {
min: 100.7250518799,
max: 100.7278747559,
mean: 100.7265014648,
std: 0.0007435805,
},
},
ReferenceCase {
name: "uniform_red_shift_20_16x16",
width: 16,
height: 16,
expected_score: 31.143424987792969,
expected_stats: DiffmapStats {
min: 31.1430015564,
max: 31.1434249878,
mean: 31.1431922913,
std: 0.0000912108,
},
},
ReferenceCase {
name: "uniform_green_shift_20_16x16",
width: 16,
height: 16,
expected_score: 41.905860900878906,
expected_stats: DiffmapStats {
min: 41.9052467346,
max: 41.9058609009,
mean: 41.9055824280,
std: 0.0001280081,
},
},
ReferenceCase {
name: "uniform_blue_shift_20_16x16",
width: 16,
height: 16,
expected_score: 12.352552413940430,
expected_stats: DiffmapStats {
min: 12.3524036407,
max: 12.3525524139,
mean: 12.3524913788,
std: 0.0000377919,
},
},
ReferenceCase {
name: "uniform_red_shift_20_23x23",
width: 23,
height: 23,
expected_score: 31.143438339233398,
expected_stats: DiffmapStats {
min: 31.1430397034,
max: 31.1434383392,
mean: 31.1433982849,
std: 0.0001270215,
},
},
ReferenceCase {
name: "uniform_green_shift_20_23x23",
width: 23,
height: 23,
expected_score: 41.905681610107422,
expected_stats: DiffmapStats {
min: 41.9048309326,
max: 41.9056816101,
mean: 41.9052734375,
std: 0.0001780374,
},
},
ReferenceCase {
name: "uniform_blue_shift_20_23x23",
width: 23,
height: 23,
expected_score: 12.352540969848633,
expected_stats: DiffmapStats {
min: 12.3521385193,
max: 12.3525409698,
mean: 12.3524036407,
std: 0.0000891920,
},
},
ReferenceCase {
name: "uniform_red_shift_20_32x32",
width: 32,
height: 32,
expected_score: 31.143333435058594,
expected_stats: DiffmapStats {
min: 31.1426906586,
max: 31.1433334351,
mean: 31.1428546906,
std: 0.0002608184,
},
},
ReferenceCase {
name: "uniform_green_shift_20_32x32",
width: 32,
height: 32,
expected_score: 41.906055450439453,
expected_stats: DiffmapStats {
min: 41.9050636292,
max: 41.9060554504,
mean: 41.9059295654,
std: 0.0003333274,
},
},
ReferenceCase {
name: "uniform_blue_shift_20_32x32",
width: 32,
height: 32,
expected_score: 12.352670669555664,
expected_stats: DiffmapStats {
min: 12.3523311615,
max: 12.3526706696,
mean: 12.3525247574,
std: 0.0000697737,
},
},
ReferenceCase {
name: "gradient_h_shift_15_7x7",
width: 7,
height: 7,
expected_score: 5.174104690551758,
expected_stats: DiffmapStats {
min: 4.8096179962,
max: 5.1741046906,
mean: 5.0187435150,
std: 0.1100219265,
},
},
ReferenceCase {
name: "gradient_v_shift_15_7x7",
width: 7,
height: 7,
expected_score: 5.174089908599854,
expected_stats: DiffmapStats {
min: 4.8096427917,
max: 5.1740899086,
mean: 5.0187377930,
std: 0.1100210249,
},
},
ReferenceCase {
name: "gradient_h_shift_15_8x8",
width: 8,
height: 8,
expected_score: 5.669557094573975,
expected_stats: DiffmapStats {
min: 5.4510455132,
max: 5.6695570946,
mean: 5.5638914108,
std: 0.0569961891,
},
},
ReferenceCase {
name: "gradient_v_shift_15_8x8",
width: 8,
height: 8,
expected_score: 5.669545650482178,
expected_stats: DiffmapStats {
min: 5.4510664940,
max: 5.6695456505,
mean: 5.5638918877,
std: 0.0569972470,
},
},
ReferenceCase {
name: "gradient_h_shift_15_9x9",
width: 9,
height: 9,
expected_score: 5.819029808044434,
expected_stats: DiffmapStats {
min: 5.4930429459,
max: 5.8190298080,
mean: 5.6156253815,
std: 0.0694755316,
},
},
ReferenceCase {
name: "gradient_v_shift_15_9x9",
width: 9,
height: 9,
expected_score: 5.819005966186523,
expected_stats: DiffmapStats {
min: 5.4930391312,
max: 5.8190059662,
mean: 5.6156272888,
std: 0.0694729835,
},
},
ReferenceCase {
name: "gradient_h_shift_15_15x15",
width: 15,
height: 15,
expected_score: 8.736380577087402,
expected_stats: DiffmapStats {
min: 7.7852354050,
max: 8.7363805771,
mean: 8.3395891190,
std: 0.2143101394,
},
},
ReferenceCase {
name: "gradient_v_shift_15_15x15",
width: 15,
height: 15,
expected_score: 8.736390113830566,
expected_stats: DiffmapStats {
min: 7.7852306366,
max: 8.7363901138,
mean: 8.3395862579,
std: 0.2143077105,
},
},
ReferenceCase {
name: "gradient_h_shift_15_16x16",
width: 16,
height: 16,
expected_score: 9.122497558593750,
expected_stats: DiffmapStats {
min: 7.9491634369,
max: 9.1224975586,
mean: 8.6113510132,
std: 0.2846980393,
},
},
ReferenceCase {
name: "gradient_v_shift_15_16x16",
width: 16,
height: 16,
expected_score: 9.122505187988281,
expected_stats: DiffmapStats {
min: 7.9491643906,
max: 9.1225051880,
mean: 8.6113586426,
std: 0.2847020328,
},
},
ReferenceCase {
name: "gradient_h_shift_15_17x17",
width: 17,
height: 17,
expected_score: 9.504382133483887,
expected_stats: DiffmapStats {
min: 7.8903388977,
max: 9.5043821335,
mean: 8.7846136093,
std: 0.4178004861,
},
},
ReferenceCase {
name: "gradient_v_shift_15_17x17",
width: 17,
height: 17,
expected_score: 9.504400253295898,
expected_stats: DiffmapStats {
min: 7.8903264999,
max: 9.5044002533,
mean: 8.7846193314,
std: 0.4178018868,
},
},
ReferenceCase {
name: "gradient_h_shift_15_23x23",
width: 23,
height: 23,
expected_score: 11.526690483093262,
expected_stats: DiffmapStats {
min: 8.1764860153,
max: 11.5266904831,
mean: 10.2153549194,
std: 0.9910837412,
},
},
ReferenceCase {
name: "gradient_v_shift_15_23x23",
width: 23,
height: 23,
expected_score: 11.526638031005859,
expected_stats: DiffmapStats {
min: 8.1765069962,
max: 11.5266380310,
mean: 10.2153291702,
std: 0.9910749793,
},
},
ReferenceCase {
name: "gradient_h_shift_15_24x24",
width: 24,
height: 24,
expected_score: 12.228200912475586,
expected_stats: DiffmapStats {
min: 8.3338165283,
max: 12.2282009125,
mean: 10.5868225098,
std: 1.0985126495,
},
},
ReferenceCase {
name: "gradient_v_shift_15_24x24",
width: 24,
height: 24,
expected_score: 12.228230476379395,
expected_stats: DiffmapStats {
min: 8.3338203430,
max: 12.2282304764,
mean: 10.5868377686,
std: 1.0985224247,
},
},
ReferenceCase {
name: "gradient_h_shift_15_31x31",
width: 31,
height: 31,
expected_score: 12.753350257873535,
expected_stats: DiffmapStats {
min: 8.2311077118,
max: 12.7533502579,
mean: 11.2988958359,
std: 1.2271518707,
},
},
ReferenceCase {
name: "gradient_v_shift_15_31x31",
width: 31,
height: 31,
expected_score: 12.753323554992676,
expected_stats: DiffmapStats {
min: 8.2310934067,
max: 12.7533235550,
mean: 11.2988691330,
std: 1.2271403074,
},
},
ReferenceCase {
name: "gradient_h_shift_15_32x32",
width: 32,
height: 32,
expected_score: 13.380873680114746,
expected_stats: DiffmapStats {
min: 8.2979850769,
max: 13.3808736801,
mean: 11.5225152969,
std: 1.5156778097,
},
},
ReferenceCase {
name: "gradient_v_shift_15_32x32",
width: 32,
height: 32,
expected_score: 13.380866050720215,
expected_stats: DiffmapStats {
min: 8.2980375290,
max: 13.3808660507,
mean: 11.5225048065,
std: 1.5156664848,
},
},
ReferenceCase {
name: "gradient_h_shift_15_33x33",
width: 33,
height: 33,
expected_score: 15.386177062988281,
expected_stats: DiffmapStats {
min: 8.3043365479,
max: 15.3861770630,
mean: 12.6482095718,
std: 2.1344678402,
},
},
ReferenceCase {
name: "gradient_v_shift_15_33x33",
width: 33,
height: 33,
expected_score: 15.386087417602539,
expected_stats: DiffmapStats {
min: 8.3043460846,
max: 15.3860874176,
mean: 12.6482372284,
std: 2.1344540119,
},
},
ReferenceCase {
name: "gradient_h_shift_15_47x47",
width: 47,
height: 47,
expected_score: 15.537916183471680,
expected_stats: DiffmapStats {
min: 8.4245958328,
max: 15.5379161835,
mean: 12.9252023697,
std: 1.9896817207,
},
},
ReferenceCase {
name: "gradient_v_shift_15_47x47",
width: 47,
height: 47,
expected_score: 15.537848472595215,
expected_stats: DiffmapStats {
min: 8.4245862961,
max: 15.5378484726,
mean: 12.9252471924,
std: 1.9896681309,
},
},
ReferenceCase {
name: "gradient_diag_shift_20_16x16",
width: 16,
height: 16,
expected_score: 13.896900177001953,
expected_stats: DiffmapStats {
min: 11.7240924835,
max: 13.8969001770,
mean: 13.0633783340,
std: 0.5010651946,
},
},
ReferenceCase {
name: "gradient_diag_shift_20_23x31",
width: 23,
height: 31,
expected_score: 19.813007354736328,
expected_stats: DiffmapStats {
min: 12.0354423523,
max: 19.8130073547,
mean: 16.6454257965,
std: 1.8829215765,
},
},
ReferenceCase {
name: "gradient_diag_shift_20_32x32",
width: 32,
height: 32,
expected_score: 19.695274353027344,
expected_stats: DiffmapStats {
min: 12.0426979065,
max: 19.6952743530,
mean: 17.3299198151,
std: 1.8090330362,
},
},
ReferenceCase {
name: "gradient_diag_shift_20_47x33",
width: 47,
height: 33,
expected_score: 20.760261535644531,
expected_stats: DiffmapStats {
min: 12.2998352051,
max: 20.7602615356,
mean: 17.7651748657,
std: 1.8888351917,
},
},
ReferenceCase {
name: "color_gradient_shift_10_16x16",
width: 16,
height: 16,
expected_score: 5.855044841766357,
expected_stats: DiffmapStats {
min: 5.1816945076,
max: 5.8550448418,
mean: 5.6062598228,
std: 0.1391754895,
},
},
ReferenceCase {
name: "color_gradient_shift_10_23x23",
width: 23,
height: 23,
expected_score: 7.501031398773193,
expected_stats: DiffmapStats {
min: 5.4331884384,
max: 7.5010313988,
mean: 6.6406311989,
std: 0.4614124000,
},
},
ReferenceCase {
name: "color_gradient_shift_10_32x32",
width: 32,
height: 32,
expected_score: 8.988498687744141,
expected_stats: DiffmapStats {
min: 5.7021770477,
max: 8.9884986877,
mean: 7.7821602821,
std: 0.7788734436,
},
},
ReferenceCase {
name: "color_gradient_shift_10_33x47",
width: 33,
height: 47,
expected_score: 10.079851150512695,
expected_stats: DiffmapStats {
min: 5.4459681511,
max: 10.0798511505,
mean: 8.5043659210,
std: 1.0100678205,
},
},
ReferenceCase {
name: "checkerboard_vs_inverse_1px_8x8",
width: 8,
height: 8,
expected_score: 6.374588966369629,
expected_stats: DiffmapStats {
min: 2.8010087013,
max: 6.3745889664,
mean: 4.7386927605,
std: 1.1468765736,
},
},
ReferenceCase {
name: "checkerboard_vs_inverse_2px_8x8",
width: 8,
height: 8,
expected_score: 10.110674858093262,
expected_stats: DiffmapStats {
min: 4.4928402901,
max: 10.1106748581,
mean: 5.6230888367,
std: 1.2949371338,
},
},
ReferenceCase {
name: "checkerboard_shift_10_8x8",
width: 8,
height: 8,
expected_score: 3.824559926986694,
expected_stats: DiffmapStats {
min: 3.8204424381,
max: 3.8245599270,
mean: 3.8216385841,
std: 0.0009971969,
},
},
ReferenceCase {
name: "checkerboard_vs_inverse_1px_15x15",
width: 15,
height: 15,
expected_score: 8.630271911621094,
expected_stats: DiffmapStats {
min: 3.1789870262,
max: 8.6302719116,
mean: 6.4342441559,
std: 1.3174502850,
},
},
ReferenceCase {
name: "checkerboard_vs_inverse_2px_15x15",
width: 15,
height: 15,
expected_score: 9.907728195190430,
expected_stats: DiffmapStats {
min: 4.0896916389,
max: 9.9077281952,
mean: 6.8443341255,
std: 1.1271104813,
},
},
ReferenceCase {
name: "checkerboard_shift_10_15x15",
width: 15,
height: 15,
expected_score: 5.050719261169434,
expected_stats: DiffmapStats {
min: 5.0333423615,
max: 5.0507192612,
mean: 5.0407047272,
std: 0.0038582624,
},
},
ReferenceCase {
name: "checkerboard_vs_inverse_1px_16x16",
width: 16,
height: 16,
expected_score: 6.185847282409668,
expected_stats: DiffmapStats {
min: 2.3713932037,
max: 6.1858472824,
mean: 5.0152950287,
std: 1.1258676052,
},
},
ReferenceCase {
name: "checkerboard_vs_inverse_2px_16x16",
width: 16,
height: 16,
expected_score: 9.899394035339355,
expected_stats: DiffmapStats {
min: 5.0381717682,
max: 9.8993940353,
mean: 7.0200233459,
std: 1.0522407293,
},
},
ReferenceCase {
name: "checkerboard_shift_10_16x16",
width: 16,
height: 16,
expected_score: 5.067731857299805,
expected_stats: DiffmapStats {
min: 5.0516943932,
max: 5.0677318573,
mean: 5.0555863380,
std: 0.0032247910,
},
},
ReferenceCase {
name: "checkerboard_vs_inverse_1px_23x23",
width: 23,
height: 23,
expected_score: 8.563911437988281,
expected_stats: DiffmapStats {
min: 2.5875251293,
max: 8.5639114380,
mean: 6.1833438873,
std: 1.1898683310,
},
},
ReferenceCase {
name: "checkerboard_vs_inverse_2px_23x23",
width: 23,
height: 23,
expected_score: 9.884331703186035,
expected_stats: DiffmapStats {
min: 4.0832157135,
max: 9.8843317032,
mean: 7.3616952896,
std: 1.1450780630,
},
},
ReferenceCase {
name: "checkerboard_shift_10_23x23",
width: 23,
height: 23,
expected_score: 5.049997329711914,
expected_stats: DiffmapStats {
min: 5.0296382904,
max: 5.0499973297,
mean: 5.0361509323,
std: 0.0045969975,
},
},
ReferenceCase {
name: "checkerboard_vs_inverse_1px_32x32",
width: 32,
height: 32,
expected_score: 6.186212539672852,
expected_stats: DiffmapStats {
min: 2.3752634525,
max: 6.1862125397,
mean: 5.5742135048,
std: 0.9513533711,
},
},
ReferenceCase {
name: "checkerboard_vs_inverse_2px_32x32",
width: 32,
height: 32,
expected_score: 9.881882667541504,
expected_stats: DiffmapStats {
min: 5.0606136322,
max: 9.8818826675,
mean: 7.6728472710,
std: 1.0343989134,
},
},
ReferenceCase {
name: "checkerboard_shift_10_32x32",
width: 32,
height: 32,
expected_score: 5.064990043640137,
expected_stats: DiffmapStats {
min: 5.0314598083,
max: 5.0649900436,
mean: 5.0399932861,
std: 0.0059764385,
},
},
ReferenceCase {
name: "checkerboard_vs_inverse_1px_33x33",
width: 33,
height: 33,
expected_score: 8.566612243652344,
expected_stats: DiffmapStats {
min: 2.4103670120,
max: 8.5666122437,
mean: 5.9877390862,
std: 1.0289670229,
},
},
ReferenceCase {
name: "checkerboard_vs_inverse_2px_33x33",
width: 33,
height: 33,
expected_score: 9.882217407226562,
expected_stats: DiffmapStats {
min: 4.0834116936,
max: 9.8822174072,
mean: 7.6918840408,
std: 1.0786180496,
},
},
ReferenceCase {
name: "checkerboard_shift_10_33x33",
width: 33,
height: 33,
expected_score: 5.049701690673828,
expected_stats: DiffmapStats {
min: 5.0292668343,
max: 5.0497016907,
mean: 5.0338039398,
std: 0.0044455151,
},
},
ReferenceCase {
name: "checkerboard_vs_inverse_4px_32x32",
width: 32,
height: 32,
expected_score: 44.461437225341797,
expected_stats: DiffmapStats {
min: 11.7806501389,
max: 44.4614372253,
mean: 23.6008567810,
std: 6.5258269310,
},
},
ReferenceCase {
name: "checkerboard_vs_inverse_8px_32x32",
width: 32,
height: 32,
expected_score: 85.006210327148438,
expected_stats: DiffmapStats {
min: 23.2712364197,
max: 85.0062103271,
mean: 53.4941978455,
std: 14.2888107300,
},
},
ReferenceCase {
name: "checkerboard_vs_inverse_4px_47x47",
width: 47,
height: 47,
expected_score: 44.114074707031250,
expected_stats: DiffmapStats {
min: 11.8658647537,
max: 44.1140747070,
mean: 22.2250537872,
std: 5.8263273239,
},
},
ReferenceCase {
name: "checkerboard_vs_inverse_8px_47x47",
width: 47,
height: 47,
expected_score: 83.382919311523438,
expected_stats: DiffmapStats {
min: 23.3205337524,
max: 83.3829193115,
mean: 51.1307983398,
std: 13.6312551498,
},
},
ReferenceCase {
name: "checkerboard_vs_inverse_4px_64x64",
width: 64,
height: 64,
expected_score: 44.491954803466797,
expected_stats: DiffmapStats {
min: 11.8032588959,
max: 44.4919548035,
mean: 22.5272731781,
std: 6.0375080109,
},
},
ReferenceCase {
name: "checkerboard_vs_inverse_8px_64x64",
width: 64,
height: 64,
expected_score: 85.020446777343750,
expected_stats: DiffmapStats {
min: 23.3080406189,
max: 85.0204467773,
mean: 50.9427986145,
std: 13.9604940414,
},
},
ReferenceCase {
name: "stripes_h_2px_shift_15_16x16",
width: 16,
height: 16,
expected_score: 7.943059921264648,
expected_stats: DiffmapStats {
min: 7.6985592842,
max: 7.9430599213,
mean: 7.8011450768,
std: 0.0754812211,
},
},
ReferenceCase {
name: "stripes_v_2px_shift_15_16x16",
width: 16,
height: 16,
expected_score: 7.943051338195801,
expected_stats: DiffmapStats {
min: 7.6985502243,
max: 7.9430513382,
mean: 7.8011412621,
std: 0.0754791796,
},
},
ReferenceCase {
name: "stripes_h_2px_shift_15_23x23",
width: 23,
height: 23,
expected_score: 7.720019340515137,
expected_stats: DiffmapStats {
min: 7.6667804718,
max: 7.7200193405,
mean: 7.6970582008,
std: 0.0152749289,
},
},
ReferenceCase {
name: "stripes_v_2px_shift_15_23x23",
width: 23,
height: 23,
expected_score: 7.720017433166504,
expected_stats: DiffmapStats {
min: 7.6667466164,
max: 7.7200174332,
mean: 7.6970629692,
std: 0.0152756199,
},
},
ReferenceCase {
name: "stripes_h_2px_shift_15_32x32",
width: 32,
height: 32,
expected_score: 7.947269439697266,
expected_stats: DiffmapStats {
min: 7.6637635231,
max: 7.9472694397,
mean: 7.7465748787,
std: 0.0797671378,
},
},
ReferenceCase {
name: "stripes_v_2px_shift_15_32x32",
width: 32,
height: 32,
expected_score: 7.947271823883057,
expected_stats: DiffmapStats {
min: 7.6637692451,
max: 7.9472718239,
mean: 7.7465577126,
std: 0.0797677487,
},
},
ReferenceCase {
name: "stripes_h_2px_shift_15_33x47",
width: 33,
height: 47,
expected_score: 7.723303794860840,
expected_stats: DiffmapStats {
min: 7.6623182297,
max: 7.7233037949,
mean: 7.6990652084,
std: 0.0147155495,
},
},
ReferenceCase {
name: "stripes_v_2px_shift_15_33x47",
width: 33,
height: 47,
expected_score: 7.693379878997803,
expected_stats: DiffmapStats {
min: 7.6607275009,
max: 7.6933798790,
mean: 7.6855983734,
std: 0.0088246884,
},
},
ReferenceCase {
name: "sine_1x1_shift_10_32x32",
width: 32,
height: 32,
expected_score: 6.789473533630371,
expected_stats: DiffmapStats {
min: 4.8673505783,
max: 6.7894735336,
mean: 5.9505476952,
std: 0.4566545188,
},
},
ReferenceCase {
name: "sine_2x2_shift_10_32x32",
width: 32,
height: 32,
expected_score: 6.059971809387207,
expected_stats: DiffmapStats {
min: 5.4986329079,
max: 6.0599718094,
mean: 5.7392320633,
std: 0.0632172078,
},
},
ReferenceCase {
name: "sine_4x4_shift_10_32x32",
width: 32,
height: 32,
expected_score: 5.808218955993652,
expected_stats: DiffmapStats {
min: 5.7106223106,
max: 5.8082189560,
mean: 5.7811560631,
std: 0.0166352727,
},
},
ReferenceCase {
name: "sine_1x1_shift_10_33x33",
width: 33,
height: 33,
expected_score: 6.993182182312012,
expected_stats: DiffmapStats {
min: 4.8926086426,
max: 6.9931821823,
mean: 6.0168838501,
std: 0.5046527982,
},
},
ReferenceCase {
name: "sine_2x2_shift_10_33x33",
width: 33,
height: 33,
expected_score: 6.092983245849609,
expected_stats: DiffmapStats {
min: 5.4805397987,
max: 6.0929832458,
mean: 5.7515916824,
std: 0.0672659799,
},
},
ReferenceCase {
name: "sine_4x4_shift_10_33x33",
width: 33,
height: 33,
expected_score: 5.808936119079590,
expected_stats: DiffmapStats {
min: 5.7114982605,
max: 5.8089361191,
mean: 5.7852025032,
std: 0.0153092938,
},
},
ReferenceCase {
name: "sine_1x1_shift_10_47x47",
width: 47,
height: 47,
expected_score: 8.934980392456055,
expected_stats: DiffmapStats {
min: 4.9603238106,
max: 8.9349803925,
mean: 6.7160682678,
std: 1.0449502468,
},
},
ReferenceCase {
name: "sine_2x2_shift_10_47x47",
width: 47,
height: 47,
expected_score: 6.558290481567383,
expected_stats: DiffmapStats {
min: 5.1495914459,
max: 6.5582904816,
mean: 5.8218832016,
std: 0.1664576530,
},
},
ReferenceCase {
name: "sine_4x4_shift_10_47x47",
width: 47,
height: 47,
expected_score: 5.885924339294434,
expected_stats: DiffmapStats {
min: 5.6782493591,
max: 5.8859243393,
mean: 5.8067870140,
std: 0.0251428224,
},
},
ReferenceCase {
name: "sine_1x1_shift_10_64x64",
width: 64,
height: 64,
expected_score: 9.582469940185547,
expected_stats: DiffmapStats {
min: 5.1831264496,
max: 9.5824699402,
mean: 7.4391937256,
std: 1.2703582048,
},
},
ReferenceCase {
name: "sine_2x2_shift_10_64x64",
width: 64,
height: 64,
expected_score: 7.267996788024902,
expected_stats: DiffmapStats {
min: 4.8750309944,
max: 7.2679967880,
mean: 6.1285881996,
std: 0.4175228477,
},
},
ReferenceCase {
name: "sine_4x4_shift_10_64x64",
width: 64,
height: 64,
expected_score: 6.080981254577637,
expected_stats: DiffmapStats {
min: 5.5071806908,
max: 6.0809812546,
mean: 5.7835836411,
std: 0.0584032387,
},
},
ReferenceCase {
name: "radial_shift_15_16x16",
width: 16,
height: 16,
expected_score: 9.392354965209961,
expected_stats: DiffmapStats {
min: 9.2191295624,
max: 9.3923549652,
mean: 9.2600402832,
std: 0.0221742559,
},
},
ReferenceCase {
name: "radial_shift_15_23x23",
width: 23,
height: 23,
expected_score: 9.536755561828613,
expected_stats: DiffmapStats {
min: 9.1461830139,
max: 9.5367555618,
mean: 9.3978738785,
std: 0.0590510629,
},
},
ReferenceCase {
name: "radial_shift_15_32x32",
width: 32,
height: 32,
expected_score: 10.539426803588867,
expected_stats: DiffmapStats {
min: 9.1788196564,
max: 10.5394268036,
mean: 10.1367444992,
std: 0.2617020309,
},
},
ReferenceCase {
name: "radial_shift_15_47x47",
width: 47,
height: 47,
expected_score: 12.432041168212891,
expected_stats: DiffmapStats {
min: 9.4774732590,
max: 12.4320411682,
mean: 11.6820354462,
std: 0.4997289479,
},
},
ReferenceCase {
name: "edge_v_shift_10_16x16",
width: 16,
height: 16,
expected_score: 5.452372550964355,
expected_stats: DiffmapStats {
min: 5.1955986023,
max: 5.4523725510,
mean: 5.3073840141,
std: 0.0741144344,
},
},
ReferenceCase {
name: "edge_h_shift_10_16x16",
width: 16,
height: 16,
expected_score: 5.452385902404785,
expected_stats: DiffmapStats {
min: 5.1956157684,
max: 5.4523859024,
mean: 5.3073959351,
std: 0.0741135105,
},
},
ReferenceCase {
name: "edge_v_vs_blur_16x16",
width: 16,
height: 16,
expected_score: 4.276970386505127,
expected_stats: DiffmapStats {
min: 0.7709431648,
max: 4.2769703865,
mean: 1.9362828732,
std: 0.7988954186,
},
},
ReferenceCase {
name: "edge_v_shift_10_23x31",
width: 23,
height: 31,
expected_score: 5.651403903961182,
expected_stats: DiffmapStats {
min: 5.1697282791,
max: 5.6514039040,
mean: 5.4673604965,
std: 0.1454640776,
},
},
ReferenceCase {
name: "edge_h_shift_10_23x31",
width: 23,
height: 31,
expected_score: 6.067972183227539,
expected_stats: DiffmapStats {
min: 5.1422157288,
max: 6.0679721832,
mean: 5.7577233315,
std: 0.3027817607,
},
},
ReferenceCase {
name: "edge_v_vs_blur_23x31",
width: 23,
height: 31,
expected_score: 5.582333087921143,
expected_stats: DiffmapStats {
min: 0.8560819626,
max: 5.5823330879,
mean: 2.1838903427,
std: 1.1206398010,
},
},
ReferenceCase {
name: "edge_v_shift_10_32x32",
width: 32,
height: 32,
expected_score: 6.120188236236572,
expected_stats: DiffmapStats {
min: 5.1205377579,
max: 6.1201882362,
mean: 5.7914347649,
std: 0.3265343308,
},
},
ReferenceCase {
name: "edge_h_shift_10_32x32",
width: 32,
height: 32,
expected_score: 6.120182037353516,
expected_stats: DiffmapStats {
min: 5.1205539703,
max: 6.1201820374,
mean: 5.7914443016,
std: 0.3265365660,
},
},
ReferenceCase {
name: "edge_v_vs_blur_32x32",
width: 32,
height: 32,
expected_score: 4.523095130920410,
expected_stats: DiffmapStats {
min: 0.2646337748,
max: 4.5230951309,
mean: 1.3788294792,
std: 1.0370147228,
},
},
ReferenceCase {
name: "edge_v_shift_10_47x33",
width: 47,
height: 33,
expected_score: 11.228736877441406,
expected_stats: DiffmapStats {
min: 5.1239757538,
max: 11.2287368774,
mean: 7.4043874741,
std: 1.8381720781,
},
},
ReferenceCase {
name: "edge_h_shift_10_47x33",
width: 47,
height: 33,
expected_score: 6.183403015136719,
expected_stats: DiffmapStats {
min: 5.1179518700,
max: 6.1834030151,
mean: 5.8525938988,
std: 0.3533471227,
},
},
ReferenceCase {
name: "edge_v_vs_blur_47x33",
width: 47,
height: 33,
expected_score: 5.689991474151611,
expected_stats: DiffmapStats {
min: 0.2635574937,
max: 5.6899914742,
mean: 1.3440610170,
std: 1.1991616488,
},
},
ReferenceCase {
name: "random_seed0_shift_10_16x16",
width: 16,
height: 16,
expected_score: 5.104852676391602,
expected_stats: DiffmapStats {
min: 4.9231262207,
max: 5.1048526764,
mean: 5.0046720505,
std: 0.0404440872,
},
},
ReferenceCase {
name: "random_seed0_noise_20_16x16",
width: 16,
height: 16,
expected_score: 1.865679025650024,
expected_stats: DiffmapStats {
min: 0.8419754505,
max: 1.8656790257,
mean: 1.3340255022,
std: 0.1853287816,
},
},
ReferenceCase {
name: "random_seed0_shift_10_23x23",
width: 23,
height: 23,
expected_score: 4.973814964294434,
expected_stats: DiffmapStats {
min: 4.8347129822,
max: 4.9738149643,
mean: 4.9259724617,
std: 0.0280366186,
},
},
ReferenceCase {
name: "random_seed0_noise_20_23x23",
width: 23,
height: 23,
expected_score: 1.678754329681396,
expected_stats: DiffmapStats {
min: 0.7917724848,
max: 1.6787543297,
mean: 1.1628619432,
std: 0.1459031999,
},
},
ReferenceCase {
name: "random_seed0_shift_10_32x32",
width: 32,
height: 32,
expected_score: 4.989305019378662,
expected_stats: DiffmapStats {
min: 4.7787580490,
max: 4.9893050194,
mean: 4.8755168915,
std: 0.0402688980,
},
},
ReferenceCase {
name: "random_seed0_noise_20_32x32",
width: 32,
height: 32,
expected_score: 1.777923822402954,
expected_stats: DiffmapStats {
min: 0.6204386950,
max: 1.7779238224,
mean: 1.1169226170,
std: 0.2004455924,
},
},
ReferenceCase {
name: "random_seed0_shift_10_33x47",
width: 33,
height: 47,
expected_score: 5.072916030883789,
expected_stats: DiffmapStats {
min: 4.7908387184,
max: 5.0729160309,
mean: 4.9085297585,
std: 0.0789152235,
},
},
ReferenceCase {
name: "random_seed0_noise_20_33x47",
width: 33,
height: 47,
expected_score: 1.621182441711426,
expected_stats: DiffmapStats {
min: 0.5803045034,
max: 1.6211824417,
mean: 1.0528562069,
std: 0.1820689589,
},
},
ReferenceCase {
name: "random_seed0_shift_10_47x33",
width: 47,
height: 33,
expected_score: 5.089601993560791,
expected_stats: DiffmapStats {
min: 4.7862224579,
max: 5.0896019936,
mean: 4.9263157845,
std: 0.0573163293,
},
},
ReferenceCase {
name: "random_seed0_noise_20_47x33",
width: 47,
height: 33,
expected_score: 2.046731948852539,
expected_stats: DiffmapStats {
min: 0.5602899790,
max: 2.0467319489,
mean: 1.0651363134,
std: 0.2020343840,
},
},
ReferenceCase {
name: "random_seed1_shift_10_16x16",
width: 16,
height: 16,
expected_score: 5.038761615753174,
expected_stats: DiffmapStats {
min: 4.8414592743,
max: 5.0387616158,
mean: 4.9282021523,
std: 0.0417347439,
},
},
ReferenceCase {
name: "random_seed1_noise_20_16x16",
width: 16,
height: 16,
expected_score: 1.813204407691956,
expected_stats: DiffmapStats {
min: 0.6091213226,
max: 1.8132044077,
mean: 0.9925272465,
std: 0.2398974001,
},
},
ReferenceCase {
name: "random_seed1_shift_10_23x23",
width: 23,
height: 23,
expected_score: 5.030662059783936,
expected_stats: DiffmapStats {
min: 4.7411794662,
max: 5.0306620598,
mean: 4.9038581848,
std: 0.0673874617,
},
},
ReferenceCase {
name: "random_seed1_noise_20_23x23",
width: 23,
height: 23,
expected_score: 1.604855418205261,
expected_stats: DiffmapStats {
min: 0.6138444543,
max: 1.6048554182,
mean: 1.0387145281,
std: 0.1673533916,
},
},
ReferenceCase {
name: "random_seed1_shift_10_32x32",
width: 32,
height: 32,
expected_score: 5.005490779876709,
expected_stats: DiffmapStats {
min: 4.8533415794,
max: 5.0054907799,
mean: 4.9211392403,
std: 0.0340047590,
},
},
ReferenceCase {
name: "random_seed1_noise_20_32x32",
width: 32,
height: 32,
expected_score: 1.818963289260864,
expected_stats: DiffmapStats {
min: 0.5614880919,
max: 1.8189632893,
mean: 1.0446197987,
std: 0.1955291182,
},
},
ReferenceCase {
name: "random_seed1_shift_10_33x47",
width: 33,
height: 47,
expected_score: 5.067478656768799,
expected_stats: DiffmapStats {
min: 4.8121867180,
max: 5.0674786568,
mean: 4.9316191673,
std: 0.0532563552,
},
},
ReferenceCase {
name: "random_seed1_noise_20_33x47",
width: 33,
height: 47,
expected_score: 1.759356856346130,
expected_stats: DiffmapStats {
min: 0.5154361129,
max: 1.7593568563,
mean: 1.0477124453,
std: 0.1991008222,
},
},
ReferenceCase {
name: "random_seed1_shift_10_47x33",
width: 47,
height: 33,
expected_score: 5.024950504302979,
expected_stats: DiffmapStats {
min: 4.8156080246,
max: 5.0249505043,
mean: 4.9430861473,
std: 0.0400158800,
},
},
ReferenceCase {
name: "random_seed1_noise_20_47x33",
width: 47,
height: 33,
expected_score: 2.157618045806885,
expected_stats: DiffmapStats {
min: 0.6075686216,
max: 2.1576180458,
mean: 1.1155810356,
std: 0.2047823519,
},
},
ReferenceCase {
name: "random_seed2_shift_10_16x16",
width: 16,
height: 16,
expected_score: 4.977144241333008,
expected_stats: DiffmapStats {
min: 4.8131437302,
max: 4.9771442413,
mean: 4.9207329750,
std: 0.0363745615,
},
},
ReferenceCase {
name: "random_seed2_noise_20_16x16",
width: 16,
height: 16,
expected_score: 1.370284795761108,
expected_stats: DiffmapStats {
min: 0.5327199697,
max: 1.3702847958,
mean: 0.9356605411,
std: 0.1496225744,
},
},
ReferenceCase {
name: "random_seed2_shift_10_23x23",
width: 23,
height: 23,
expected_score: 4.960149288177490,
expected_stats: DiffmapStats {
min: 4.8780508041,
max: 4.9601492882,
mean: 4.9075274467,
std: 0.0154044284,
},
},
ReferenceCase {
name: "random_seed2_noise_20_23x23",
width: 23,
height: 23,
expected_score: 1.567344665527344,
expected_stats: DiffmapStats {
min: 0.5983665586,
max: 1.5673446655,
mean: 1.0401295424,
std: 0.1786867082,
},
},
ReferenceCase {
name: "random_seed2_shift_10_32x32",
width: 32,
height: 32,
expected_score: 5.085437297821045,
expected_stats: DiffmapStats {
min: 4.8667316437,
max: 5.0854372978,
mean: 4.9678201675,
std: 0.0560539402,
},
},
ReferenceCase {
name: "random_seed2_noise_20_32x32",
width: 32,
height: 32,
expected_score: 1.731754064559937,
expected_stats: DiffmapStats {
min: 0.4880876541,
max: 1.7317540646,
mean: 1.0203336477,
std: 0.2041560262,
},
},
ReferenceCase {
name: "random_seed2_shift_10_33x47",
width: 33,
height: 47,
expected_score: 5.022000789642334,
expected_stats: DiffmapStats {
min: 4.8793063164,
max: 5.0220007896,
mean: 4.9550690651,
std: 0.0301432405,
},
},
ReferenceCase {
name: "random_seed2_noise_20_33x47",
width: 33,
height: 47,
expected_score: 2.050457000732422,
expected_stats: DiffmapStats {
min: 0.5720568299,
max: 2.0504570007,
mean: 1.0343151093,
std: 0.2044612318,
},
},
ReferenceCase {
name: "random_seed2_shift_10_47x33",
width: 47,
height: 33,
expected_score: 5.051315307617188,
expected_stats: DiffmapStats {
min: 4.8539476395,
max: 5.0513153076,
mean: 4.9668269157,
std: 0.0531219617,
},
},
ReferenceCase {
name: "random_seed2_noise_20_47x33",
width: 47,
height: 33,
expected_score: 1.930825233459473,
expected_stats: DiffmapStats {
min: 0.4439344108,
max: 1.9308252335,
mean: 1.0172902346,
std: 0.1954746097,
},
},
ReferenceCase {
name: "random_seed3_shift_10_16x16",
width: 16,
height: 16,
expected_score: 5.047609329223633,
expected_stats: DiffmapStats {
min: 4.8854961395,
max: 5.0476093292,
mean: 4.9650182724,
std: 0.0369538851,
},
},
ReferenceCase {
name: "random_seed3_noise_20_16x16",
width: 16,
height: 16,
expected_score: 1.358316302299500,
expected_stats: DiffmapStats {
min: 0.5174500942,
max: 1.3583163023,
mean: 0.9021456242,
std: 0.1426333338,
},
},
ReferenceCase {
name: "random_seed3_shift_10_23x23",
width: 23,
height: 23,
expected_score: 5.032275199890137,
expected_stats: DiffmapStats {
min: 4.9308767319,
max: 5.0322751999,
mean: 4.9873166084,
std: 0.0230695028,
},
},
ReferenceCase {
name: "random_seed3_noise_20_23x23",
width: 23,
height: 23,
expected_score: 1.765859127044678,
expected_stats: DiffmapStats {
min: 0.5368613601,
max: 1.7658591270,
mean: 1.0225318670,
std: 0.2217773497,
},
},
ReferenceCase {
name: "random_seed3_shift_10_32x32",
width: 32,
height: 32,
expected_score: 5.123415946960449,
expected_stats: DiffmapStats {
min: 4.8746919632,
max: 5.1234159470,
mean: 4.9891576767,
std: 0.0499890894,
},
},
ReferenceCase {
name: "random_seed3_noise_20_32x32",
width: 32,
height: 32,
expected_score: 1.929344654083252,
expected_stats: DiffmapStats {
min: 0.5210472941,
max: 1.9293446541,
mean: 1.0215564966,
std: 0.1908732355,
},
},
ReferenceCase {
name: "random_seed3_shift_10_33x47",
width: 33,
height: 47,
expected_score: 5.128277778625488,
expected_stats: DiffmapStats {
min: 4.9073839188,
max: 5.1282777786,
mean: 4.9971432686,
std: 0.0470363349,
},
},
ReferenceCase {
name: "random_seed3_noise_20_33x47",
width: 33,
height: 47,
expected_score: 1.857083082199097,
expected_stats: DiffmapStats {
min: 0.4966019392,
max: 1.8570830822,
mean: 1.0073584318,
std: 0.2030332685,
},
},
ReferenceCase {
name: "random_seed3_shift_10_47x33",
width: 47,
height: 33,
expected_score: 5.064902305603027,
expected_stats: DiffmapStats {
min: 4.9241714478,
max: 5.0649023056,
mean: 4.9929051399,
std: 0.0213805493,
},
},
ReferenceCase {
name: "random_seed3_noise_20_47x33",
width: 47,
height: 33,
expected_score: 1.651598572731018,
expected_stats: DiffmapStats {
min: 0.5986723304,
max: 1.6515985727,
mean: 1.0577595234,
std: 0.1974929571,
},
},
ReferenceCase {
name: "random_seed4_shift_10_16x16",
width: 16,
height: 16,
expected_score: 5.165312767028809,
expected_stats: DiffmapStats {
min: 5.0186648369,
max: 5.1653127670,
mean: 5.0752549171,
std: 0.0316789746,
},
},
ReferenceCase {
name: "random_seed4_noise_20_16x16",
width: 16,
height: 16,
expected_score: 1.434504866600037,
expected_stats: DiffmapStats {
min: 0.7372146845,
max: 1.4345048666,
mean: 1.0549347401,
std: 0.1435250938,
},
},
ReferenceCase {
name: "random_seed4_shift_10_23x23",
width: 23,
height: 23,
expected_score: 5.117522239685059,
expected_stats: DiffmapStats {
min: 4.7710866928,
max: 5.1175222397,
mean: 4.9304862022,
std: 0.0738629326,
},
},
ReferenceCase {
name: "random_seed4_noise_20_23x23",
width: 23,
height: 23,
expected_score: 1.559069156646729,
expected_stats: DiffmapStats {
min: 0.6627451181,
max: 1.5590691566,
mean: 0.9683966041,
std: 0.1564228684,
},
},
ReferenceCase {
name: "random_seed4_shift_10_32x32",
width: 32,
height: 32,
expected_score: 5.018776416778564,
expected_stats: DiffmapStats {
min: 4.7575178146,
max: 5.0187764168,
mean: 4.8756999969,
std: 0.0523517877,
},
},
ReferenceCase {
name: "random_seed4_noise_20_32x32",
width: 32,
height: 32,
expected_score: 1.716745138168335,
expected_stats: DiffmapStats {
min: 0.5248512626,
max: 1.7167451382,
mean: 1.0254979134,
std: 0.2097395808,
},
},
ReferenceCase {
name: "random_seed4_shift_10_33x47",
width: 33,
height: 47,
expected_score: 4.988338947296143,
expected_stats: DiffmapStats {
min: 4.7633810043,
max: 4.9883389473,
mean: 4.9004025459,
std: 0.0480839573,
},
},
ReferenceCase {
name: "random_seed4_noise_20_33x47",
width: 33,
height: 47,
expected_score: 1.858264684677124,
expected_stats: DiffmapStats {
min: 0.6226277947,
max: 1.8582646847,
mean: 1.0556833744,
std: 0.1943008304,
},
},
ReferenceCase {
name: "random_seed4_shift_10_47x33",
width: 47,
height: 33,
expected_score: 5.090592384338379,
expected_stats: DiffmapStats {
min: 4.8271923065,
max: 5.0905923843,
mean: 4.8834996223,
std: 0.0410448201,
},
},
ReferenceCase {
name: "random_seed4_noise_20_47x33",
width: 47,
height: 33,
expected_score: 1.704420566558838,
expected_stats: DiffmapStats {
min: 0.5275415778,
max: 1.7044205666,
mean: 1.0536491871,
std: 0.1797961891,
},
},
ReferenceCase {
name: "random_mid_contrast_1.2_32x32",
width: 32,
height: 32,
expected_score: 3.256410598754883,
expected_stats: DiffmapStats {
min: 2.7701249123,
max: 3.2564105988,
mean: 2.9883403778,
std: 0.1012725458,
},
},
ReferenceCase {
name: "random_mid_gamma_0.9_32x32",
width: 32,
height: 32,
expected_score: 3.804513931274414,
expected_stats: DiffmapStats {
min: 3.6561565399,
max: 3.8045139313,
mean: 3.7305145264,
std: 0.0287708621,
},
},
ReferenceCase {
name: "random_mid_blur_32x32",
width: 32,
height: 32,
expected_score: 9.400666236877441,
expected_stats: DiffmapStats {
min: 6.9375448227,
max: 9.4006662369,
mean: 8.2274580002,
std: 0.3871611953,
},
},
ReferenceCase {
name: "random_mid_quantize_32_32x32",
width: 32,
height: 32,
expected_score: 0.430455684661865,
expected_stats: DiffmapStats {
min: 0.2056657225,
max: 0.4304556847,
mean: 0.3065125942,
std: 0.0402736515,
},
},
ReferenceCase {
name: "random_mid_contrast_1.2_47x47",
width: 47,
height: 47,
expected_score: 3.561071395874023,
expected_stats: DiffmapStats {
min: 2.5026822090,
max: 3.5610713959,
mean: 2.9216492176,
std: 0.1920752078,
},
},
ReferenceCase {
name: "random_mid_gamma_0.9_47x47",
width: 47,
height: 47,
expected_score: 3.823719024658203,
expected_stats: DiffmapStats {
min: 3.5221278667,
max: 3.8237190247,
mean: 3.7239603996,
std: 0.0630564392,
},
},
ReferenceCase {
name: "random_mid_blur_47x47",
width: 47,
height: 47,
expected_score: 9.473284721374512,
expected_stats: DiffmapStats {
min: 7.3273215294,
max: 9.4732847214,
mean: 8.2069349289,
std: 0.2846623361,
},
},
ReferenceCase {
name: "random_mid_quantize_32_47x47",
width: 47,
height: 47,
expected_score: 0.441148221492767,
expected_stats: DiffmapStats {
min: 0.2429788113,
max: 0.4411482215,
mean: 0.3286685944,
std: 0.0315160789,
},
},
ReferenceCase {
name: "random_mid_contrast_1.2_64x64",
width: 64,
height: 64,
expected_score: 3.301934480667114,
expected_stats: DiffmapStats {
min: 2.5321195126,
max: 3.3019344807,
mean: 2.9154546261,
std: 0.1215156689,
},
},
ReferenceCase {
name: "random_mid_gamma_0.9_64x64",
width: 64,
height: 64,
expected_score: 3.851721763610840,
expected_stats: DiffmapStats {
min: 3.6055972576,
max: 3.8517217636,
mean: 3.7295372486,
std: 0.0512409396,
},
},
ReferenceCase {
name: "random_mid_blur_64x64",
width: 64,
height: 64,
expected_score: 9.619633674621582,
expected_stats: DiffmapStats {
min: 6.9529223442,
max: 9.6196336746,
mean: 8.3488435745,
std: 0.3648869991,
},
},
ReferenceCase {
name: "random_mid_quantize_32_64x64",
width: 64,
height: 64,
expected_score: 0.493049263954163,
expected_stats: DiffmapStats {
min: 0.1713523865,
max: 0.4930492640,
mean: 0.3477057219,
std: 0.0464067794,
},
},
ReferenceCase {
name: "color_grad_channel_swap_16x16",
width: 16,
height: 16,
expected_score: 35.840217590332031,
expected_stats: DiffmapStats {
min: 5.6121339798,
max: 35.8402175903,
mean: 15.9723968506,
std: 7.5152463913,
},
},
ReferenceCase {
name: "color_grad_hue_shift_16x16",
width: 16,
height: 16,
expected_score: 48.298767089843750,
expected_stats: DiffmapStats {
min: 6.6422519684,
max: 48.2987670898,
mean: 25.7121200562,
std: 9.2920398712,
},
},
ReferenceCase {
name: "color_grad_channel_swap_23x23",
width: 23,
height: 23,
expected_score: 51.667331695556641,
expected_stats: DiffmapStats {
min: 5.0166406631,
max: 51.6673316956,
mean: 22.2776641846,
std: 11.7308721542,
},
},
ReferenceCase {
name: "color_grad_hue_shift_23x23",
width: 23,
height: 23,
expected_score: 66.789955139160156,
expected_stats: DiffmapStats {
min: 5.9628763199,
max: 66.7899551392,
mean: 35.7613182068,
std: 13.1640644073,
},
},
ReferenceCase {
name: "color_grad_channel_swap_32x32",
width: 32,
height: 32,
expected_score: 66.628555297851562,
expected_stats: DiffmapStats {
min: 3.2292242050,
max: 66.6285552979,
mean: 29.3121433258,
std: 16.5161876678,
},
},
ReferenceCase {
name: "color_grad_hue_shift_32x32",
width: 32,
height: 32,
expected_score: 88.021408081054688,
expected_stats: DiffmapStats {
min: 5.3067398071,
max: 88.0214080811,
mean: 47.6788520813,
std: 16.4503917694,
},
},
ReferenceCase {
name: "color_grad_channel_swap_47x33",
width: 47,
height: 33,
expected_score: 87.937782287597656,
expected_stats: DiffmapStats {
min: 2.5051507950,
max: 87.9377822876,
mean: 37.2398796082,
std: 21.7770290375,
},
},
ReferenceCase {
name: "color_grad_hue_shift_47x33",
width: 47,
height: 33,
expected_score: 110.139175415039062,
expected_stats: DiffmapStats {
min: 3.6800322533,
max: 110.1391754150,
mean: 56.3213768005,
std: 19.1115550995,
},
},
ReferenceCase {
name: "random_color_channel_swap_32x32",
width: 32,
height: 32,
expected_score: 6.321132183074951,
expected_stats: DiffmapStats {
min: 1.7188388109,
max: 6.3211321831,
mean: 3.6437683105,
std: 1.0176850557,
},
},
ReferenceCase {
name: "random_color_hue_shift_32x32",
width: 32,
height: 32,
expected_score: 10.107028961181641,
expected_stats: DiffmapStats {
min: 3.9287891388,
max: 10.1070289612,
mean: 6.7062277794,
std: 1.0616145134,
},
},
ReferenceCase {
name: "random_color_channel_swap_47x47",
width: 47,
height: 47,
expected_score: 5.892925262451172,
expected_stats: DiffmapStats {
min: 1.5477635860,
max: 5.8929252625,
mean: 3.4612181187,
std: 0.7594475746,
},
},
ReferenceCase {
name: "random_color_hue_shift_47x47",
width: 47,
height: 47,
expected_score: 10.489116668701172,
expected_stats: DiffmapStats {
min: 3.6232187748,
max: 10.4891166687,
mean: 6.8825626373,
std: 1.0810098648,
},
},
];
pub const REFERENCE_INTENSITY_TARGET: f32 = 80.0;
pub const REFERENCE_CASE_COUNT: usize = 195;