Home
last modified time | relevance | path

Searched refs:get_color (Results 1 – 25 of 63) sorted by relevance

123

/third_party/boost/boost/gil/
Dcolor_convert.hpp97 get_color(dst,red_t()) = in operator ()()
98 … channel_convert<typename color_element_type<P2, red_t >::type>(get_color(src,gray_color_t())); in operator ()()
99 get_color(dst,green_t())= in operator ()()
100 … channel_convert<typename color_element_type<P2, green_t>::type>(get_color(src,gray_color_t())); in operator ()()
101 get_color(dst,blue_t()) = in operator ()()
102 … channel_convert<typename color_element_type<P2, blue_t >::type>(get_color(src,gray_color_t())); in operator ()()
114 get_color(dst,cyan_t())= in operator ()()
116 get_color(dst,magenta_t())= in operator ()()
118 get_color(dst,yellow_t())= in operator ()()
120 get_color(dst,black_t())= in operator ()()
[all …]
Dpremultiply.hpp33get_color(dst_, Channel()) = channel_multiply(get_color(src_,Channel()), alpha_or_max(src_)); in operator ()()
44 get_color(dst,alpha_t()) = alpha_or_max(src); in assign_alpha_if()
/third_party/boost/boost/gil/extension/toolbox/color_spaces/
Dhsv.hpp59 float32_t temp_red = channel_convert<float32_t>( get_color( src, red_t() )); in operator ()()
60 float32_t temp_green = channel_convert<float32_t>( get_color( src, green_t() )); in operator ()()
61 float32_t temp_blue = channel_convert<float32_t>( get_color( src, blue_t() )); in operator ()()
114 get_color( dst, hue_t() ) = hue; in operator ()()
115 get_color( dst, saturation_t() ) = saturation; in operator ()()
116 get_color( dst, value_t() ) = value; in operator ()()
133 if (std::abs(get_color(src, saturation_t())) < 0.0001f) in operator ()()
136 red = get_color( src, value_t() ); in operator ()()
137 green = get_color( src, value_t() ); in operator ()()
138 blue = get_color( src, value_t() ); in operator ()()
[all …]
Dgray_alpha.hpp46 get_color(dst,red_t()) = in operator ()()
47 … channel_convert<typename color_element_type<P2, red_t>::type>(get_color(src,gray_color_t())); in operator ()()
48 get_color(dst,green_t())= in operator ()()
49 … channel_convert<typename color_element_type<P2, green_t>::type>(get_color(src,gray_color_t())); in operator ()()
50 get_color(dst,blue_t()) = in operator ()()
51 … channel_convert<typename color_element_type<P2, blue_t>::type>(get_color(src,gray_color_t())); in operator ()()
52 get_color(dst,alpha_t()) = in operator ()()
53 … channel_convert<typename color_element_type<P2, alpha_t>::type>(get_color(src,alpha_t())); in operator ()()
62 get_color(dst,red_t()) = in operator ()()
64 channel_multiply(get_color(src,gray_color_t()),get_color(src,alpha_t()) ) in operator ()()
[all …]
Dycbcr.hpp129 src_channel_t y = channel_convert<src_channel_t>( get_color(src, y_t())); in convert()
130 src_channel_t cb = channel_convert<src_channel_t>( get_color(src, cb_t())); in convert()
131 src_channel_t cr = channel_convert<src_channel_t>( get_color(src, cr_t())); in convert()
141 get_color( dst, red_t() ) = (dst_channel_t) red; in convert()
142 get_color( dst, green_t() ) = (dst_channel_t) green; in convert()
143 get_color( dst, blue_t() ) = (dst_channel_t) blue; in convert()
159 double y = get_color( src, y_t() ); in convert()
160 double cb = get_color( src, cb_t() ); in convert()
161 double cr = get_color( src, cr_t() ); in convert()
163 get_color(dst, red_t()) = static_cast<dst_channel_t>( in convert()
[all …]
Dhsl.hpp55 float32_t temp_red = channel_convert<float32_t>( get_color( src, red_t() )); in operator ()()
56 float32_t temp_green = channel_convert<float32_t>( get_color( src, green_t() )); in operator ()()
57 float32_t temp_blue = channel_convert<float32_t>( get_color( src, blue_t() )); in operator ()()
130 get_color( dst,hue_t() ) = hue; in operator ()()
131 get_color( dst,saturation_t() ) = saturation; in operator ()()
132 get_color( dst,lightness_t() ) = lightness; in operator ()()
148 if( std::abs( get_color( src, saturation_t() )) < 0.0001 ) in operator ()()
151 red = get_color( src, lightness_t() ); in operator ()()
152 green = get_color( src, lightness_t() ); in operator ()()
153 blue = get_color( src, lightness_t() ); in operator ()()
[all …]
Dxyz.hpp72 channel_convert<float32_t>(get_color(src, red_t())))); in operator ()()
75 channel_convert<float32_t>(get_color(src, green_t())))); in operator ()()
78 channel_convert<float32_t>(get_color(src, blue_t())))); in operator ()()
80 get_color( dst, x_t() ) = in operator ()()
84 get_color( dst, y_t() ) = in operator ()()
88 get_color( dst, z_t() ) = in operator ()()
122 float32_t x( channel_convert<float32_t>( get_color( src, x_t() ) ) ); in operator ()()
123 float32_t y( channel_convert<float32_t>( get_color( src, y_t() ) ) ); in operator ()()
124 float32_t z( channel_convert<float32_t>( get_color( src, z_t() ) ) ); in operator ()()
126 get_color(dst,red_t()) = in operator ()()
[all …]
Dlab.hpp56 float32_t p = ((get_color(src, luminance_t()) + 16.f)/116.f); in operator ()()
58 get_color(dst, y_t()) = in operator ()()
61 get_color(dst, x_t()) = in operator ()()
63 (get_color(src, a_color_opponent_t())/500.f) in operator ()()
65 get_color(dst, z_t()) = in operator ()()
67 (get_color(src, b_color_opponent_t())/200.f) in operator ()()
102 get_color(src, xyz_color_space::y_t()) in operator ()()
110 get_color(src, xyz_color_space::x_t()) in operator ()()
119 get_color(src, xyz_color_space::z_t()) in operator ()()
125 get_color(dst, luminance_t()) = in operator ()()
[all …]
Dcmyka.hpp54 pixel<T1,cmyk_layout_t>(get_color(src,cyan_t()), in operator ()()
55 get_color(src,magenta_t()), in operator ()()
56 get_color(src,yellow_t()), in operator ()()
57 get_color(src,black_t())) in operator ()()
/third_party/boost/libs/gil/test/core/pixel/
Dcolor_convert_cmyk.cpp43 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 ()()
52 BOOST_TEST_EQ(gil::get_color(dst, gil::cyan_t{}), f_dst.min_v_); in operator ()()
53 BOOST_TEST_EQ(gil::get_color(dst, gil::magenta_t{}), f_dst.min_v_); in operator ()()
54 BOOST_TEST_EQ(gil::get_color(dst, gil::yellow_t{}), f_dst.min_v_); in operator ()()
55 BOOST_TEST_EQ(gil::get_color(dst, gil::black_t{}), f_dst.max_v_); in operator ()()
92 BOOST_TEST_EQ(gil::get_color(dst, gil::cyan_t{}), f_dst.min_v_); in operator ()()
93 BOOST_TEST_EQ(gil::get_color(dst, gil::magenta_t{}), f_dst.min_v_); in operator ()()
94 BOOST_TEST_EQ(gil::get_color(dst, gil::yellow_t{}), f_dst.min_v_); in operator ()()
[all …]
/third_party/boost/libs/gil/test/core/algorithm/
Dstd_uninitialized_fill.cpp121 …BOOST_TEST_EQ((int)get_color(p, gil::gray_color_t()), (int)get_color(fill_pixel, gil::gray_color_t… in test_fill_with_packed_pixel_gray3()
140 … BOOST_TEST_EQ((int)get_color(p, gil::red_t()), (int)get_color(fill_pixel, gil::red_t())); in test_fill_with_packed_pixel_bgr121()
141 … BOOST_TEST_EQ((int)get_color(p, gil::green_t()), (int)get_color(fill_pixel, gil::green_t())); in test_fill_with_packed_pixel_bgr121()
142 … BOOST_TEST_EQ((int)get_color(p, gil::blue_t()), (int)get_color(fill_pixel, gil::blue_t())); in test_fill_with_packed_pixel_bgr121()
161 … BOOST_TEST_EQ((int)get_color(p, gil::red_t()), (int)get_color(fill_pixel, gil::red_t())); in test_fill_with_packed_pixel_rgb535()
162 … BOOST_TEST_EQ((int)get_color(p, gil::green_t()), (int)get_color(fill_pixel, gil::green_t())); in test_fill_with_packed_pixel_rgb535()
163 … BOOST_TEST_EQ((int)get_color(p, gil::blue_t()), (int)get_color(fill_pixel, gil::blue_t())); in test_fill_with_packed_pixel_rgb535()
182 … BOOST_TEST_EQ((int)get_color(p, gil::red_t()), (int)get_color(fill_pixel, gil::red_t())); in test_bit_aligned_pixel_bgr232()
183 … BOOST_TEST_EQ((int)get_color(p, gil::green_t()), (int)get_color(fill_pixel, gil::green_t())); in test_bit_aligned_pixel_bgr232()
184 … BOOST_TEST_EQ((int)get_color(p, gil::blue_t()), (int)get_color(fill_pixel, gil::blue_t())); in test_bit_aligned_pixel_bgr232()
[all …]
/third_party/boost/libs/gil/test/extension/numeric/
Dpixel_numeric_operations_float.cpp32 BOOST_TEST_EQ(get_color(c, gil::red_t()), 20); in test_plus()
33 BOOST_TEST_EQ(get_color(c, gil::green_t()), 40); in test_plus()
34 BOOST_TEST_EQ(get_color(c, gil::blue_t()), 60); in test_plus()
39 BOOST_TEST_EQ(get_color(d, gil::red_t()), 20); in test_plus()
40 BOOST_TEST_EQ(get_color(d, gil::green_t()), 40); in test_plus()
41 BOOST_TEST_EQ(get_color(d, gil::blue_t()), 60); in test_plus()
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()
70 BOOST_TEST_EQ(get_color(c, gil::red_t()), 5); in test_divide()
[all …]
Dnumeric.cpp69 BOOST_ASSERT( get_color( c, red_t() ) == 20 ); in BOOST_AUTO_TEST_CASE()
70 BOOST_ASSERT( get_color( c, green_t() ) == 40 ); in BOOST_AUTO_TEST_CASE()
71 BOOST_ASSERT( get_color( c, blue_t() ) == 60 ); in BOOST_AUTO_TEST_CASE()
79 BOOST_ASSERT( get_color( d, red_t() ) == 20 ); in BOOST_AUTO_TEST_CASE()
80 BOOST_ASSERT( get_color( d, green_t() ) == 40 ); in BOOST_AUTO_TEST_CASE()
81 BOOST_ASSERT( get_color( d, blue_t() ) == 60 ); in BOOST_AUTO_TEST_CASE()
96 BOOST_CHECK_CLOSE( static_cast<float>( get_color( c, red_t() )), 2.f, epsilon ); in BOOST_AUTO_TEST_CASE()
97 BOOST_CHECK_CLOSE( static_cast<float>( get_color( c, green_t() )), 4.f, epsilon ); in BOOST_AUTO_TEST_CASE()
98 BOOST_CHECK_CLOSE( static_cast<float>( get_color( c, blue_t() )), 6.f, epsilon ); in BOOST_AUTO_TEST_CASE()
114 BOOST_ASSERT( get_color( c, red_t() ) == 5 ); in BOOST_AUTO_TEST_CASE()
[all …]
/third_party/boost/libs/gil/test/extension/toolbox/
Dcolor_convert_hsv.cpp26 BOOST_TEST_GT(gil::get_color(h, gil::hsv_color_space::hue_t()), 0.80); // 0.83333331 in test_rgb_to_hsv()
27 BOOST_TEST_LT(gil::get_color(h, gil::hsv_color_space::hue_t()), 0.85); in test_rgb_to_hsv()
28 BOOST_TEST_GE(gil::get_color(h, gil::hsv_color_space::saturation_t()), 1.0); // 1.00000000 in test_rgb_to_hsv()
29 BOOST_TEST_LT(gil::get_color(h, gil::hsv_color_space::saturation_t()), 1.1); in test_rgb_to_hsv()
30 BOOST_TEST_GE(gil::get_color(h, gil::hsv_color_space::value_t()), 0.50); // 0.50196081 in test_rgb_to_hsv()
31 BOOST_TEST_LT(gil::get_color(h, gil::hsv_color_space::value_t()), 0.51); in test_rgb_to_hsv()
78 BOOST_TEST_GT(gil::get_color(h, gil::hsv_color_space::hue_t()), 0.80); // 0.8333333 in test_copy_pixels_rgb_to_hsv()
79 BOOST_TEST_LT(gil::get_color(h, gil::hsv_color_space::hue_t()), 0.85); in test_copy_pixels_rgb_to_hsv()
80 BOOST_TEST_GE(gil::get_color(h, gil::hsv_color_space::saturation_t()), 0.5); // 0.5000000 in test_copy_pixels_rgb_to_hsv()
81 BOOST_TEST_LT(gil::get_color(h, gil::hsv_color_space::saturation_t()), 0.51); in test_copy_pixels_rgb_to_hsv()
[all …]
Dindexed_image.cpp139 BOOST_TEST_EQ(gil::get_color(p, gil::red_t()), 70); in test_index_image_view()
140 BOOST_TEST_EQ(gil::get_color(p, gil::green_t()), 80); in test_index_image_view()
141 BOOST_TEST_EQ(gil::get_color(p, gil::blue_t()), 90); in test_index_image_view()
143 BOOST_TEST_EQ(gil::get_color(q, gil::red_t()), 70); in test_index_image_view()
144 BOOST_TEST_EQ(gil::get_color(q, gil::green_t()), 80); in test_index_image_view()
145 BOOST_TEST_EQ(gil::get_color(q, gil::blue_t()), 90); in test_index_image_view()
Dindexed_image_test.cpp141 BOOST_ASSERT(bg::get_color(p, bg::red_t()) == 70); in BOOST_AUTO_TEST_CASE()
142 BOOST_ASSERT(bg::get_color(p, bg::green_t()) == 80); in BOOST_AUTO_TEST_CASE()
143 BOOST_ASSERT(bg::get_color(p, bg::blue_t()) == 90); in BOOST_AUTO_TEST_CASE()
145 BOOST_ASSERT(bg::get_color(q, bg::red_t()) == 70); in BOOST_AUTO_TEST_CASE()
146 BOOST_ASSERT(bg::get_color(q, bg::green_t()) == 80); in BOOST_AUTO_TEST_CASE()
147 BOOST_ASSERT(bg::get_color(q, bg::blue_t()) == 90); in BOOST_AUTO_TEST_CASE()
Dcolor_convert_hsl.cpp26 BOOST_TEST_GT(gil::get_color(h, gil::hsl_color_space::hue_t()), 0.8); // 0.83333331 in test_rgb_to_hsl()
27 BOOST_TEST_EQ(gil::get_color(h, gil::hsl_color_space::saturation_t()), 1.0); // 1.00000000 in test_rgb_to_hsl()
28 BOOST_TEST_GT(gil::get_color(h, gil::hsl_color_space::lightness_t()), 0.25); // 0.25098040 in test_rgb_to_hsl()
/third_party/boost/boost/gil/extension/toolbox/color_converters/
Dgray_to_rgba.hpp22 get_color(dst,red_t()) = in operator ()()
23 … channel_convert<typename color_element_type<P2, red_t >::type>(get_color(src,gray_color_t())); in operator ()()
24 get_color(dst,green_t())= in operator ()()
25 … channel_convert<typename color_element_type<P2, green_t>::type>(get_color(src,gray_color_t())); in operator ()()
26 get_color(dst,blue_t()) = in operator ()()
27 … channel_convert<typename color_element_type<P2, blue_t >::type>(get_color(src,gray_color_t())); in operator ()()
30 get_color(dst,alpha_t()) = channel_traits< channel_t >::max_value(); in operator ()()
/third_party/boost/boost/intrusive/
Drbtree_algorithms.hpp60 NodeTraits::set_color(n, NodeTraits::get_color(p)); in operator ()()
93 if (node_traits::get_color(p) == node_traits::red()){ in operator ()()
97 …BOOST_INTRUSIVE_INVARIANT_ASSERT(!p_left || node_traits::get_color(p_left) == node_traits::black… in operator ()()
98 …BOOST_INTRUSIVE_INVARIANT_ASSERT(!p_right || node_traits::get_color(p_right) == node_traits::black… in operator ()()
106 static_cast<std::size_t>(node_traits::get_color(p) == node_traits::black()); in operator ()()
224 color c = NodeTraits::get_color(node1); in swap_nodes()
225 NodeTraits::set_color(node1, NodeTraits::get_color(node2)); in swap_nodes()
241 NodeTraits::set_color(new_node, NodeTraits::get_color(node_to_be_replaced)); in replace_node()
440 return NodeTraits::get_color(p) == NodeTraits::red() && in is_header()
452 new_z_color = NodeTraits::get_color(info.y); in rebalance_after_erasure()
[all …]
/third_party/boost/libs/gil/test/legacy/
Dpixel_iterator.cpp144 unsigned char v1 = get_color( p1, gray_color_t() ); in test_pixel_iterator()
145 unsigned char v2 = get_color( p2, gray_color_t() ); in test_pixel_iterator()
146 unsigned char v3 = get_color( p3, gray_color_t() ); in test_pixel_iterator()
147 unsigned char v4 = get_color( p4, gray_color_t() ); in test_pixel_iterator()
148 unsigned char v5 = get_color( p5, gray_color_t() ); in test_pixel_iterator()
149 unsigned char v6 = get_color( p6, gray_color_t() ); in test_pixel_iterator()
150 unsigned char v7 = get_color( p7, gray_color_t() ); in test_pixel_iterator()
151 unsigned char v8 = get_color( p8, gray_color_t() ); in test_pixel_iterator()
Dpixel.cpp237get_color(r565,red_t()) = channel_convert<kth_element_type<rgb565_pixel_t, 0>::type>(get_color(r… in test_packed_pixel()
238get_color(r565,green_t()) = channel_convert<kth_element_type<rgb565_pixel_t, 1>::type>(get_color(r… in test_packed_pixel()
239get_color(r565,blue_t()) = channel_convert<kth_element_type<rgb565_pixel_t, 2>::type>(get_color(r… in test_packed_pixel()
295 error_if(get_color(bgr8,blue_t()) != get_color(rgb8,blue_t())); in test_pixel()
300 uint16_t g = get_color(g16,gray_color_t()); in test_pixel()
/third_party/boost/boost/gil/extension/io/bmp/detail/
Dscanline_read.hpp288 get_color( this->_palette[i], blue_t() ) = this->_io_dev.read_uint8(); in read_palette()
289 get_color( this->_palette[i], green_t() ) = this->_io_dev.read_uint8(); in read_palette()
290 get_color( this->_palette[i], red_t() ) = this->_io_dev.read_uint8(); in read_palette()
329 unsigned char c = get_color( *src_it, gray_color_t() ); in read_bit_row()
388 get_color( dst_it[i], red_t() ) = static_cast< byte_t >( r ); in read_15_bits_row()
389 get_color( dst_it[i], green_t() ) = static_cast< byte_t >( g ); in read_15_bits_row()
390 get_color( dst_it[i], blue_t() ) = static_cast< byte_t >( b ); in read_15_bits_row()
/third_party/boost/libs/gil/doc/html/_sources/design/
Dpixel.rst.txt249 assert(get_color<red_t>(rgb8) == get_color<red_t>(bgr8));
252 assert(get_color(rgb8,red_t()) == get_color(bgr8,red_t()));
265 get_color<red_t>(ref) = 10; // assignment is ok because the reference is mutable
266 assert(get_color<red_t>(bgr8)==10); // references modify the value they are bound to
273 get_color(r565,red_t()) = channel_convert<rgb565_channel0_t>(get_color(rgb_full,red_t()));
274 get_color(r565,green_t()) = channel_convert<rgb565_channel1_t>(get_color(rgb_full,green_t()));
275 get_color(r565,blue_t()) = channel_convert<rgb565_channel2_t>(get_color(rgb_full,blue_t()));
/third_party/boost/libs/gil/doc/design/
Dpixel.rst249 assert(get_color<red_t>(rgb8) == get_color<red_t>(bgr8));
252 assert(get_color(rgb8,red_t()) == get_color(bgr8,red_t()));
265 get_color<red_t>(ref) = 10; // assignment is ok because the reference is mutable
266 assert(get_color<red_t>(bgr8)==10); // references modify the value they are bound to
273 get_color(r565,red_t()) = channel_convert<rgb565_channel0_t>(get_color(rgb_full,red_t()));
274 get_color(r565,green_t()) = channel_convert<rgb565_channel1_t>(get_color(rgb_full,green_t()));
275 get_color(r565,blue_t()) = channel_convert<rgb565_channel2_t>(get_color(rgb_full,blue_t()));
/third_party/boost/boost/intrusive/detail/
Drbtree_node.hpp104 BOOST_INTRUSIVE_FORCEINLINE static color get_color(const const_node_ptr & n) in get_color() function
107 BOOST_INTRUSIVE_FORCEINLINE static color get_color(const node_ptr & n) in get_color() function
160 BOOST_INTRUSIVE_FORCEINLINE static color get_color(const const_node_ptr & n) in get_color() function
163 BOOST_INTRUSIVE_FORCEINLINE static color get_color(const node_ptr & n) in get_color() function

123