From 684cb0f29d23fbe418e5e5347234abf9eccef363 Mon Sep 17 00:00:00 2001 From: John Richardson Date: Tue, 9 Jan 2018 11:17:00 +0000 Subject: COMPMID-596: Port HOGDetector to new validation Change-Id: I73231fc71c5166268e6c909b7930b7e034f3794e Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/118876 Reviewed-by: Anthony Barbier Tested-by: Jenkins --- utils/TypePrinter.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'utils') diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h index f0c1bd1329..811fb7b1e8 100644 --- a/utils/TypePrinter.h +++ b/utils/TypePrinter.h @@ -1454,5 +1454,24 @@ inline std::string to_string(const GPUTarget &gpu_target) str << gpu_target; return str.str(); } +/** Formatted output of the DetectionWindow type. */ +inline ::std::ostream &operator<<(::std::ostream &os, const DetectionWindow &detection_window) +{ + os << "{x=" << detection_window.x << "," + << "y=" << detection_window.y << "," + << "width=" << detection_window.width << "," + << "height=" << detection_window.height << "," + << "idx_class=" << detection_window.idx_class << "," + << "score=" << detection_window.score << "}"; + + return os; +} + +inline std::string to_string(const DetectionWindow &type) +{ + std::stringstream str; + str << type; + return str.str(); +} } // namespace arm_compute #endif /* __ARM_COMPUTE_TEST_TYPE_PRINTER_H__ */ \ No newline at end of file -- cgit v1.2.1