16 #ifndef mitkCvMatCompare_h
17 #define mitkCvMatCompare_h
49 const cv::Mat* _CvMat1,
50 const cv::Mat* _CvMat2,
60 void SetMatrices(
const cv::Mat* _CvMat1,
const cv::Mat* _CvMat2 )
80 assert( m_CvMat1 && m_CvMat2 );
82 cv::absdiff( (*m_CvMat1), (*m_CvMat2), dst);
84 cv::minMaxLoc( dst,
nullptr, &max );
88 (*m_Equals) = max <= *m_Epsilon;
94 const cv::Mat* m_CvMat1;
98 const cv::Mat* m_CvMat2;
110 #endif // mitkCvMatCompare_h
CvMatCompare(const Epsilon *_Epsilon, bool *_Equals)
void SetMatrix1(const cv::Mat *_CvMat1)
DataCollection - Class to facilitate loading/accessing structured data.
void SetMatrices(const cv::Mat *_CvMat1, const cv::Mat *_CvMat2)
CvMatCompare(const cv::Mat *_CvMat1, const cv::Mat *_CvMat2, const Epsilon *_Epsilon, bool *_Equals)
void SetMatrix2(const cv::Mat *_CvMat2)
#define endodebugvar(var)