20.02
|
#include "InferenceTestImage.hpp"
#include <armnn/utility/IgnoreUnused.hpp>
#include <boost/format.hpp>
#include <boost/numeric/conversion/cast.hpp>
#include <array>
#include <stb/stb_image.h>
#include <stb/stb_image_resize.h>
#include <stb/stb_image_write.h>
Go to the source code of this file.
Macros | |
#define | STB_IMAGE_IMPLEMENTATION |
#define | STB_IMAGE_RESIZE_IMPLEMENTATION |
#define | STB_IMAGE_WRITE_IMPLEMENTATION |
Functions | |
template<typename TProcessValueCallable > | |
std::vector< float > | GetImageDataInArmNnLayoutAsFloats (ImageChannelLayout channelLayout, const InferenceTestImage &image, TProcessValueCallable processValue) |
std::vector< float > | GetImageDataInArmNnLayoutAsNormalizedFloats (ImageChannelLayout layout, const InferenceTestImage &image) |
std::vector< float > | GetImageDataInArmNnLayoutAsFloatsSubtractingMean (ImageChannelLayout layout, const InferenceTestImage &image, const std::array< float, 3 > &mean) |
std::vector< float > | GetImageDataAsNormalizedFloats (ImageChannelLayout layout, const InferenceTestImage &image) |
#define STB_IMAGE_IMPLEMENTATION |
Definition at line 14 of file InferenceTestImage.cpp.
#define STB_IMAGE_RESIZE_IMPLEMENTATION |
Definition at line 17 of file InferenceTestImage.cpp.
#define STB_IMAGE_WRITE_IMPLEMENTATION |
Definition at line 20 of file InferenceTestImage.cpp.
std::vector<float> GetImageDataAsNormalizedFloats | ( | ImageChannelLayout | layout, |
const InferenceTestImage & | image | ||
) |
Definition at line 334 of file InferenceTestImage.cpp.
References B, G, InferenceTestImage::GetHeight(), InferenceTestImage::GetPixelAs3Channels(), InferenceTestImage::GetWidth(), and R.
std::vector<float> GetImageDataInArmNnLayoutAsFloats | ( | ImageChannelLayout | channelLayout, |
const InferenceTestImage & | image, | ||
TProcessValueCallable | processValue | ||
) |
Definition at line 280 of file InferenceTestImage.cpp.
References B, G, InferenceTestImage::GetHeight(), InferenceTestImage::GetPixelAs3Channels(), InferenceTestImage::GetWidth(), and R.
Referenced by GetImageDataInArmNnLayoutAsFloatsSubtractingMean(), and GetImageDataInArmNnLayoutAsNormalizedFloats().
std::vector<float> GetImageDataInArmNnLayoutAsFloatsSubtractingMean | ( | ImageChannelLayout | layout, |
const InferenceTestImage & | image, | ||
const std::array< float, 3 > & | mean | ||
) |
Definition at line 322 of file InferenceTestImage.cpp.
References GetImageDataInArmNnLayoutAsFloats().
Referenced by CaffePreprocessor::GetTestCaseData().
std::vector<float> GetImageDataInArmNnLayoutAsNormalizedFloats | ( | ImageChannelLayout | layout, |
const InferenceTestImage & | image | ||
) |
Definition at line 311 of file InferenceTestImage.cpp.
References GetImageDataInArmNnLayoutAsFloats(), and armnn::IgnoreUnused().
Referenced by YoloDatabase::GetTestCaseData().