16 using ImageSet = std::pair<const std::string, unsigned int>;
25 unsigned int width = 227,
26 unsigned int height = 227,
27 const std::vector<ImageSet>& imageSet = std::vector<ImageSet>());
28 std::unique_ptr<TTestCaseData>
GetTestCaseData(
unsigned int testCaseId);
31 unsigned int GetNumImageElements()
const {
return 3 * m_Width * m_Height; }
32 unsigned int GetNumImageBytes()
const {
return 4 * GetNumImageElements(); }
34 std::string m_BinaryDirectory;
35 unsigned int m_Height;
38 const std::array<float, 3> m_MeanBgr = {{104.007965f, 116.669472f, 122.675102f}};
39 const std::vector<ImageSet> m_ImageSet;
std::pair< const std::string, unsigned int > ImageSet
Caffe requires BGR images, not normalized, mean adjusted and resized using smooth resize of STB libra...
std::unique_ptr< TTestCaseData > GetTestCaseData(unsigned int testCaseId)
CaffePreprocessor(const std::string &binaryFileDirectory, unsigned int width=227, unsigned int height=227, const std::vector< ImageSet > &imageSet=std::vector< ImageSet >())