Hi Lubomir,
Thanks for the quick reply. I understand what you are saying and agree, but in my case I’m not doing the exact same thing as the example. I included the example for clarification. I’m actually manipulating an image and need a working copy with float point precision created inside a generic function. My function looks like the following and I want to remove the gray_layout_t with whatever layout src1 uses.
template
void function(const SrcView1& src1, const SrcView2& src2, const DstView& dst)
{
gil_function_requires();
gil_function_requires();
gil_function_requires();
assert(src1.dimensions() == src2.dimensions() && src1.dimensions() == dst.dimensions());
DstView::point_t dimensions = dst.dimensions();
typedef pixel copyPixel;
typedef image copyImage;
copyImage newImage(src1.dimensions());
}
I might be able to use the derived_image_type metafunction, but now I need to figure out how to use this if the input I’m trying to derive from is a view and not an image.
Thanks,
Mark
Notice: This e-mail is intended solely for use of the individual or entity to which it is
addressed and may contain information that is proprietary, privileged, company confidential
and/or exempt from disclosure under applicable law. If the reader is not the intended
recipient or agent responsible for delivering the message to the intended recipient, you are
hereby notified that any dissemination, distribution or copying of this communication is
strictly prohibited. If this communication has been transmitted from a U.S. location it may
also contain data subject to the International Traffic in Arms Regulations or U.S. Export
Administration Regulations and cannot be disseminated, distributed or copied to foreign
nationals, residing in the U.S. or abroad, without the prior approval of the U.S. Department
of State or appropriate export licensing authority. If you have received this communication
in error, please notify the sender by reply e-mail or collect telephone call and delete or
destroy all copies of this e-mail message, any physical copies made of this e-mail message
and/or any file attachment(s).