From a4c6188262d6d9f75f019e437f8190bdd56e604d Mon Sep 17 00:00:00 2001 From: Isabella Gottardi Date: Fri, 3 Nov 2017 12:11:55 +0000 Subject: COMPMID-657 - Add PPMAccessor and TopNPredictionsAccessor to GoogleNet Change-Id: Ib6f2f9e73043d2c59b2698c243fb1a9f51c526e9 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/94363 Tested-by: Kaizen Reviewed-by: Gian Marco Iodice --- utils/Utils.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'utils/Utils.h') diff --git a/utils/Utils.h b/utils/Utils.h index 1f3d971917..28382f47e4 100644 --- a/utils/Utils.h +++ b/utils/Utils.h @@ -410,6 +410,20 @@ public: } } + /** Return the width of the currently open PPM file. + */ + unsigned int width() const + { + return _width; + } + + /** Return the height of the currently open PPM file. + */ + unsigned int height() const + { + return _height; + } + private: std::ifstream _fs; unsigned int _width, _height; -- cgit v1.2.1