aboutsummaryrefslogtreecommitdiff
path: root/tests/InferenceTestImage.hpp
diff options
context:
space:
mode:
authorsurmeh01 <surabhi.mehta@arm.com>2018-03-29 16:29:27 +0100
committersurmeh01 <surabhi.mehta@arm.com>2018-03-29 16:29:27 +0100
commitbceff2fb3fc68bb0aa88b886900c34b77340c826 (patch)
treed867d3e090d58d3012dfbbac456e9ea8c7f789bc /tests/InferenceTestImage.hpp
parent4fcda0101ec3d110c1d6d7bee5c83416b645528a (diff)
downloadarmnn-bceff2fb3fc68bb0aa88b886900c34b77340c826.tar.gz
Release 18.03
Diffstat (limited to 'tests/InferenceTestImage.hpp')
-rw-r--r--tests/InferenceTestImage.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/InferenceTestImage.hpp b/tests/InferenceTestImage.hpp
index 45dd8bf4e2..34403c0dda 100644
--- a/tests/InferenceTestImage.hpp
+++ b/tests/InferenceTestImage.hpp
@@ -119,3 +119,9 @@ std::vector<float> GetImageDataInArmNnLayoutAsNormalizedFloats(ImageChannelLayou
std::vector<float> GetImageDataInArmNnLayoutAsFloatsSubtractingMean(ImageChannelLayout layout,
const InferenceTestImage& image,
const std::array<float, 3>& mean);
+
+// Reads the contents of an inference test image as 3-channel pixels and returns the image data as normalized float
+// values. The returned image stay in the original order (HWC) order. The C order may be changed according to the
+// supplied layout value.
+std::vector<float> GetImageDataAsNormalizedFloats(ImageChannelLayout layout,
+ const InferenceTestImage& image);