Subject: Re: [boost] [gil] numeric extension, arithmetic operators
From: Harg Tholan (hargtholan_at_[hidden])
Date: 2013-04-08 10:12:09
Christian, do you mean "you *can* just write"?
Anyway, I will try to derive a class from Pixel overloading the arithmetic
operators by wrapping the pixel numeric operations.
2013/4/8 Christian Henning <chhenning_at_[hidden]>
> > Do we plan to overload arithmetic operators for Pixel as wrappers of the
> > numeric extension? or should users derive a class from Pixel adding such
> > functionality? ATM, for diving two pixels (rgb_8 for example), I have to
> > call the division this way:
> > pix_r = pixel_divide_t<rgb_8_pixel_t, rgb_8_pixel_t,
> > rgb_8_pixel_t>().operator()(pix2, pix1);
> > The thing is that I have a template class that makes use of operator/ at
> > some point on one of the template parameters, and I would like to be able
> > to use it with 'Pixel' type.
> you cannot just write:
> pixel_multiply_t< Pixel, Pixel, Pixel > op;
> Pixel c = op( a, b );
> Unsubscribe & other changes:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk