Searched refs:BOOST_GIL_TEST_IS_CLOSE (Results 1 – 5 of 5) sorted by relevance
/third_party/boost/libs/gil/test/extension/toolbox/ |
D | color_convert_lab.cpp | 20 #define BOOST_GIL_TEST_IS_CLOSE(a, b) BOOST_TEST_LT(std::fabs((a) - (b)), (0.0005f)) macro 28 BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(xyz_pixel[0]), 0.197823f); in test_lab_to_xyz() 29 BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(xyz_pixel[1]), 0.114731f); in test_lab_to_xyz() 30 BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(xyz_pixel[2]), 0.048848f); in test_lab_to_xyz() 36 BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(xyz_pixel[0]), 0.175064f); in test_lab_to_xyz() 37 BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(xyz_pixel[1]), 0.184187f); in test_lab_to_xyz() 38 BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(xyz_pixel[2]), 0.200548f); in test_lab_to_xyz() 47 BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(lab_pixel[0]), 30.572438f); in test_xyz_to_lab() 48 BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(lab_pixel[1]), 23.4674f); in test_xyz_to_lab() 49 BOOST_GIL_TEST_IS_CLOSE(static_cast<float>(lab_pixel[2]), -22.322275f); in test_xyz_to_lab() [all …]
|
/third_party/boost/libs/gil/test/core/channel/ |
D | scoped_channel_value.cpp | 22 #define BOOST_GIL_TEST_IS_CLOSE(a, b, epsilon) BOOST_TEST_LT(std::fabs((a) - (b)), (epsilon)) macro 66 BOOST_GIL_TEST_IS_CLOSE(gil::float_point_zero<float>::apply(), 0.0, epsilon); in test_scoped_channel_value_float32_t() 69 BOOST_GIL_TEST_IS_CLOSE(gil::float_point_one<float>::apply(), 1.0, epsilon); in test_scoped_channel_value_float32_t() 77 BOOST_GIL_TEST_IS_CLOSE(gil::float_point_zero<double>::apply(), 0.0, epsilon); in test_scoped_channel_value_float64_t() 78 BOOST_GIL_TEST_IS_CLOSE(gil::channel_traits<gil::float64_t>::min_value(), 0.0, epsilon); in test_scoped_channel_value_float64_t() 80 BOOST_GIL_TEST_IS_CLOSE(gil::float_point_one<double>::apply(), 1.0, epsilon); in test_scoped_channel_value_float64_t() 81 BOOST_GIL_TEST_IS_CLOSE(gil::channel_traits<gil::float64_t>::max_value(), 1.0, epsilon); in test_scoped_channel_value_float64_t() 92 BOOST_GIL_TEST_IS_CLOSE(gil::channel_traits<halfs>::min_value(), minus_half::apply(), epsilon); in test_scoped_channel_value_halfs() 93 BOOST_GIL_TEST_IS_CLOSE(gil::channel_traits<halfs>::max_value(), plus_half::apply(), epsilon); in test_scoped_channel_value_halfs() 95 BOOST_GIL_TEST_IS_CLOSE(gil::channel_convert<std::uint16_t>( in test_scoped_channel_value_halfs()
|
/third_party/boost/libs/gil/test/extension/numeric/ |
D | pixel_numeric_operations_float.cpp | 22 #define BOOST_GIL_TEST_IS_CLOSE(a, b, epsilon) BOOST_TEST_LT(std::fabs((a) - (b)), (epsilon)) macro 55 BOOST_GIL_TEST_IS_CLOSE(get_color(c, gil::red_t()), 2.f, epsilon); in test_multiply() 56 BOOST_GIL_TEST_IS_CLOSE(get_color(c, gil::green_t()), 4.f, epsilon); in test_multiply() 57 BOOST_GIL_TEST_IS_CLOSE(get_color(c, gil::blue_t()), 6.f, epsilon); in test_multiply() 84 BOOST_GIL_TEST_IS_CLOSE(get_color(c, gil::red_t()), 0.5f, epsilon); in test_divide() 85 BOOST_GIL_TEST_IS_CLOSE(get_color(c, gil::green_t()), 1.f, epsilon); in test_divide() 86 BOOST_GIL_TEST_IS_CLOSE(get_color(c, gil::blue_t()), 1.5f, epsilon); in test_divide()
|
D | matrix3x2.cpp | 20 #define BOOST_GIL_TEST_IS_CLOSE(a, b, epsilon) BOOST_TEST_LT(std::fabs((a) - (b)), (epsilon)) macro 126 BOOST_GIL_TEST_IS_CLOSE(m1.a, std::cos(HALF_PI), 0.03); in test_matrix3x2_get_rotate() 129 BOOST_GIL_TEST_IS_CLOSE(m1.d, std::cos(HALF_PI), 0.03); in test_matrix3x2_get_rotate()
|
D | resample.cpp | 22 #define BOOST_GIL_TEST_IS_CLOSE(a, b, epsilon) BOOST_TEST_LT(std::fabs((a) - (b)), (epsilon)) macro
|