template<typename T>
Vertex struct
Encodes a location in a 2D image.
Contents
Constructors, destructors, assignment and conversion operators
Functions
-
template<typename V>void Vertex
(dip::Vertex v) - Constructor.
- auto Round() const -> dip::Vertex
- Round coordinates to nearest integer.
- auto Permute() const -> dip::Vertex
- Permute dimensions, swapping x and y values.
Operators
-
template<typename V>auto operator+=(dip::Vertex v) -> dip::Vertex&
- Add a vertex.
-
template<typename V>auto operator-=(dip::Vertex v) -> dip::Vertex&
- Subtract a vertex.
- auto operator+=(T t) -> dip::Vertex&
- Add a constant to both coordinate components.
- auto operator-=(T t) -> dip::Vertex&
- Subtract a constant from both coordinate components.
- auto operator*=(dip::dfloat s) -> dip::Vertex&
- Scale by a constant, isotropically.
-
template<typename V>auto operator*=(dip::Vertex v) -> dip::Vertex&
- Scale by a constant, anisotropically.
- auto operator/=(dip::dfloat s) -> dip::Vertex&
- Scale by the inverse of a constant, isotropically.
-
template<typename V>auto operator/=(dip::Vertex v) -> dip::Vertex&
- Scale by the inverse of a constant, anisotropically.