Classes | Functions
contrib/mul/vil3d/vil3d_crop.h File Reference
#include <vil3d/vil3d_image_view.h>
#include <vil3d/vil3d_image_resource.h>
#include <vcl_cassert.h>

Go to the source code of this file.

Classes

class  vil3d_crop_image_resource
 A generic_image adaptor that behaves like a cropped version of its input. More...

Functions

template<class T >
vil3d_image_view< T > vil3d_crop (const vil3d_image_view< T > &im, unsigned i0, unsigned ni, unsigned j0, unsigned nj, unsigned k0, unsigned nk)
 Create a view that is a window onto an existing image.
vil3d_image_resource_sptr vil3d_crop (const vil3d_image_resource_sptr &src, unsigned i0, unsigned ni, unsigned j0, unsigned nj, unsigned k0, unsigned nk)
 Crop to a region of src.

Detailed Description

Definition in file vil3d_crop.h.


Function Documentation

template<class T >
vil3d_image_view<T> vil3d_crop ( const vil3d_image_view< T > &  im,
unsigned  i0,
unsigned  ni,
unsigned  j0,
unsigned  nj,
unsigned  k0,
unsigned  nk 
)

Create a view that is a window onto an existing image.

O(1).

Definition at line 16 of file vil3d_crop.h.

vil3d_image_resource_sptr vil3d_crop ( const vil3d_image_resource_sptr src,
unsigned  i0,
unsigned  ni,
unsigned  j0,
unsigned  nj,
unsigned  k0,
unsigned  nk 
)

Crop to a region of src.

Definition at line 13 of file vil3d_crop.cxx.