Hi All,
I was able to accomplish what I needed using the following code. Please provide feedback if you see any potential issues/flaws or a cleaner way to define derived types.
void function(const SrcView& src, const DstView& dst) const
{
typedef typename channel_type< DstView >::type dstChannelType;
typedef typename channel_mapping_type< DstView >::type dstChannelMappingType;
typedef typename color_space_type< DstView >::type dstColorSpaceType;
typedef typename layout< dstColorSpaceType, dstChannelMappingType > dstLayout;
typedef typename image_type< dstChannelType, dstLayout >::type dstImageType;
typedef typename dstImageType::value_type dstPixelType;
typedef typename image_type< bits32f, dstLayout >::type dst32f_image_t;
typedef typename dst32f_image_t::value_type dst32f_pixel_t;
...
With this I can create images inside this function that are bit32f versions of dst. I wish there was a metafunction that returned the layout of view, so that I could simplify this to 1 or 2 lines of code, but functionally it works. Also, dstPixelType is used with color_convert_view as demonstrated below. I’d appreciate any feedback about more appropriate ways of converting the src to the dst type.
color_converted_view< dstPixelType >(src)
Thanks,
Mark