53 inline Size32f(){ this->width = 0; this->height = 0; }
59 inline Size32f(
float width,
float height){ this->width = width; this->height = height; }
62 inline Size32f(
const Size &other):width(other.width),height(other.height){}
65 bool isNull()
const {
return (*
this)==
null; }
98 float getDim()
const {
return width*height;}
undocument this line if you encounter any issues!
Definition: Any.h:37
#define ICLUtils_API
this macros are important for creating dll's
Definition: CompatMacros.h:171
bool isNull() const
checks wether the object instance is null, i.e. all elements are zero
Definition: Size32f.h:65
Size32f()
default constructor
Definition: Size32f.h:53
Size32f operator+(const Size32f &s) const
add a size to another size
Definition: Size32f.h:74
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
Size32f(const Size32f &s)
deep copy of another Size32f
Definition: Size32f.h:56
bool operator!=(const Size32f &s) const
checks if two size are not equal
Definition: Size32f.h:71
Size class of the ICL.
Definition: Size.h:61
ICLUtils_API std::ostream & operator<<(std::ostream &s, const ConfigFile &cf)
Default ostream operator to put a ConfigFile into a stream.
ICLUtils_API std::istream & operator>>(std::istream &s, Point &p)
istream operator
Size32f operator/(double d) const
scales the size by a scalar value
Definition: Size32f.h:83
float getDim() const
reutrns width*height
Definition: Size32f.h:98
ICLQt_API ImgQ operator *(const ImgQ &a, const ImgQ &b)
multiplies two images pixel-wise
Size32f(float width, float height)
creates a specified size
Definition: Size32f.h:59
Size32f & operator/=(double d)
scales the size parameters inplace by a scalar
Definition: Size32f.h:95
Size32f operator-(const Size32f &s) const
substracts a size from another size
Definition: Size32f.h:77
float height
Definition: Size32f.h:47
bool operator==(const Size32f &s) const
checks if two sizes are equal
Definition: Size32f.h:68
Size32f class of the ICL (float valued)
Definition: Size32f.h:40
float width
Definition: Size32f.h:44
Size32f & operator+=(const Size32f &s)
adds another size inplace
Definition: Size32f.h:86
Size32f(const Size &other)
creates a float-size from given int size
Definition: Size32f.h:62
Size32f & operator-=(const Size32f &s)
substracst another size inplace
Definition: Size32f.h:89