$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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