![]() |
aimsdata
4.7.0
Neuroimaging data handling
|
Topology of a data container. More...
#include <aims/connectivity/connectivity.h>

Public Member Functions | |
| Connectivity (int oline, int oslice, Type type) | |
| virtual | ~Connectivity () |
| Type | type () const |
| Get the type of the connectivity. More... | |
| std::string | type_string () const |
| Get the type of the connectivity. More... | |
| int | nbNeighbors () const |
| Get the number of neighbors for that connectivity. More... | |
| int | offset (int n) const |
| Get the linear offset of the nth element. More... | |
| const Point3d & | xyzOffset (int n) const |
| Get the X/Y/Z offsets of the nth element. More... | |
| const Point3df & | dir (int n) const |
| Get the normalized directive vector of the nth element. More... | |
| bool | isNeighbor (const Point3d &offset) |
| Connectivity & | operator= (const Connectivity &other) |
Static Public Member Functions | |
| static Type | type_from_string (const std::string &) |
| static std::string | type_to_string (Type) |
Protected Member Functions | |
| void | setConnectivity () |
| Set the right connectivity according to the given type. More... | |
| void | setConnectivity_4_XY () |
| 4-neighbor connectivity in (xy) plane More... | |
| void | setConnectivity_4_XZ () |
| 4-neighbor connectivity in (xz) plane More... | |
| void | setConnectivity_4_YZ () |
| 4-neighbor connectivity in (yz) plane More... | |
| void | setConnectivity_6_XYZ () |
| 6-neighbor connectivity in (xyz) space More... | |
| void | setConnectivity_8_XY () |
| 8-neighbor connectivity in (xy) plane More... | |
| void | setConnectivity_8_XZ () |
| 8-neighbor connectivity in (xz) plane More... | |
| void | setConnectivity_8_YZ () |
| 8-neighbor connectivity in (yz) plane More... | |
| void | setConnectivity_18_XYZ () |
| 18-neighbor connectivity in (xyz) space More... | |
| void | setConnectivity_26_XYZ () |
| 26-neighbor connectivity in (xyz) space More... | |
| void | setConnectivity_9_XY_Zminus () |
| 9-neighbor connectivity in (xyz) inferior in z space More... | |
| void | setConnectivity_9_XY_Zplus () |
| 9-neighbor connectivity in (xyz) superior in z space More... | |
| void | setConnectivity_9_XZ_Yminus () |
| 9-neighbor connectivity in (xyz) inferior in y space More... | |
| void | setConnectivity_9_XZ_Yplus () |
| 9-neighbor connectivity in (xyz) superior in y space More... | |
| void | setConnectivity_9_YZ_Xminus () |
| 9-neighbor connectivity in (xyz) inferior in x space More... | |
| void | setConnectivity_9_YZ_Xplus () |
| 9-neighbor connectivity in (xyz) superior in x space More... | |
| void | setConnectivity_5_XminusY () |
| 5-neighbor connectivity in (xy) inferior in x plane More... | |
| void | setConnectivity_5_XplusY () |
| 5-neighbor connectivity in (xy) superior in x plane More... | |
| void | setConnectivity_5_XYminus () |
| 5-neighbor connectivity in (xy) inferior in y plane More... | |
| void | setConnectivity_5_XYplus () |
| 5-neighbor connectivity in (xy) superior in y plane More... | |
| void | setConnectivity_5_XminusZ () |
| 5-neighbor connectivity in (xz) inferior in x plane More... | |
| void | setConnectivity_5_XplusZ () |
| 5-neighbor connectivity in (xz) superior in x plane More... | |
| void | setConnectivity_5_XZminus () |
| 5-neighbor connectivity in (xz) inferior in z plane More... | |
| void | setConnectivity_5_XZplus () |
| 5-neighbor connectivity in (xz) superior in z plane More... | |
| void | setConnectivity_5_YminusZ () |
| 5-neighbor connectivity in (yz) inferior in y plane More... | |
| void | setConnectivity_5_YplusZ () |
| 5-neighbor connectivity in (yz) superior in y plane More... | |
| void | setConnectivity_5_YZminus () |
| 5-neighbor connectivity in (yz) inferior in z plane More... | |
| void | setConnectivity_5_YZplus () |
| 5-neighbor connectivity in (yz) superior in z plane More... | |
Protected Attributes | |
| int | _xSize |
| int | _sliceSize |
| Type | _type |
| Type of connectivity. More... | |
| int | _nbNeighbors |
| Number of neighbors. More... | |
| int * | _offset |
| Linear offset pointer. More... | |
| Point3d * | _xyzOffset |
| xyz offset pointer More... | |
| std::set< Point3d, BucketMapLess > | _xyzOffsets |
| xyz offsets as a searchcable set More... | |
| Point3df * | _dir |
| Normalized vectors for the different directions. More... | |
Topology of a data container.
Definition at line 50 of file connectivity.h.
The different kinds of connectivity.
Definition at line 54 of file connectivity.h.
| aims::Connectivity::Connectivity | ( | int | oline, |
| int | oslice, | ||
| Type | type | ||
| ) |
|
virtual |
|
inline |
Get the normalized directive vector of the nth element.
Definition at line 106 of file connectivity.h.
References _dir.
|
inline |
Definition at line 107 of file connectivity.h.
References _xyzOffsets.
|
inline |
Get the number of neighbors for that connectivity.
Definition at line 100 of file connectivity.h.
References _nbNeighbors.
Referenced by aims::AimsConnectedComponent(), and aims::floodFill().
|
inline |
Get the linear offset of the nth element.
Definition at line 102 of file connectivity.h.
References _offset.
Referenced by aims::floodFill().
|
inline |
Definition at line 111 of file connectivity.h.
References _dir, _offset, _sliceSize, _type, _xSize, _xyzOffset, and setConnectivity().
|
protected |
Set the right connectivity according to the given type.
Referenced by operator=().
|
protected |
18-neighbor connectivity in (xyz) space
|
protected |
26-neighbor connectivity in (xyz) space
|
protected |
4-neighbor connectivity in (xy) plane
|
protected |
4-neighbor connectivity in (xz) plane
|
protected |
4-neighbor connectivity in (yz) plane
|
protected |
5-neighbor connectivity in (xy) inferior in x plane
|
protected |
5-neighbor connectivity in (xz) inferior in x plane
|
protected |
5-neighbor connectivity in (xy) superior in x plane
|
protected |
5-neighbor connectivity in (xz) superior in x plane
|
protected |
5-neighbor connectivity in (xy) inferior in y plane
|
protected |
5-neighbor connectivity in (xy) superior in y plane
|
protected |
5-neighbor connectivity in (xz) inferior in z plane
|
protected |
5-neighbor connectivity in (xz) superior in z plane
|
protected |
5-neighbor connectivity in (yz) inferior in y plane
|
protected |
5-neighbor connectivity in (yz) superior in y plane
|
protected |
5-neighbor connectivity in (yz) inferior in z plane
|
protected |
5-neighbor connectivity in (yz) superior in z plane
|
protected |
6-neighbor connectivity in (xyz) space
|
protected |
8-neighbor connectivity in (xy) plane
|
protected |
8-neighbor connectivity in (xz) plane
|
protected |
8-neighbor connectivity in (yz) plane
|
protected |
9-neighbor connectivity in (xyz) inferior in z space
|
protected |
9-neighbor connectivity in (xyz) superior in z space
|
protected |
9-neighbor connectivity in (xyz) inferior in y space
|
protected |
9-neighbor connectivity in (xyz) superior in y space
|
protected |
9-neighbor connectivity in (xyz) inferior in x space
|
protected |
9-neighbor connectivity in (xyz) superior in x space
|
inline |
|
static |
|
inline |
Get the type of the connectivity.
Definition at line 98 of file connectivity.h.
References _type, and type_to_string().
|
static |
Referenced by type_string().
|
inline |
Get the X/Y/Z offsets of the nth element.
Definition at line 104 of file connectivity.h.
References _xyzOffset.
Referenced by aims::AimsConnectedComponent(), and aims::floodFill().
|
protected |
Normalized vectors for the different directions.
Definition at line 152 of file connectivity.h.
Referenced by dir(), and operator=().
|
protected |
|
protected |
Linear offset pointer.
Definition at line 146 of file connectivity.h.
Referenced by offset(), and operator=().
|
protected |
Definition at line 140 of file connectivity.h.
Referenced by operator=().
|
protected |
Type of connectivity.
Definition at line 142 of file connectivity.h.
Referenced by operator=(), type(), and type_string().
|
protected |
Definition at line 139 of file connectivity.h.
Referenced by operator=().
|
protected |
xyz offset pointer
Definition at line 148 of file connectivity.h.
Referenced by operator=(), and xyzOffset().
|
protected |
xyz offsets as a searchcable set
Definition at line 150 of file connectivity.h.
Referenced by isNeighbor().