Classes | Functions
core/vil/vil_decimate.h File Reference
#include <vil/vil_image_resource.h>
#include <vil/vil_image_view.h>

Go to the source code of this file.

Classes

class  vil_decimate_image_resource
 A generic_image adaptor that behaves like a decimated version of its input. More...

Functions

template<class T >
vil_image_view< T > vil_decimate (const vil_image_view< T > &im, unsigned i_factor, unsigned j_factor=0)
 Create a view which is a decimated version of src.
vil_image_view_base_sptr vil_decimate (const vil_image_view_base_sptr im, unsigned i_factor, unsigned j_factor=0)
vil_image_resource_sptr vil_decimate (const vil_image_resource_sptr &src, unsigned i_factor, unsigned j_factor=0)
 decimate to a region of src.

Detailed Description

Author:
Ian Scott.

Definition in file vil_decimate.h.


Function Documentation

template<class T >
vil_image_view< T > vil_decimate ( const vil_image_view< T > &  im,
unsigned  i_factor,
unsigned  j_factor = 0 
) [inline]

Create a view which is a decimated version of src.

Doesn't modify underlying data. O(1).

The factor describes the number of input rows (or columns) that are equivalent to one output. If you don't specify the j_factor, it will be set equal to i_factor.

Definition at line 23 of file vil_decimate.h.

vil_image_view_base_sptr vil_decimate ( const vil_image_view_base_sptr  im,
unsigned  i_factor,
unsigned  j_factor = 0 
)

Definition at line 114 of file vil_decimate.cxx.

vil_image_resource_sptr vil_decimate ( const vil_image_resource_sptr src,
unsigned  i_factor,
unsigned  j_factor = 0 
)

decimate to a region of src.

Definition at line 23 of file vil_decimate.cxx.