9 template<
typename _Tp>
class Size_;
10 typedef Size_<int> Size;
22 Size(int32_t _width, int32_t _height) {
26 Size(
const Size& sz) {
30 Size(Size&& sz)
noexcept {
36 Size(
const cv::Size& cvSize);
38 Size& operator = (
const Size& sz) =
default;
39 Size& operator = (Size&& sz)
noexcept {
48 Size& operator = (
const cv::Size& cvSize);
49 operator cv::Size()
const;
50 bool operator == (
const Size& other)
const {
51 return width == other.width && height == other.height;
54 int32_t area()
const {
55 return width * height;
58 return width <= 0 || height <= 0;
61 friend std::ostream& operator<<(std::ostream& os,
const Size& size) {
62 os <<
"Size (width: " << size.width <<
", height: " << size.height <<
")";
66 bool operator!=(
const Size& size)
const {
67 return !(*
this == size);
75#if defined(SLIDEIO_INTERNAL_HEADER)
Definition: exceptions.hpp:15