From 3b77e9df5d2d33bda0500235d3f258f3197037de Mon Sep 17 00:00:00 2001 From: Isabella Gottardi Date: Thu, 22 Jun 2017 11:05:41 +0100 Subject: COMPMID-378 - Implemented reference implementation and tests (NEON and CL) for Non Linear Filter Change-Id: I1b81e030a27cf01d098247a87d047099616e2a39 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/78531 Reviewed-by: Moritz Pflanzer Tested-by: Kaizen --- tests/TypePrinter.h | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'tests/TypePrinter.h') diff --git a/tests/TypePrinter.h b/tests/TypePrinter.h index 3d5a19981f..d76754448e 100644 --- a/tests/TypePrinter.h +++ b/tests/TypePrinter.h @@ -86,6 +86,51 @@ inline ::std::ostream &operator<<(::std::ostream &os, const BorderMode &mode) return os; } +/** Formatted output of the NonLinearFilterFunction type. */ +inline ::std::ostream &operator<<(::std::ostream &os, const NonLinearFilterFunction &function) +{ + switch(function) + { + case NonLinearFilterFunction::MAX: + os << "MAX"; + break; + case NonLinearFilterFunction::MEDIAN: + os << "MEDIAN"; + break; + case NonLinearFilterFunction::MIN: + os << "MIN"; + break; + default: + ARM_COMPUTE_ERROR("NOT_SUPPORTED!"); + } + + return os; +} + +/** Formatted output of the MatrixPattern type. */ +inline ::std::ostream &operator<<(::std::ostream &os, const MatrixPattern &pattern) +{ + switch(pattern) + { + case MatrixPattern::BOX: + os << "BOX"; + break; + case MatrixPattern::CROSS: + os << "CROSS"; + break; + case MatrixPattern::DISK: + os << "DISK"; + break; + case MatrixPattern::OTHER: + os << "OTHER"; + break; + default: + ARM_COMPUTE_ERROR("NOT_SUPPORTED!"); + } + + return os; +} + /** Formatted output of the InterpolationPolicy type. */ inline ::std::ostream &operator<<(::std::ostream &os, const InterpolationPolicy &policy) { -- cgit v1.2.1