diff options
Diffstat (limited to 'arm_compute/core/Size2D.h')
-rw-r--r-- | arm_compute/core/Size2D.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arm_compute/core/Size2D.h b/arm_compute/core/Size2D.h index 37c4ebd041..ff7466d56f 100644 --- a/arm_compute/core/Size2D.h +++ b/arm_compute/core/Size2D.h @@ -70,6 +70,24 @@ public: return support::cpp11::to_string(width) + std::string("x") + support::cpp11::to_string(height); } + /** Semantic accessor for width as x. + * + * @return x. + */ + size_t x() const + { + return width; + } + + /** Semantic accessor for height as y. + * + * @return y. + */ + size_t y() const + { + return height; + } + public: size_t width = {}; /**< Width of the image region or rectangle */ size_t height = {}; /**< Height of the image region or rectangle */ |