Template class for specifying the size of an image or rectangle.
More...
#include <opencv2/core/types.hpp>
template<typename
_Tp>
class cv::Size_< _Tp >
Template class for specifying the size of an image or rectangle.
The class includes two members called width and height. The same set of arithmetic and comparison operations as for Point_ is available.
For a 1d matrix, the size is (width, 1) and for a 0d matrix, it is (1, 1).
For an empty matrix, it is (0, 0).
OpenCV defines the following Size_<> aliases:
Template class for specifying the size of an image or rectangle.
Definition types.hpp:338
Size2i Size
Definition types.hpp:373
Size_< int > Size2i
Definition types.hpp:369
Size_< float > Size2f
Definition types.hpp:371
- Examples
- modules/shape/samples/shape_example.cpp, samples/cpp/image_alignment.cpp, samples/cpp/lkdemo.cpp, samples/cpp/snippets/chromatic_aberration_correction.cpp, samples/cpp/snippets/edge.cpp, samples/cpp/snippets/epipolar_lines.cpp, samples/cpp/snippets/falsecolor.cpp, samples/cpp/snippets/laplace.cpp, samples/cpp/snippets/warpPerspective_demo.cpp, samples/cpp/stitching_detailed.cpp, samples/cpp/tutorial_code/ImgProc/Morphology_1.cpp, samples/cpp/tutorial_code/ImgProc/Morphology_2.cpp, samples/cpp/tutorial_code/ImgProc/Pyramids/Pyramids.cpp, samples/cpp/tutorial_code/ImgProc/Smoothing/Smoothing.cpp, samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_1.cpp, samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_2.cpp, samples/cpp/tutorial_code/ImgTrans/Sobel_Demo.cpp, samples/cpp/tutorial_code/features/Homography/decompose_homography.cpp, samples/cpp/tutorial_code/features/Homography/homography_from_camera_displacement.cpp, samples/cpp/tutorial_code/features/Homography/pose_from_homography.cpp, samples/cpp/tutorial_code/videoio/video-write/video-write.cpp, samples/cpp/videowriter.cpp, samples/dnn/classification.cpp, samples/dnn/colorization.cpp, samples/dnn/object_detection.cpp, samples/dnn/openpose.cpp, samples/dnn/segmentation.cpp, samples/dnn/text_detection.cpp, samples/facedetect.cpp, samples/hog_tapi.cpp, and samples/peopledetect.cpp.
◆ value_type
◆ Size_() [1/5]
◆ Size_() [2/5]
◆ Size_() [3/5]
◆ Size_() [4/5]
◆ Size_() [5/5]
◆ area()
◆ aspectRatio()
aspect ratio (width/height)
◆ empty()
◆ operator Size_< _Tp2 >()
conversion of another data type.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ height
◆ width
The documentation for this class was generated from the following file: