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. | |
const pixel_type & | operator() (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 |
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.
typedef imT::pixel_type vil_border_accessor< imT >::pixel_type |
Definition at line 124 of file vil_border.h.
vil_border_accessor< imT >::vil_border_accessor | ( | const imT & | img, |
const vil_border< imT > & | brdr | ||
) | [inline] |
Constructor.
Definition at line 128 of file vil_border.h.
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.
vil_border<imT> vil_border_accessor< imT >::border [private] |
Definition at line 140 of file vil_border.h.
const imT& vil_border_accessor< imT >::im [private] |
Definition at line 139 of file vil_border.h.