20SCENARIO(
"Verify center of light calculation",
"[improc::imageCenterOfLight]" )
24 WHEN(
"geometric center" )
29 mx::math::func::gaussian2D<double>( im.data(), im.rows(), im.cols(), 0., 1.0, 31.5, 31.5, 2 );
34 REQUIRE_THAT( x, Catch::Matchers::WithinAbs( 31.5, 1e-8 ) );
35 REQUIRE_THAT( y, Catch::Matchers::WithinAbs( 31.5, 1e-8 ) );
37 WHEN(
"geometric quarter" )
42 mx::math::func::gaussian2D<double>( im.data(), im.rows(), im.cols(), 0., 1.0, 15.5, 15.5, 2 );
47 REQUIRE_THAT( x, Catch::Matchers::WithinAbs( 15.5, 1e-8 ) );
48 REQUIRE_THAT( y, Catch::Matchers::WithinAbs( 15.5, 1e-8 ) );