66 bool isNull()
const {
return (*
this)==
null; }
98 float distanceTo(
const Point32f &p)
const;
113 float norm(
float p=2)
const;
120 float l =
norm(); x/=l; y/=l;
return *
this;
float & operator[](int i)
index based interface (returns i?y:x)
Definition: Point32f.h:130
undocument this line if you encounter any issues!
Definition: Any.h:37
ICLQt_API core::Img< T > norm(const core::Img< T > &image)
normalize an images range to [0,255]
float y
y position of this point
Definition: Point32f.h:48
Point32f & operator+=(const Point32f &s)
Adds another Point32f inplace.
Definition: Point32f.h:84
#define ICLUtils_API
this macros are important for creating dll's
Definition: CompatMacros.h:171
Point32f(const Point32f &p)
deep copy of a Point
Definition: Point32f.h:57
Point32f transform(double xfac, double yfac) const
transforms the point by element-wise scaling
Definition: Point32f.h:93
Point32f normalized() const
returns a normalized version of this Point
Definition: Point32f.h:125
bool operator==(const Point32f &s) const
checks if two points are equal
Definition: Point32f.h:69
Point32f operator+(const Point32f &s) const
adds two Points as vectors
Definition: Point32f.h:75
const float & operator[](int i) const
index based interface, const (returns i?y:x)
Definition: Point32f.h:133
FixedMatrix< T, V_COLS, M_ROWS_AND_COLS > & operator *=(FixedMatrix< T, V_COLS, M_ROWS_AND_COLS > &v, const FixedMatrix< T, M_ROWS_AND_COLS, M_ROWS_AND_COLS > &m)
Matrix multiplication (inplace)
Definition: FixedMatrix.h:959
Point32f & operator-=(const Point32f &s)
Substacts another Point32f inplace.
Definition: Point32f.h:87
ICLUtils_API std::ostream & operator<<(std::ostream &s, const ConfigFile &cf)
Default ostream operator to put a ConfigFile into a stream.
Point32f operator-(const Point32f &s) const
substracts two Point32fs as vectors
Definition: Point32f.h:78
Point32f & normalize()
normalized this 2D vector to length=1;
Definition: Point32f.h:119
ICLUtils_API std::istream & operator>>(std::istream &s, Point &p)
istream operator
Point32f(float x, float y)
create a special point
Definition: Point32f.h:60
Point32f(const Point &p)
craete a point by a given interger point
Definition: Point32f.h:63
ICLQt_API ImgQ operator *(const ImgQ &a, const ImgQ &b)
multiplies two images pixel-wise
Single precission 3D Vectors Point class of the ICL.
Definition: Point32f.h:41
Point class of the ICL used e.g. for the Images ROI offset.
Definition: Point.h:58
float x
x position of this point
Definition: Point32f.h:45
bool operator!=(const Point32f &s) const
checks if two points are not equal
Definition: Point32f.h:72
Point32f()
default constructor
Definition: Point32f.h:54
bool isNull() const
checks wether the object instance is null, i.e. all elements are zero
Definition: Point32f.h:66