Create windows into vimt3d_images. More...
#include <vimt3d/vimt3d_image_3d_of.h>
#include <vil3d/vil3d_crop.h>
#include <vgl/vgl_box_3d.h>
#include <vcl_cmath.h>
#include <vcl_cassert.h>
#include <vcl_algorithm.h>
Go to the source code of this file.
Functions | |
template<class T > | |
vimt3d_image_3d_of< T > | vimt3d_crop (const vimt3d_image_3d_of< T > &im, unsigned x0, unsigned nx, unsigned y0, unsigned ny, unsigned z0, unsigned nz) |
Create windowed view of given image by specifying a cropping region in image co-ords. | |
template<class T > | |
vimt3d_image_3d_of< T > | vimt3d_crop (const vimt3d_image_3d_of< T > &im, const vgl_box_3d< double > &bbox) |
Create windowed view of given image by specifying a bounding box in world co-ords. |
Create windows into vimt3d_images.
Definition in file vimt3d_crop.h.
vimt3d_image_3d_of<T> vimt3d_crop | ( | const vimt3d_image_3d_of< T > & | im, |
unsigned | x0, | ||
unsigned | nx, | ||
unsigned | y0, | ||
unsigned | ny, | ||
unsigned | z0, | ||
unsigned | nz | ||
) |
Create windowed view of given image by specifying a cropping region in image co-ords.
The world2im transform is set so that this appears identical to im when addressed in world co-ords.
im | The input image. |
x0 | The origin (lower corner) of the cropping region in image coords. |
y0 | The origin (lower corner) of the cropping region in image coords. |
z0 | The origin (lower corner) of the cropping region in image coords. |
nx | The width of the cropping region in image coords. |
ny | The height of the cropping region in image coords. |
nz | The depth of the cropping region in image coords. |
Definition at line 27 of file vimt3d_crop.h.
vimt3d_image_3d_of<T> vimt3d_crop | ( | const vimt3d_image_3d_of< T > & | im, |
const vgl_box_3d< 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 47 of file vimt3d_crop.h.