Share

Adobe Source Libraries

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

rotated90ccw_view

You are viewing a single message from this topic. View all messages.

  1. 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


< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.