aboutsummaryrefslogtreecommitdiff
path: root/tests/InferenceTestImage.hpp
diff options
context:
space:
mode:
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);