Classes | Enumerations | Functions
core/vil/vil_border.h File Reference

Border handling for images. More...

#include <vcl_cassert.h>

Go to the source code of this file.

Classes

class  vil_border< imT >
 Border class. Makes pixel access outside image range transparent and configurable. More...
class  vil_border_accessor< imT >
 Provides a pixel accessor which is syntax-compatible with vil_image_view. More...

Enumerations

enum  vil_border_mode { vil_border_constant = 0, vil_border_geodesic = 1, vil_border_reflect = 2, vil_border_periodic = 3 }
 Vil border modes. More...

Functions

template<class imT >
vil_border_accessor< imT > vil_border_create_accessor (const imT &im, const vil_border< imT > &border)
 Instantiates a border accessor, provided for convenience.
template<class imT >
vil_border< imT > vil_border_create_constant (const imT &, typename imT::pixel_type constant_val=0)
 Instantiate a constant border whose type is derived from imT.
template<class imT >
vil_border< imT > vil_border_create_geodesic (const imT &)
 Instantiate a geodesic border whose type is derived from imT.
template<class imT >
vil_border< imT > vil_border_create_reflect (const imT &)
 Instantiate a reflect border whose type is derived from imT.
template<class imT >
vil_border< imT > vil_border_create_periodic (const imT &)
 Instantiate a reflect border whose type is derived from imT.

Detailed Description

Border handling for images.

Author:
Nicolas Burrus - Paris

Definition in file vil_border.h.


Enumeration Type Documentation

Vil border modes.

Enumerator:
vil_border_constant 

Border pixels are constant.

vil_border_geodesic 

Border pixels take the value of the closest image point.

This ensures object continuity. ex: im(im.ni()+2, -1) == im(im.ni()-1, 0)

vil_border_reflect 

Border pixels take the value of the image point which is its symmetric w.r.t. the closest image edge.

ex: im(im.ni()+3, 0) = im(im.ni()-4, 0)

vil_border_periodic 

The image is seen as periodic, after the right (respectively bottom) edge comes the left (respectively top).

ex: im(im.ni()+2,0) == im(2,0) ex: im(im.ni()+3, im.nj()+2) == im(3,2)

Definition at line 16 of file vil_border.h.


Function Documentation

template<class imT >
vil_border_accessor<imT> vil_border_create_accessor ( const imT &  im,
const vil_border< imT > &  border 
)

Instantiates a border accessor, provided for convenience.

Definition at line 146 of file vil_border.h.

template<class imT >
vil_border<imT> vil_border_create_constant ( const imT &  ,
typename imT::pixel_type  constant_val = 0 
) [inline]

Instantiate a constant border whose type is derived from imT.

Definition at line 154 of file vil_border.h.

template<class imT >
vil_border<imT> vil_border_create_geodesic ( const imT &  ) [inline]

Instantiate a geodesic border whose type is derived from imT.

Definition at line 165 of file vil_border.h.

template<class imT >
vil_border<imT> vil_border_create_periodic ( const imT &  ) [inline]

Instantiate a reflect border whose type is derived from imT.

Definition at line 185 of file vil_border.h.

template<class imT >
vil_border<imT> vil_border_create_reflect ( const imT &  ) [inline]

Instantiate a reflect border whose type is derived from imT.

Definition at line 175 of file vil_border.h.