Template class for specifying the size of an image or rectangle. The class includes two members called width_ and height_. The structure can be converted to and from the old OpenCV structures CvSize and CvSize2D32f . The same set of arithmetic and comparison operations as for Point is available.
More...
#include <type.h>
template<typename T>
class nndeploy::base::Size< T >
Template class for specifying the size of an image or rectangle. The class includes two members called width_ and height_. The structure can be converted to and from the old OpenCV structures CvSize and CvSize2D32f . The same set of arithmetic and comparison operations as for Point is available.
OpenCV defines the following Size<> aliases:
Size()
default constructor
Definition at line 250 of file type.h.
◆ value_type
◆ Size() [1/5]
default constructor
Definition at line 860 of file type.h.
◆ Size() [2/5]
◆ Size() [3/5]
◆ Size() [4/5]
◆ Size() [5/5]
◆ area()
the area (width_*height_)
Definition at line 875 of file type.h.
◆ aspectRatio()
aspect ratio (width_/height_)
Definition at line 881 of file type.h.
◆ empty()
true if empty
Definition at line 886 of file type.h.
◆ operator Size< Tp2 >()
template<typename T >
template<typename Tp2 >
conversion of another data type.
Definition at line 870 of file type.h.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ height_
the height_
Definition at line 277 of file type.h.
◆ width_
the width_
Definition at line 276 of file type.h.
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/nndeploy-zh/checkouts/stable/framework/include/nndeploy/base/type.h