TinyMAT
a library to write Matlab MAT-files
Loading...
Searching...
No Matches
TinyMATWriter-Support for OpenCV Datatypes
Collaboration diagram for TinyMATWriter-Support for OpenCV Datatypes:

Functions

template<>
void TinyMATWriter_writeContainerAsRow (TinyMATWriterFile *mat, const char *name, const std::vector< cv::Point2d > &data_vec)
 write a 1-dimensional std::vector of values as a row-vector into a MAT-file
 
template<>
void TinyMATWriter_writeContainerAsRow (TinyMATWriterFile *mat, const char *name, const std::vector< cv::Point2f > &data_vec)
 write a 1-dimensional std::vector of values as a row-vector into a MAT-file
 
template<>
void TinyMATWriter_writeContainerAsRow (TinyMATWriterFile *mat, const char *name, const std::vector< cv::Point2i > &data_vec)
 write a 1-dimensional std::vector of values as a row-vector into a MAT-file
 
template<>
void TinyMATWriter_writeContainerAsRow (TinyMATWriterFile *mat, const char *name, const std::vector< cv::Point2l > &data_vec)
 write a 1-dimensional std::vector of values as a row-vector into a MAT-file
 
TINYMAT_EXPORT void TinyMATWriter_writeCVMat (TinyMATWriterFile *mat, const char *name, const cv::Mat &img)
 write an OpenCV cv::Mat into a MAT-file as a matrix
 
template<typename T >
TINYMAT_EXPORT void TinyMATWriter_writeCVPoint3AsColumn (TinyMATWriterFile *mat, const char *name, const cv::Point3_< T > &p)
 write a cv::Point3_<T> as column-vector
 
template<typename T >
TINYMAT_EXPORT void TinyMATWriter_writeCVPoint3AsRow (TinyMATWriterFile *mat, const char *name, const cv::Point3_< T > &p)
 write a cv::Point3_<T> as row-vector
 
template<typename T >
TINYMAT_EXPORT void TinyMATWriter_writeCVPointAsColumn (TinyMATWriterFile *mat, const char *name, const cv::Point_< T > &p)
 write a cv::Point_<T> as column-vector
 
template<typename T >
TINYMAT_EXPORT void TinyMATWriter_writeCVPointAsRow (TinyMATWriterFile *mat, const char *name, const cv::Point_< T > &p)
 write a cv::Point_<T> as row-vector
 
TINYMAT_EXPORT void TinyMATWriter_writeCVRangeAsColumn (TinyMATWriterFile *mat, const char *name, const cv::Range &p)
 write a cv::Range as column-vector
 
TINYMAT_EXPORT void TinyMATWriter_writeCVRangeAsRow (TinyMATWriterFile *mat, const char *name, const cv::Range &p)
 write a cv::Range as row-vector
 
template<typename T >
TINYMAT_EXPORT void TinyMATWriter_writeCVRectAsColumn (TinyMATWriterFile *mat, const char *name, const cv::Rect_< T > &p)
 write a cv::Rect_<T> as column-vector [x;y;width;height]
 
template<typename T >
TINYMAT_EXPORT void TinyMATWriter_writeCVRectAsRow (TinyMATWriterFile *mat, const char *name, const cv::Rect_< T > &p)
 write a cv::Rect_<T> as row-vector [x,y,width,height]
 
template<typename T >
TINYMAT_EXPORT void TinyMATWriter_writeCVScalarAsColumn (TinyMATWriterFile *mat, const char *name, const cv::Scalar_< T > &p)
 write a cv::Scalar_<T> as column-vector
 
template<typename T >
TINYMAT_EXPORT void TinyMATWriter_writeCVScalarAsRow (TinyMATWriterFile *mat, const char *name, const cv::Scalar_< T > &p)
 write a cv::Scalar_<T> as row-vector
 
template<typename T >
TINYMAT_EXPORT void TinyMATWriter_writeCVSizeAsColumn (TinyMATWriterFile *mat, const char *name, const cv::Size_< T > &p)
 write a cv::Size_<T> as column-vector
 
template<typename T >
TINYMAT_EXPORT void TinyMATWriter_writeCVSizeAsRow (TinyMATWriterFile *mat, const char *name, const cv::Size_< T > &p)
 write a cv::Size_<T> as row-vector
 
template<typename T , int cn>
TINYMAT_EXPORT void TinyMATWriter_writeCVVecAsColumn (TinyMATWriterFile *mat, const char *name, const cv::Vec< T, cn > &vec)
 write a cv::Vec into a MAT-file as a column vector
 
template<typename T , int cn>
TINYMAT_EXPORT void TinyMATWriter_writeCVVecAsRow (TinyMATWriterFile *mat, const char *name, const cv::Vec< T, cn > &vec)
 write a cv::Vec into a MAT-file as a row vector
 

Detailed Description

Functions in this group allow to directly store OpenCV-datatypes into MAT-files.

Function Documentation

◆ TinyMATWriter_writeContainerAsRow() [1/4]

template<>
void TinyMATWriter_writeContainerAsRow ( TinyMATWriterFile *  mat,
const char *  name,
const std::vector< cv::Point2d > &  data_vec 
)

write a 1-dimensional std::vector of values as a row-vector into a MAT-file

This is a performance-optimized specialization.

Parameters
matthe MAT-file to write into
namevariable name for the new array
data_vecthe array to write. This container has to implement the function size() and an iterator with tool-functions begin() and end()

◆ TinyMATWriter_writeContainerAsRow() [2/4]

template<>
void TinyMATWriter_writeContainerAsRow ( TinyMATWriterFile *  mat,
const char *  name,
const std::vector< cv::Point2f > &  data_vec 
)

write a 1-dimensional std::vector of values as a row-vector into a MAT-file

This is a performance-optimized specialization.

Parameters
matthe MAT-file to write into
namevariable name for the new array
data_vecthe array to write. This container has to implement the function size() and an iterator with tool-functions begin() and end()

◆ TinyMATWriter_writeContainerAsRow() [3/4]

template<>
void TinyMATWriter_writeContainerAsRow ( TinyMATWriterFile *  mat,
const char *  name,
const std::vector< cv::Point2i > &  data_vec 
)

write a 1-dimensional std::vector of values as a row-vector into a MAT-file

This is a performance-optimized specialization.

Parameters
matthe MAT-file to write into
namevariable name for the new array
data_vecthe array to write. This container has to implement the function size() and an iterator with tool-functions begin() and end()

◆ TinyMATWriter_writeContainerAsRow() [4/4]

template<>
void TinyMATWriter_writeContainerAsRow ( TinyMATWriterFile *  mat,
const char *  name,
const std::vector< cv::Point2l > &  data_vec 
)

write a 1-dimensional std::vector of values as a row-vector into a MAT-file

This is a performance-optimized specialization.

Parameters
matthe MAT-file to write into
namevariable name for the new array
data_vecthe array to write. This container has to implement the function size() and an iterator with tool-functions begin() and end()

◆ TinyMATWriter_writeCVMat()

TINYMAT_EXPORT void TinyMATWriter_writeCVMat ( TinyMATWriterFile *  mat,
const char *  name,
const cv::Mat &  img 
)

write an OpenCV cv::Mat into a MAT-file as a matrix

Parameters
matthe MAT-file to write into
namevariable name for the new array
imgthe cv::Mat to write

◆ TinyMATWriter_writeCVPoint3AsColumn()

template<typename T >
TINYMAT_EXPORT void TinyMATWriter_writeCVPoint3AsColumn ( TinyMATWriterFile *  mat,
const char *  name,
const cv::Point3_< T > &  p 
)
inline

write a cv::Point3_<T> as column-vector

Parameters
matthe MAT-file to write into
namevariable name for the new array
pthe point to write

◆ TinyMATWriter_writeCVPoint3AsRow()

template<typename T >
TINYMAT_EXPORT void TinyMATWriter_writeCVPoint3AsRow ( TinyMATWriterFile *  mat,
const char *  name,
const cv::Point3_< T > &  p 
)
inline

write a cv::Point3_<T> as row-vector

Parameters
matthe MAT-file to write into
namevariable name for the new array
pthe point to write

◆ TinyMATWriter_writeCVPointAsColumn()

template<typename T >
TINYMAT_EXPORT void TinyMATWriter_writeCVPointAsColumn ( TinyMATWriterFile *  mat,
const char *  name,
const cv::Point_< T > &  p 
)
inline

write a cv::Point_<T> as column-vector

Parameters
matthe MAT-file to write into
namevariable name for the new array
pthe point to write

◆ TinyMATWriter_writeCVPointAsRow()

template<typename T >
TINYMAT_EXPORT void TinyMATWriter_writeCVPointAsRow ( TinyMATWriterFile *  mat,
const char *  name,
const cv::Point_< T > &  p 
)
inline

write a cv::Point_<T> as row-vector

Parameters
matthe MAT-file to write into
namevariable name for the new array
pthe point to write

◆ TinyMATWriter_writeCVRangeAsColumn()

TINYMAT_EXPORT void TinyMATWriter_writeCVRangeAsColumn ( TinyMATWriterFile *  mat,
const char *  name,
const cv::Range &  p 
)
inline

write a cv::Range as column-vector

Parameters
matthe MAT-file to write into
namevariable name for the new array
pthe rectangle-object to write

◆ TinyMATWriter_writeCVRangeAsRow()

TINYMAT_EXPORT void TinyMATWriter_writeCVRangeAsRow ( TinyMATWriterFile *  mat,
const char *  name,
const cv::Range &  p 
)
inline

write a cv::Range as row-vector

Parameters
matthe MAT-file to write into
namevariable name for the new array
pthe Range-object to write

◆ TinyMATWriter_writeCVRectAsColumn()

template<typename T >
TINYMAT_EXPORT void TinyMATWriter_writeCVRectAsColumn ( TinyMATWriterFile *  mat,
const char *  name,
const cv::Rect_< T > &  p 
)
inline

write a cv::Rect_<T> as column-vector [x;y;width;height]

Parameters
matthe MAT-file to write into
namevariable name for the new array
pthe rectangle-object to write

◆ TinyMATWriter_writeCVRectAsRow()

template<typename T >
TINYMAT_EXPORT void TinyMATWriter_writeCVRectAsRow ( TinyMATWriterFile *  mat,
const char *  name,
const cv::Rect_< T > &  p 
)
inline

write a cv::Rect_<T> as row-vector [x,y,width,height]

Parameters
matthe MAT-file to write into
namevariable name for the new array
pthe rectangle-object to write

◆ TinyMATWriter_writeCVScalarAsColumn()

template<typename T >
TINYMAT_EXPORT void TinyMATWriter_writeCVScalarAsColumn ( TinyMATWriterFile *  mat,
const char *  name,
const cv::Scalar_< T > &  p 
)
inline

write a cv::Scalar_<T> as column-vector

Parameters
matthe MAT-file to write into
namevariable name for the new array
pthe cv::Scalar_<T> to write

◆ TinyMATWriter_writeCVScalarAsRow()

template<typename T >
TINYMAT_EXPORT void TinyMATWriter_writeCVScalarAsRow ( TinyMATWriterFile *  mat,
const char *  name,
const cv::Scalar_< T > &  p 
)
inline

write a cv::Scalar_<T> as row-vector

Parameters
matthe MAT-file to write into
namevariable name for the new array
pthe cv::Scalar_<T> to write

◆ TinyMATWriter_writeCVSizeAsColumn()

template<typename T >
TINYMAT_EXPORT void TinyMATWriter_writeCVSizeAsColumn ( TinyMATWriterFile *  mat,
const char *  name,
const cv::Size_< T > &  p 
)
inline

write a cv::Size_<T> as column-vector

Parameters
matthe MAT-file to write into
namevariable name for the new array
pthe size-object to write

◆ TinyMATWriter_writeCVSizeAsRow()

template<typename T >
TINYMAT_EXPORT void TinyMATWriter_writeCVSizeAsRow ( TinyMATWriterFile *  mat,
const char *  name,
const cv::Size_< T > &  p 
)
inline

write a cv::Size_<T> as row-vector

Parameters
matthe MAT-file to write into
namevariable name for the new array
pthe size-object to write

◆ TinyMATWriter_writeCVVecAsColumn()

template<typename T , int cn>
TINYMAT_EXPORT void TinyMATWriter_writeCVVecAsColumn ( TinyMATWriterFile *  mat,
const char *  name,
const cv::Vec< T, cn > &  vec 
)
inline

write a cv::Vec into a MAT-file as a column vector

Parameters
matthe MAT-file to write into
namevariable name for the new array
vecthe cv::Vec to write

◆ TinyMATWriter_writeCVVecAsRow()

template<typename T , int cn>
TINYMAT_EXPORT void TinyMATWriter_writeCVVecAsRow ( TinyMATWriterFile *  mat,
const char *  name,
const cv::Vec< T, cn > &  vec 
)
inline

write a cv::Vec into a MAT-file as a row vector

Parameters
matthe MAT-file to write into
namevariable name for the new array
vecthe cv::Vec to write