3#include <iolink/RegionX.h>
4#include <iolink/Vector.h>
38template <
typename T,
size_t N>
67 template <
typename U,
size_t P>
69 : m_origin(other.
min(), 0)
70 , m_size(other.
size(), 1)
A multi-dimensional region defined by its origin and its size.
Definition: Region.h:40
Region(const Region< U, P > &other)
Build a region from another of different dimension and different type.
Definition: Region.h:68
bool contains(const VectorType &position) const
Returns if the given region contains the given position vector.
bool isEmpty() const
Indicates if region is empty.
const VectorType & origin() const
Return region's origin.
Definition: Region.h:82
size_t elementCount() const
Return number of elements (pixel, voxel, samples) contained in the region.
Region extractSliceFromAxis(size_t dimension, T origin) const
Returns a region of size one along one axis.
VectorType min() const
return min region coordinates
Definition: Region.h:101
bool contains(const Region &other) const
Returns if the current region contains the given one.
Region()
Create an empty region.
Region(const VectorType &origin, const SizeType &size)
Create a region with given origin and size.
std::string toString() const
Return a string representation.
const SizeType & size() const
return size of region
Definition: Region.h:88
bool operator==(const Region &other) const
Returns the intersection region between current and given one.
bool intersect(const Region &other) const
Returns if the given region intersects the given position vector.
size_t dimensionCount() const
Return number of dimension of this region.
Definition: Region.h:77
VectorType max() const
return max region coordinates
Region intersection(const Region &other) const
Returns the intersection region between current and given one.
A Region using dynamic vectors.
Definition: RegionX.h:14
An arithmetic vector.
Definition: Vector.h:37
All IOLink symbols are enclosed in this namespace.
Definition: ArrayX.h:8