[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
NeighborCode3D Class Reference |
Encapsulation of direction management of neighbors for a 3D 26-neighborhood. More...
#include <vigra/voxelneighborhood.hxx>
Public Types | |
enum | Direction |
Static Public Member Functions | |
static Diff3D const & | behind () |
static Diff3D const & | behindEast () |
static Diff3D const & | behindNorth () |
static Diff3D const & | behindNorthEast () |
static Diff3D const & | behindNorthWest () |
static Diff3D const & | behindSouth () |
static Diff3D const & | behindSouthEast () |
static Diff3D const & | behindSouthWest () |
static Diff3D const & | behindWest () |
static Diff3D const & | bottom () |
static Diff3D const & | bottomLeft () |
static Diff3D const & | bottomRight () |
static Direction | code (Neighborhood3DSix::Direction d) |
static Direction | code (Diff3D const &diff) |
static Diff3D const & | diff (Direction code) |
static Diff3D const & | diff (int code) |
static int | diff (Direction code, int dim) |
static int | dX (Direction code) |
static int | dX (int code) |
static int | dY (Direction code) |
static int | dY (int code) |
static int | dZ (Direction code) |
static int | dZ (int code) |
static Diff3D const & | east () |
static Diff3D const & | front () |
static Diff3D const & | frontBottom () |
static Diff3D const & | frontBottomLeft () |
static Diff3D const & | frontBottomRight () |
static Diff3D const & | frontLeft () |
static Diff3D const & | frontRight () |
static Diff3D const & | frontTop () |
static Diff3D const & | frontTopLeft () |
static Diff3D const & | frontTopRight () |
static Diff3D const & | infront () |
static Diff3D const & | infrontEast () |
static Diff3D const & | infrontNorth () |
static Diff3D const & | infrontNorthEast () |
static Diff3D const & | infrontNorthWest () |
static Diff3D const & | infrontSouth () |
static Diff3D const & | infrontSouthEast () |
static Diff3D const & | infrontSouthWest () |
static Diff3D const & | infrontWest () |
static bool | isDiagonal (Direction dir) |
static Diff3D const & | left () |
static unsigned int | nearBorderDirectionCount (AtVolumeBorder b) |
static Direction | nearBorderDirections (AtVolumeBorder b, int index) |
static Direction | nearBorderDirectionsCausal (AtVolumeBorder b, int index) |
static Diff3D const & | north () |
static Diff3D const & | northEast () |
static Diff3D const & | northWest () |
static Diff3D const & | rear () |
static Diff3D const & | rearBottom () |
static Diff3D const & | rearBottomLeft () |
static Diff3D const & | rearBottomRight () |
static Diff3D const & | rearLeft () |
static Diff3D const & | rearRight () |
static Diff3D const & | rearTop () |
static Diff3D const & | rearTopLeft () |
static Diff3D const & | rearTopRight () |
static Diff3D const | relativeDiff (Direction fromCode, Direction toCode) |
static Diff3D const | relativeDiff (int fromCode, int toCode) |
static Diff3D const & | right () |
static Diff3D const & | south () |
static Diff3D const & | southEast () |
static Diff3D const & | southWest () |
static Diff3D const & | top () |
static Diff3D const & | topLeft () |
static Diff3D const & | topRight () |
static Diff3D const & | west () |
Encapsulation of direction management of neighbors for a 3D 26-neighborhood.
enum Direction |
provides enumeration of all directions. DirectionCount may be used for portable loop termination conditions.
|
static |
The number of valid neighbors if the current center is at the volume border.
|
static |
The valid direction codes when the center is at the volume border. index must be in the range 0...nearBorderDirectionCount(b)-1
.
|
static |
The valid direction three codes in anti causal direction (means: look back in scanline direction)when the center is at the volume border. Should be used with isAtVolumeBorderCausal to determine the Directions, as this avoids using of the nonesense border ids (e.g. 0,1,8,9...) of this table. index must be in the range 0...nearBorderDirectionCount(b)-1
.
transform direction code into corresponding Diff3D offset. (note: there is no bounds checking on the code you pass.)
|
static |
Equivalent to diff(static_cast<Direction>(code))
. (note: there is no bounds checking on the code you pass.)
|
static |
Equivalent to diff(code)[dim]
Get the relative offset from one neighbor to the other. For example, relativeDiff(East, West) == multi_differencetype(-2,0,0)
. (note: there is no bounds checking on the code you pass.)
|
static |
Equivalent to relativeDiff(static_cast<Direction>(fromCode), static_cast<Direction>(toCode)). (note: there is no bounds checking on the code you pass.)
|
static |
X-component of diff()
|
static |
Y-component of diff()
|
static |
Z-component of diff()
|
static |
transform 6-neighborhood code into 26-neighborhood code.
transform Diff3D offset into corresponding direction code. The code Direction::Error
will be returned if diff
is not in the 3DTwentySix-Neighborhood.
|
static |
Check whether a code refers to a diagonal direction. Useful if you want to abstract the differences between 6- and 26-neighborhood. Always false
for 6-neighborhood.
|
static |
Offset to the front-top-left neighbor
|
static |
Offset to the front-top neighbor
|
static |
Offset to the front-top-right neighbor
|
static |
Offset to the front-left neighbor
|
static |
Offset to the front neighbor
|
static |
Offset to the front-right neighbor
|
static |
Offset to the front-bottom-left neighbor
|
static |
Offset to the front-bottom neighbor
|
static |
Offset to the front-bottom-right neighbor
|
static |
Offset to the top-left neighbor
|
static |
Offset to the top neighbor
|
static |
Offset to the top-right neighbor
|
static |
Offset to the left neighbor
|
static |
Offset to the right neighbor
|
static |
Offset to the bottom-left neighbor
|
static |
Offset to the bottom neighbor
|
static |
Offset to the bottom-right neighbor
|
static |
Offset to the rear-top-left neighbor
|
static |
Offset to the rear-top neighbor
|
static |
Offset to the rear-top-right neighbor
|
static |
Offset to the rear-left neighbor
|
static |
Offset to the rear neighbor
|
static |
Offset to the rear-right neighbor
|
static |
Offset to the rear-bottom-left neighbor
|
static |
Offset to the rear-bottom neighbor
|
static |
Offset to the rear-bottom-right neighbor
|
static |
Offset to the infront-north-west neighbor
|
static |
Offset to the infront-north neighbor
|
static |
Offset to the infront-north-east neighbor
|
static |
Offset to the infront-west neighbor
|
static |
Offset to the infront neighbor
|
static |
Offset to the infront-east neighbor
|
static |
Offset to the infront-south-west neighbor
|
static |
Offset to the infront-south neighbor
|
static |
Offset to the infront-south-east neighbor
|
static |
Offset to the north-west neighbor
|
static |
Offset to the north neighbor
|
static |
Offset to the north-east neighbor
|
static |
Offset to the west neighbor
|
static |
Offset to the right neighbor
|
static |
Offset to the south-west neighbor
|
static |
Offset to the south neighbor
|
static |
Offset to the south-east neighbor
|
static |
Offset to the behind-north-west neighbor
|
static |
Offset to the behind-north neighbor
|
static |
Offset to the behind-north-east neighbor
|
static |
Offset to the behind-west neighbor
|
static |
Offset to the behind neighbor
|
static |
Offset to the behind-right neighbor
|
static |
Offset to the behind-south-west neighbor
|
static |
Offset to the behind-south neighbor
|
static |
Offset to the behind-south-east neighbor
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|