Public Types | Public Member Functions | Private Attributes | List of all members
vil_border_accessor< imT > Class Template Reference

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

#include <vil_border.h>

Public Types

typedef imT::pixel_type pixel_type
 

Public Member Functions

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

Private Attributes

const imT & im
 
vil_border< imT > border
 

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 119 of file vil_border.h.

Member Typedef Documentation

◆ pixel_type

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

Definition at line 122 of file vil_border.h.

Constructor & Destructor Documentation

◆ vil_border_accessor()

template<class imT>
vil_border_accessor< imT >::vil_border_accessor ( const imT &  img,
const vil_border< imT > &  brdr 
)
inline

Constructor.

Definition at line 126 of file vil_border.h.

Member Function Documentation

◆ operator()()

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 133 of file vil_border.h.

Member Data Documentation

◆ border

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

Definition at line 138 of file vil_border.h.

◆ im

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

Definition at line 137 of file vil_border.h.


The documentation for this class was generated from the following file: