MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / Size

Class Size

dnn/src/common/cv/common.h:79–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77namespace megcv {
78
79class Size {
80public:
81 Size(size_t rows, size_t cols) : m_rows(rows), m_cols(cols) {}
82 Size() : m_rows(0), m_cols(0) {}
83
84 size_t rows() const { return m_rows; }
85 size_t& rows() { return m_rows; }
86 size_t cols() const { return m_cols; }
87 size_t& cols() { return m_cols; }
88 size_t height() const { return rows(); }
89 size_t& height() { return rows(); }
90 size_t width() const { return cols(); }
91 size_t& width() { return cols(); }
92
93 bool operator==(const Size& rhs) const {
94 return rows() == rhs.rows() && cols() == rhs.cols();
95 }
96
97private:
98 size_t m_rows, m_cols;
99};
100
101class MatShape : public Size {
102public:

Callers 7

gaussian_blur_execMethod · 0.85
gaussian_blur_exec_8uMethod · 0.85
gaussian_blur_execMethod · 0.85
gaussian_blur_exec_8uMethod · 0.85
FilterEngineMethod · 0.85
exec_internalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected