vil_border_accessor< imT > Class Template Reference

#include <vil_border.h>

List of all members.


Detailed Description

template<class imT>
class vil_border_accessor< imT >

Provides a pixel accessor which is syntax-compatible with vil_image_view.

It acts like a proxy to the underlying image, transparently providing border pixel values if required.

Definition at line 121 of file vil_border.h.


Public Types

typedef imT::pixel_type pixel_type

Public Member Functions

 vil_border_accessor (const imT &im, const vil_border< imT > &border)
 Constructor.
const pixel_typeoperator() (int i, int j, int p=0) const
 Returns a const reference on the pixel (i,j,p).

Private Attributes

const imT & im
vil_border< imT > border

Member Typedef Documentation

template<class imT>
typedef imT::pixel_type vil_border_accessor< imT >::pixel_type

Definition at line 124 of file vil_border.h.


Constructor & Destructor Documentation

template<class imT>
vil_border_accessor< imT >::vil_border_accessor ( const imT &  im,
const vil_border< imT > &  border 
) [inline]

Constructor.

Definition at line 128 of file vil_border.h.


Member Function Documentation

template<class imT>
const pixel_type& vil_border_accessor< imT >::operator() ( int  i,
int  j,
int  p = 0 
) const [inline]

Returns a const reference on the pixel (i,j,p).

If the pixel falls out of the image range, a border value is returned.

Definition at line 135 of file vil_border.h.


Member Data Documentation

template<class imT>
const imT& vil_border_accessor< imT >::im [private]

Definition at line 139 of file vil_border.h.

template<class imT>
vil_border<imT> vil_border_accessor< imT >::border [private]

Definition at line 140 of file vil_border.h.


The documentation for this class was generated from the following file:
Generated on Sun Nov 22 05:08:42 2009 for core/vil by  doxygen 1.5.1