/third_party/boost/libs/gil/test/core/pixel/ |
D | is_planar.cpp | 14 namespace gil = boost::gil; 21 gil::gray8_pixel_t, in main() 22 gil::gray8c_pixel_t, in main() 23 gil::gray8s_pixel_t, in main() 24 gil::gray8sc_pixel_t, in main() 25 gil::gray16_pixel_t, in main() 26 gil::gray16c_pixel_t, in main() 27 gil::gray16s_pixel_t, in main() 28 gil::gray16sc_pixel_t, in main() 29 gil::gray16_pixel_t, in main() [all …]
|
D | num_channels.cpp | 14 namespace gil = boost::gil; 24 gil::num_channels<Pixel>::value == NumChannels, in operator ()() 43 gil::gray8_pixel_t, in main() 44 gil::gray8c_pixel_t, in main() 45 gil::gray8s_pixel_t, in main() 46 gil::gray8sc_pixel_t, in main() 47 gil::gray16_pixel_t, in main() 48 gil::gray16c_pixel_t, in main() 49 gil::gray16s_pixel_t, in main() 50 gil::gray16sc_pixel_t, in main() [all …]
|
D | test_fixture.hpp | 34 namespace boost { namespace gil { namespace test { namespace fixture { namespace 39 using channel_t = typename gil::channel_type<Pixel>::type; 45 gil::static_fill(pixel, channel.max_v_); in max() 53 gil::static_fill(pixel, channel.min_v_); in min() 61 gil::static_generate(pixel, [&generate]() { return generate(); }); in random() 99 … gil::is_planar<PixelRef>::value, // poor-man test for specialization of planar_pixel_reference 133 value_core<gil::gray8_pixel_t>, 134 reference_core<gil::gray16_pixel_t&>, 135 value_core<gil::bgr8_pixel_t>, 136 reference_core<gil::rgb8_planar_ref_t>, [all …]
|
D | color_convert_cmyk.cpp | 19 namespace gil = boost::gil; 20 namespace fixture = boost::gil::test::fixture; 33 fixture::channel_value<typename gil::channel_type<pixel_src_t>::type> f_src; in operator ()() 34 fixture::channel_value<typename gil::channel_type<pixel_dst_t>::type> f_dst; in operator ()() 41 gil::color_convert(src, dst); in operator ()() 43 BOOST_TEST_EQ(gil::get_color(dst, gil::cyan_t{}), f_dst.min_v_); in operator ()() 44 BOOST_TEST_EQ(gil::get_color(dst, gil::magenta_t{}), f_dst.min_v_); in operator ()() 45 BOOST_TEST_EQ(gil::get_color(dst, gil::yellow_t{}), f_dst.min_v_); in operator ()() 50 gil::color_convert(src, dst); in operator ()() 52 BOOST_TEST_EQ(gil::get_color(dst, gil::cyan_t{}), f_dst.min_v_); in operator ()() [all …]
|
D | pixels_are_compatible.cpp | 16 namespace gil = boost::gil; 25 using result_t = typename gil::pixels_are_compatible<Pixel, CompatiblePixel>::type; in operator ()() 46 !gil::pixels_are_compatible<Pixel, NotCompatiblePixel>::value, in operator ()() 65 test_compatible<gil::gray8_pixel_t, mp_list< in main() 66 gil::gray8_pixel_t, in main() 67 gil::gray8c_pixel_t>>(); in main() 68 test_compatible<gil::gray8s_pixel_t, mp_list< in main() 69 gil::gray8s_pixel_t, in main() 70 gil::gray8sc_pixel_t>>(); in main() 71 test_not_compatible<gil::gray8_pixel_t, mp_list< in main() [all …]
|
/third_party/boost/libs/gil/test/extension/io/bmp/ |
D | bmp_make.cpp | 26 namespace gil = boost::gil; 32 std::is_same<gil::detail::is_supported_path_spec<char*>::type, std::true_type>::value, in test_make_reader_backend() 35 gil::get_reader_backend<const char*, gil::bmp_tag>::type backend_char = in test_make_reader_backend() 36 gil::make_reader_backend(bmp_filename.c_str(), gil::bmp_tag()); in test_make_reader_backend() 37 gil::get_reader_backend<std::string, gil::bmp_tag>::type backend_string = in test_make_reader_backend() 38 gil::make_reader_backend(bmp_filename, gil::bmp_tag()); in test_make_reader_backend() 41 gil::get_reader_backend<FILE*, gil::bmp_tag>::type backend_file = in test_make_reader_backend() 42 gil::make_reader_backend(file, gil::bmp_tag()); in test_make_reader_backend() 45 gil::get_reader_backend<std::ifstream, gil::bmp_tag>::type backend_ifstream = in test_make_reader_backend() 46 gil::make_reader_backend(in, gil::bmp_tag()); in test_make_reader_backend() [all …]
|
D | bmp_read_test.cpp | 18 namespace gil = boost::gil; 24 write_view(bmp_out + file_name, gil::view(img), gil::bmp_tag()); in write() 29 using backend_t = gil::get_reader_backend<std::string const, gil::bmp_tag>::type; in test_read_header() 30 backend_t backend = gil::read_image_info(bmp_filename, gil::bmp_tag()); in test_read_header() 52 gil::rgba8_image_t img; in test_read_reference_images_test() 53 gil::read_image(bmp_in + "g01bw.bmp", img, gil::bmp_tag()); in test_read_reference_images_test() 59 gil::rgba8_image_t img; in test_read_reference_images_test() 60 gil::read_image(bmp_in + "g01wb.bmp", img, gil::bmp_tag()); in test_read_reference_images_test() 69 gil::rgba8_image_t img; in test_read_reference_images_test() 70 gil::read_image(bmp_in + "g01bg.bmp", img, gil::bmp_tag()); in test_read_reference_images_test() [all …]
|
/third_party/boost/libs/gil/test/core/locator/ |
D | concepts.cpp | 23 namespace gil = boost::gil; 29 function_requires<gil::PixelLocatorConcept<Locator>>(); in test_immutable() 30 function_requires<gil::HasDynamicXStepTypeConcept<Locator>>(); in test_immutable() 31 function_requires<gil::HasDynamicYStepTypeConcept<Locator>>(); in test_immutable() 37 function_requires<gil::MutablePixelLocatorConcept<Locator>>(); in test_mutable() 38 function_requires<gil::HasDynamicXStepTypeConcept<Locator>>(); in test_mutable() 39 function_requires<gil::HasDynamicYStepTypeConcept<Locator>>(); in test_mutable() 45 using point_t = gil::point_t; 50 using argument_type = gil::point_t; 57 using virtual_locator = gil::virtual_2d_locator<archetype_pixel_dereference<Pixel>, false>; [all …]
|
/third_party/boost/libs/gil/test/core/image_processing/ |
D | threshold_truncate.cpp | 15 namespace gil = boost::gil; 20 gil::gray8_image_t original_gray(width, height), threshold_gray(width, height), 23 gil::rgb8_image_t original_rgb(width, height), threshold_rgb(width, height), 30 gil::fill_pixels(gil::subimage_view(gil::view(original_gray), 0, 0, original_gray.width(), in fill_original_gray() 31 original_gray.height() / 2), gil::gray8_pixel_t(50)); in fill_original_gray() 32 gil::fill_pixels(gil::subimage_view(gil::view(original_gray), 0, original_gray.height() / 2, in fill_original_gray() 33 original_gray.width(), original_gray.height() / 2), gil::gray8_pixel_t(150)); in fill_original_gray() 40 gil::fill_pixels(gil::subimage_view(gil::view(original_rgb), 0, 0, original_rgb.width(), in fill_original_rgb() 41 original_rgb.height() / 2), gil::rgb8_pixel_t(50, 85, 135)); in fill_original_rgb() 42 gil::fill_pixels(gil::subimage_view(gil::view(original_rgb), 0, original_rgb.height() / 2, in fill_original_rgb() [all …]
|
D | threshold_otsu.cpp | 15 namespace gil = boost::gil; 20 gil::gray8_image_t original_gray(width, height), otsu_gray(width, height), 23 gil::rgb8_image_t original_rgb(width, height), otsu_rgb(width, height), expected_rgb(width, height); 27 gil::view(original_gray)(0, 0) = gil::gray8_pixel_t(56); in fill_gray() 28 gil::view(original_gray)(1, 0) = gil::gray8_pixel_t(89); in fill_gray() 29 gil::view(original_gray)(0, 1) = gil::gray8_pixel_t(206); in fill_gray() 30 gil::view(original_gray)(1, 1) = gil::gray8_pixel_t(139); in fill_gray() 35 gil::view(original_rgb)(0, 0) = gil::rgb8_pixel_t(15, 158, 150); in fill_rgb() 36 gil::view(original_rgb)(1, 0) = gil::rgb8_pixel_t(200, 175, 150); in fill_rgb() 37 gil::view(original_rgb)(0, 1) = gil::rgb8_pixel_t(230, 170, 150); in fill_rgb() [all …]
|
D | threshold_binary.cpp | 15 namespace gil = boost::gil; 20 gil::gray8_image_t original_gray(width, height), threshold_gray(width, height), 23 gil::rgb8_image_t original_rgb(width, height), threshold_rgb(width, height), 31 gil::fill_pixels(gil::subimage_view(gil::view(original_gray), 0, 0, original_gray.width(), in fill_original_gray() 32 original_gray.height() / 2), gil::gray8_pixel_t(50)); in fill_original_gray() 33 gil::fill_pixels(gil::subimage_view(gil::view(original_gray), 0, original_gray.height() / 2, in fill_original_gray() 34 original_gray.width(), original_gray.height() / 2), gil::gray8_pixel_t(150)); in fill_original_gray() 41 gil::fill_pixels(gil::subimage_view(gil::view(original_rgb), 0, 0, original_rgb.width(), in fill_original_rgb() 42 original_rgb.height() / 2), gil::rgb8_pixel_t(50, 155, 115)); in fill_original_rgb() 43 gil::fill_pixels(gil::subimage_view(gil::view(original_rgb), 0, original_rgb.height() / 2, in fill_original_rgb() [all …]
|
/third_party/boost/libs/gil/test/extension/io/tiff/ |
D | tiff_file_format_test.cpp | 18 namespace gil = boost::gil; 24 test_scanline_reader<Image, gil::tiff_tag>(filename.c_str()); in test_tiff_scanline_reader() 32 using image_t = gil::bit_aligned_image1_type<2, gil::gray_layout_t>::type; in test_two_bit_minisblack_gray_image() 34 gil::read_image(filename, img, gil::tiff_tag()); in test_two_bit_minisblack_gray_image() 37 gil::write_view(tiff_out + "test4.tif", gil::view(img), gil::tiff_tag()); in test_two_bit_minisblack_gray_image() 46 using image_t = gil::bit_aligned_image1_type<4, gil::gray_layout_t>::type; in test_four_bit_minisblack_gray_image() 48 gil::read_image(filename, img, gil::tiff_tag()); in test_four_bit_minisblack_gray_image() 51 gil::write_view(tiff_out + "test5.tif", gil::view(img), gil::tiff_tag()); in test_four_bit_minisblack_gray_image() 60 using image_t = gil::bit_aligned_image1_type<6, gil::gray_layout_t>::type; in test_six_bit_minisblack_gray_image() 62 gil::read_image(filename, img, gil::tiff_tag()); in test_six_bit_minisblack_gray_image() [all …]
|
D | tiff_test.cpp | 25 namespace gil = boost::gil; 33 using backend_t = gil::get_reader_backend<std::string const, gil::tiff_tag>::type; in test_read_image_info() 34 backend_t backend = gil::read_image_info(tiff_filename, gil::tiff_tag()); in test_read_image_info() 42 using backend_t = gil::get_reader_backend<std::ifstream, gil::tiff_tag>::type; in test_read_image_info() 43 backend_t backend = gil::read_image_info(in, gil::tiff_tag()); in test_read_image_info() 51 using backend_t = gil::get_reader_backend<FILE*, gil::tiff_tag>::type; in test_read_image_info() 52 backend_t backend = gil::read_image_info(file, gil::tiff_tag()); in test_read_image_info() 60 using backend_t = gil::get_reader_backend<fs::path, gil::tiff_tag>::type; in test_read_image_info() 61 backend_t backend = gil::read_image_info(my_path, gil::tiff_tag()); in test_read_image_info() 71 gil::rgba8_image_t img; in test_read_image() [all …]
|
/third_party/boost/libs/gil/test/core/iterator/ |
D | concepts.cpp | 26 namespace gil = boost::gil; 32 function_requires<gil::PixelIteratorConcept<Iterator>>(); in test_immutable() 33 function_requires<gil::HasDynamicXStepTypeConcept<Iterator>>(); in test_immutable() 41 function_requires<gil::MutablePixelIteratorConcept<Iterator>>(); in test_mutable() 42 function_requires<gil::HasDynamicXStepTypeConcept<Iterator>>(); in test_mutable() 49 test_mutable<gil::gray8_ptr_t>(); in main() 50 test_mutable<gil::gray8_step_ptr_t>(); in main() 51 test_mutable<gil::gray16_ptr_t>(); in main() 52 test_mutable<gil::gray16_step_ptr_t>(); in main() 53 test_mutable<gil::gray32_ptr_t>(); in main() [all …]
|
D | dynamic_step.cpp | 20 namespace gil = boost::gil; 30 gil::memory_based_step_iterator<Iterator>, in test_non_step() 31 typename gil::dynamic_x_step_type<Iterator>::type in test_non_step() 37 typename gil::dynamic_x_step_type<Iterator>::type in test_non_step() 47 typename gil::dynamic_x_step_type<Iterator>::type in test_step() 53 typename gil::dynamic_x_step_type<gil::gray8_step_ptr_t>::type in test_step() 59 test_non_step<gil::gray8_ptr_t>(); in main() 60 test_non_step<gil::gray8c_ptr_t>(); in main() 61 test_non_step<gil::gray16_ptr_t>(); in main() 62 test_non_step<gil::gray16c_ptr_t>(); in main() [all …]
|
D | is_planar.cpp | 14 namespace gil = boost::gil; 21 gil::planar_pixel_iterator<gil::rgb8_view_t*, gil::rgb_t>, in main() 22 gil::rgb8_planar_ptr_t, in main() 23 gil::rgb8_planar_step_ptr_t, in main() 24 gil::rgb8c_planar_ptr_t, in main() 25 gil::rgb8c_planar_step_ptr_t, in main() 26 gil::rgb16_planar_ptr_t, in main() 27 gil::rgb16c_planar_ptr_t, in main() 28 gil::rgb16s_planar_ptr_t, in main() 29 gil::rgb16sc_planar_ptr_t, in main() [all …]
|
/third_party/boost/libs/gil/test/core/image_view/ |
D | dynamic_step.cpp | 12 namespace gil = boost::gil; 18 gil::view_is_basic in test() 20 typename gil::dynamic_x_step_type<View>::type in test() 24 gil::view_is_basic in test() 26 typename gil::dynamic_y_step_type<View>::type in test() 32 test<gil::gray8_view_t>(); in main() 33 test<gil::gray8_step_view_t>(); in main() 34 test<gil::gray8c_view_t>(); in main() 35 test<gil::gray8c_step_view_t>(); in main() 36 test<gil::gray16_view_t>(); in main() [all …]
|
D | view_type_from_pixel.cpp | 12 namespace gil = boost::gil; 26 typename gil::view_type_from_pixel in test() 42 typename gil::view_type_from_pixel in test_not() 55 test<gil::gray8_view_t, gil::gray8_pixel_t, Interleaved, NotStepX, Mutable>(); in main() 56 test<gil::gray8c_view_t, gil::gray8c_pixel_t, Interleaved, NotStepX, Immutable>(); in main() 58 test<gil::gray8c_view_t, gil::gray8_pixel_t, Interleaved, NotStepX, Immutable>(); in main() 60 test_not<gil::gray8_view_t, gil::gray8c_pixel_t, Interleaved, NotStepX, Mutable>(); in main() 62 test<gil::gray8_step_view_t, gil::gray8_pixel_t, Interleaved, StepX, Mutable>(); in main() 63 test_not<gil::gray8_view_t, gil::gray8c_pixel_t, Interleaved, NotStepX, Mutable>(); in main() 64 test<gil::gray8c_step_view_t, gil::gray8_pixel_t, Interleaved, StepX, Immutable>(); in main() [all …]
|
D | view_type.cpp | 12 namespace gil = boost::gil; 26 typename gil::view_type in test() 43 typename gil::view_type in test_not() 57 test<gil::gray8_view_t, gil::gray_layout_t, Interleaved, NotStepX, Mutable>(); in main() 58 test<gil::gray8c_view_t, gil::gray_layout_t, Interleaved, NotStepX, Immutable>(); in main() 59 test<gil::gray8_step_view_t, gil::gray_layout_t, Interleaved, StepX, Mutable>(); in main() 60 test<gil::gray8c_step_view_t, gil::gray_layout_t, Interleaved, StepX, Immutable>(); in main() 61 test_not<gil::gray8_view_t, gil::gray_layout_t, Planar, NotStepX, Mutable>(); in main() 62 test_not<gil::gray8_view_t, gil::rgb_layout_t, Planar, NotStepX, Mutable>(); in main() 63 test_not<gil::gray8_view_t, gil::gray_layout_t, Interleaved, StepX, Mutable>(); in main() [all …]
|
/third_party/boost/libs/gil/test/extension/io/targa/ |
D | targa_read_test.cpp | 17 namespace gil = boost::gil; 22 test_scanline_reader<Image, gil::targa_tag>(std::string(targa_in + filename).c_str()); in test_targa_scanline_reader() 28 gil::write_view(targa_out + file_name, gil::view(img), gil::targa_tag()); in write() 33 using backend_t = gil::get_reader_backend<std::string const, gil::targa_tag>::type; in test_read_header() 34 backend_t backend = gil::read_image_info(targa_filename, gil::targa_tag()); in test_read_header() 55 gil::rgb8_image_t img; in test_read_reference_images() 56 gil::read_image(targa_in + "24BPP_compressed.tga", img, gil::targa_tag()); in test_read_reference_images() 58 typename gil::rgb8_image_t::x_coord_t width = gil::view(img).width(); in test_read_reference_images() 59 typename gil::rgb8_image_t::y_coord_t height = gil::view(img).height(); in test_read_reference_images() 63 BOOST_TEST_EQ(gil::view(img)(0, 0), gil::rgb8_pixel_t(248, 0, 248)); in test_read_reference_images() [all …]
|
D | targa_test.cpp | 25 namespace gil = boost::gil; 31 using backend_t = gil::get_reader_backend<std::string const, gil::targa_tag>::type; in test_read_image_info_using_string() 32 backend_t backend = gil::read_image_info(targa_filename, gil::targa_tag()); in test_read_image_info_using_string() 40 using backend_t = gil::get_reader_backend<std::ifstream, gil::targa_tag>::type; in test_read_image_info_using_string() 41 backend_t backend = gil::read_image_info(in, gil::targa_tag()); in test_read_image_info_using_string() 49 using backend_t = gil::get_reader_backend<FILE*, gil::targa_tag>::type; in test_read_image_info_using_string() 50 backend_t backend = gil::read_image_info(file, gil::targa_tag()); in test_read_image_info_using_string() 58 using backend_t = gil::get_reader_backend<fs::path, gil::targa_tag>::type; in test_read_image_info_using_string() 59 backend_t backend = gil::read_image_info(my_path, gil::targa_tag()); in test_read_image_info_using_string() 69 gil::rgb8_image_t img; in test_read_image() [all …]
|
/third_party/boost/libs/gil/test/extension/numeric/ |
D | extend_boundary.cpp | 14 namespace gil = boost::gil; 127 gil::gray8c_view_t src_view = in test_extend_row_with_constant() 128 gil::interleaved_view(9, 9, reinterpret_cast<const gil::gray8_pixel_t *>(img), 9); in test_extend_row_with_constant() 130 gil::gray8c_view_t out_view = in test_extend_row_with_constant() 131 …gil::interleaved_view(9, 13, reinterpret_cast<const gil::gray8_pixel_t *>(row_output_constant), 9); in test_extend_row_with_constant() 133 auto output = gil::extend_row(src_view, 2, gil::boundary_option::extend_constant); in test_extend_row_with_constant() 135 BOOST_TEST(gil::equal_pixels(out_view, gil::view(output))); in test_extend_row_with_constant() 140 gil::gray8c_view_t src_view = in test_extend_row_with_zero() 141 gil::interleaved_view(9, 9, reinterpret_cast<const gil::gray8_pixel_t *>(img), 9); in test_extend_row_with_zero() 143 gil::gray8c_view_t out_view = in test_extend_row_with_zero() [all …]
|
/third_party/boost/libs/gil/test/extension/io/png/ |
D | png_read_test.cpp | 25 namespace gil = boost::gil; 28 using gray_alpha8_pixel_t = gil::pixel<std::uint8_t, gil::gray_alpha_layout_t>; 29 using gray_alpha8c_pixel_t = gil::pixel<std::uint8_t, gil::gray_alpha_layout_t> const; 30 using gray_alpha8_image_t= gil::image<gray_alpha8_pixel_t, false>; 32 using gray_alpha16_pixel_t = gil::pixel<std::uint16_t, gil::gray_alpha_layout_t>; 33 using gray_alpha16c_pixel_t = gil::pixel<std::uint16_t, gil::gray_alpha_layout_t> const; 34 using gray_alpha16_image_t = gil::image<gray_alpha16_pixel_t, false>; 41 gil::image_read_settings<gil::png_tag> settings; in test_file() 45 using backend_t = gil::get_reader_backend<std::string const, gil::png_tag>::type; in test_file() 46 backend_t backend = gil::read_image_info(png_in + filename, settings); in test_file() [all …]
|
D | png_test.cpp | 24 namespace gil = boost::gil; 31 using backend_t = gil::get_reader_backend<std::string const, gil::png_tag>::type; in test_read_image_info_using_string() 32 backend_t backend = gil::read_image_info(png_filename, gil::png_tag()); in test_read_image_info_using_string() 40 using backend_t = gil::get_reader_backend<std::ifstream, gil::png_tag>::type; in test_read_image_info_using_string() 41 backend_t backend = gil::read_image_info(in, gil::png_tag()); in test_read_image_info_using_string() 49 using backend_t = gil::get_reader_backend<FILE*, gil::png_tag>::type; in test_read_image_info_using_string() 50 backend_t backend = gil::read_image_info(file, gil::png_tag()); in test_read_image_info_using_string() 60 gil::rgba8_image_t img; in test_read_image() 61 gil::read_image(png_filename, img, gil::png_tag()); in test_read_image() 69 gil::rgba8_image_t img; in test_read_image() [all …]
|
/third_party/boost/libs/gil/test/extension/io/jpeg/ |
D | jpeg_test.cpp | 25 namespace gil = boost::gil; 33 using backend_t = gil::get_reader_backend<std::string const, gil::jpeg_tag>::type; in test_read_image_info() 34 backend_t backend = gil::read_image_info(jpeg_filename, gil::jpeg_tag()); in test_read_image_info() 42 using backend_t = gil::get_reader_backend<std::ifstream, gil::jpeg_tag>::type; in test_read_image_info() 43 backend_t backend = gil::read_image_info(in, gil::jpeg_tag()); in test_read_image_info() 51 using backend_t = gil::get_reader_backend<FILE *, gil::jpeg_tag>::type; in test_read_image_info() 52 backend_t backend = gil::read_image_info(file, gil::jpeg_tag()); in test_read_image_info() 58 using backend_t = gil::get_reader_backend<fs::path, gil::jpeg_tag>::type; in test_read_image_info() 59 backend_t backend = gil::read_image_info(fs::path(jpeg_filename), gil::jpeg_tag()); in test_read_image_info() 69 gil::rgb8_image_t img; in test_read_image() [all …]
|