|
IOLink
IOL_v1.1.0_release
|
3 #include <iolink/RegionX.h>
4 #include <iolink/Vector.h>
38 template <
typename T,
size_t N>
67 template <
typename U,
size_t P>
69 : m_origin(other.
min(), 0)
70 , m_size(other.
size(), 1)
107 VectorType
max()
const;
127 bool contains(
const VectorType& position)
const;
193 extern template class IOLINK_API_IMPORT Region<uint64_t, 2>;
195 extern template class IOLINK_API_IMPORT Region<uint64_t, 3>;
197 extern template class IOLINK_API_IMPORT Region<uint64_t, 4>;
203 template <
typename T>
204 using Region2 = Region<T, 2>;
205 template <
typename T>
206 using Region3 = Region<T, 3>;
207 template <
typename T>
208 using Region4 = Region<T, 4>;
bool contains(const Region &other) const
Returns if the current region contains the given one.
Region()
Create an empty region.
Region extractSliceFromAxis(size_t dimension, T origin) const
Returns a region of size one along one axis.
A multi-dimensional region defined by its origin and its size.
Definition: Region.h:39
bool operator==(const Region &other) const
Returns the intersection region between current and given one.
All IOLink symbols are enclosed in this namespace.
Definition: ArrayX.h:7
size_t dimensionCount() const
Return number of dimension of this region.
Definition: Region.h:77
size_t elementCount() const
Return number of elements (pixel, voxel, samples) contained in the region.
std::string toString() const
Return a string representation.
VectorType max() const
return max region coordinates
Region intersection(const Region &other) const
Returns the intersection region between current and given one.
Region(const Region< U, P > &other)
Build a region from another of different dimension and different type.
Definition: Region.h:68
bool isEmpty() const
Indicates if region is empty.
const VectorType & origin() const
Return region's origin.
Definition: Region.h:82
bool intersect(const Region &other) const
Returns if the given region intersects the given position vector.
A Region using dynamic vectors.
Definition: RegionX.h:13
VectorType min() const
return min region coordinates
Definition: Region.h:101
An arithmetic vector.
Definition: Vector.h:36
const SizeType & size() const
return size of region
Definition: Region.h:88