2009-06-29 07:19:13 UTC
Hi,
You should be able to treat rotated view just like any other view. The only catch is that some view transformation functions (including rotated90ccw_view) return a different view type so unless you pass directly to a function that takes a templated view, you must specify the view type in your return variable (until the "auto" keyword becomes widely used).
The best way to know the right return type is to look at the API of the view transformation function. In your case:
typedef boost::mpl::vector<gray8_image_t,cmyk8_image_t, cmyk16_image_t, rgb8_image_t, gray16_image_t, rgb16_image_t> dynamic_image_t;
any_image<dynamic_image_t> dynamicImage;
typedef any_image<dynamic_image_t>::view_t any_view_t;
any_view_t my_view = view(dynamicImage);
dynamic_xy_step_transposed_type<any_view_t>::type rot_view = rotated90ccw_view(my_view);
// do stuff with rot_view
Lubomir