19 #ifndef MIRTK_NeighborhoodOffsets_H 20 #define MIRTK_NeighborhoodOffsets_H 22 #include "mirtk/BaseImage.h" 59 mirtkReadOnlyAttributeMacro(
int, Size);
112 return ToString(static_cast<int>(value), w, c, left);
123 case 4: value = CONNECTIVITY_4;
break;
124 case 6: value = CONNECTIVITY_6;
break;
125 case 18: value = CONNECTIVITY_18;
break;
126 case 26: value = CONNECTIVITY_26;
break;
127 default:
return false;
135 #endif // MIRTK_NeighborhoodOffsets_H NeighborhoodOffsets()
Constructor.
void Initialize(const BaseImage *, ConnectivityType=CONNECTIVITY_26)
Initializer with image and connectivity specified.
virtual ~NeighborhoodOffsets()
Destructor.
int operator()(int i) const
string ToString(const EnergyMeasure &value, int w, char c, bool left)
Convert energy measure enumeration value to string.
bool FromString(const char *str, EnergyMeasure &value)
Convert energy measure string to enumeration value.
ConnectivityType
Type of image connectivity, i.e., number of neighbors for each voxel.