[gil] numeric extensions pixel division.
Hey, It seems that in the numeric extensions it is implemented the division of channels, but not the division of pixels. Are you planning to include it at some point? thanks.
Hi!
On Tue, Mar 26, 2013 at 8:47 AM, Harg Tholan
Hey,
It seems that in the numeric extensions it is implemented the division of channels, but not the division of pixels. Are you planning to include it at some point?
I'm not sure what the numeric extension has to do with division of channels? When you say "division of pixel" do you mean the division of all channels in a pixel? you can do that like this: typedef rgb8_pixel_t pixel_t; pixel_t a( 10, 20, 30 ); pixel_t b( 10, 20, 30 ); static_for_each( a, b, [] ( channel_type< pixel_t >::type& a , const channel_type< pixel_t >::type& b ) { a /= b; } ); Hope that helps, Christian
Yes,
That is what I mean, and we have something very similar
herehttp://svn.boost.org/svn/boost/trunk/boost/gil/extension/numeric/pixel_numer...for
operations like addition, substraction of pixels, also for
multiplication and division by scalars too. But why not for division?
Thanks Chris.
2013/3/26 Christian Henning
Hi!
On Tue, Mar 26, 2013 at 8:47 AM, Harg Tholan
wrote: Hey,
It seems that in the numeric extensions it is implemented the division of channels, but not the division of pixels. Are you planning to include it at some point?
I'm not sure what the numeric extension has to do with division of channels?
When you say "division of pixel" do you mean the division of all channels in a pixel?
you can do that like this:
typedef rgb8_pixel_t pixel_t;
pixel_t a( 10, 20, 30 ); pixel_t b( 10, 20, 30 );
static_for_each( a, b, [] ( channel_type< pixel_t >::type& a , const channel_type< pixel_t >::type& b ) { a /= b; } );
Hope that helps, Christian
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
That is what I mean, and we have something very similar herehttp://svn.boost.org/svn/boost/trunk/boost/gil/extension/numeric/pixel_numer...for operations like addition, substraction of pixels, also for multiplication and division by scalars too. But why not for division?
I really have no idea. But it seems simple to create such functionality. Christian
Would be straight forward and cool to add it, please :)
Thanks a lot.
2013/3/26 Christian Henning
That is what I mean, and we have something very similar here< http://svn.boost.org/svn/boost/trunk/boost/gil/extension/numeric/pixel_numer... for operations like addition, substraction of pixels, also for multiplication and division by scalars too. But why not for division?
I really have no idea. But it seems simple to create such functionality.
Christian
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (2)
-
Christian Henning
-
Harg Tholan