Create windows into vimt_images. More...
#include <vimt/vimt_image_2d_of.h>
#include <vil/vil_crop.h>
#include <vcl_cmath.h>
#include <vcl_cassert.h>
Go to the source code of this file.
Functions | |
template<class T > | |
vimt_image_2d_of< T > | vimt_crop (const vimt_image_2d_of< T > &im, unsigned x0, unsigned nx, unsigned y0, unsigned ny) |
Create windowed view of given image. | |
template<class T > | |
vimt_image_2d_of< T > | vimt_crop (const vimt_image_2d_of< T > &im, const vgl_box_2d< double > &bbox) |
Create windowed view of given image by specifying a bounding box in world co-ords. |
Create windows into vimt_images.
Definition in file vimt_crop.h.
vimt_image_2d_of<T> vimt_crop | ( | const vimt_image_2d_of< T > & | im, |
unsigned | x0, | ||
unsigned | nx, | ||
unsigned | y0, | ||
unsigned | ny | ||
) |
Create windowed view of given image.
The parameters should be in image co-ords. The world2im transform is set to match so this appears identical to im when addressed in world co-ords. O(1).
Definition at line 20 of file vimt_crop.h.
vimt_image_2d_of<T> vimt_crop | ( | const vimt_image_2d_of< T > & | im, |
const vgl_box_2d< double > & | bbox | ||
) |
Create windowed view of given image by specifying a bounding box in world co-ords.
The world2im transform is set so that this appears identical to im when addressed in world co-ords.
im | The input image. |
bbox | Bounding box of desired crop region in world coords. |
Definition at line 38 of file vimt_crop.h.