Revision 8a6de86e1a29c53020689dfee6c679a7b6fda78b authored by Konrad Werys on 01 November 2019, 08:16:31 UTC, committed by Konrad Werys on 01 November 2019, 08:16:31 UTC
1 parent e684d8a
OxTestImage.h
/*!
* \file OxTestImage.h
* \author Konrad Werys
* \date 2018/07/30
*/
#ifndef Tomato_OXTESTImage_H
#define Tomato_OXTESTImage_H
#include "OxTestData.h"
namespace Ox {
template< typename MeasureType >
class TestImage {
public:
TestImage(int nCols, int nRows, std::vector <std::string> filesPaths, std::vector<int> invTimesOrder);
TestImage(int nCols, int nRows, std::vector <std::string> filesPaths);
virtual ~TestImage();
int init(int nCols, int nRows, std::vector <std::string> filesPaths, std::vector<int> invTimesOrder);
virtual MeasureType *getInvTimesPtr() ;
virtual std::vector<MeasureType> getInvTimes() const;
virtual MeasureType *getImageMagPtr() const;
virtual MeasureType *getImagePhaPtr() const;
virtual MeasureType *getImageResultsMolliPtr() const;
virtual MeasureType *getImageResultsShmolliPtr() const;
virtual int getNCols() const { return _nCols; }
virtual int getNRows() const { return _nRows; }
virtual int getNSamples() const { return _nSamples; }
protected:
int _nCols;
int _nRows;
int _nSamples;
std::vector<MeasureType> _invTimes;
std::vector<int> _invTimesOrder;
MeasureType *_imageMag; // nRows * nCols * nSamples, address [iRow][iCol][iSam] iSample * (nRows*nCols) + iCol * nRows + iRow
MeasureType *_imagePha; // nRows * nCols * nSamples, address [iRow][iCol][iSam] iSample * (nRows*nCols) + iCol * nRows + iRow
MeasureType *_imageResultsMolli; // nCols * nRows * 3
MeasureType *_imageResultsShmolli; // nCols * nRows * 3
};
} // namespace Ox
#include "OxTestImage.hxx"
#endif //Tomato_OXTESTImage_H
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...