16 #ifndef mitkStringFromCvMat_h
17 #define mitkStringFromCvMat_h
39 const cv::Mat* _CvMat,
40 std::string* _String):
50 template <
typename TCvMat,
char T_Delim>
51 void ToString( std::string&
string,
const cv::Mat& mat )
56 for(
int i=0; i<mat.rows; ++i)
58 for(
int j=0; j<mat.cols; ++j)
60 s << mat.at<TCvMat>(i,j) <<
" ";
68 const cv::Mat* _CvMat )
84 const cv::Mat* m_CvMat;
88 std::string* m_String;
92 #endif // mitkStringFromCvMat_h
void ToString(std::string &string, const cv::Mat &mat)
#define endoAccessCvMat(function, T, arg1, arg2)
DataCollection - Class to facilitate loading/accessing structured data.
StringFromCvMat(const cv::Mat *_CvMat, std::string *_String)
void SetMatrix(const cv::Mat *_CvMat)