Boost logo

Boost Users :

Subject: Re: [Boost-users] [GIL] How can I copy a subimage_view to a view?
From: Christian Henning (chhenning_at_[hidden])
Date: 2009-04-27 12:42:55


You can create a view from an image like this:

    rgb8_image_t img( 100, 100 );
    rgb8_view_t v = view( img );

Creating a view is very cheap and shouldn't produce any overhead. To
create a subview do this:

     rgb8_image_t img( 100, 100 );
     rgb8_view_t sv = subimage_view( view( img ), 0, 0, 100, 100 );

Hope that helps,
Christian


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net