Medical Imaging Interaction Toolkit  2023.04.99-980ed1b6
Medical Imaging Interaction Toolkit
mitk::VnlMatrixFromCvMat< T > Class Template Reference

#include <mitkVnlMatrixFromCvMat.h>

Inheritance diagram for mitk::VnlMatrixFromCvMat< T >:
Collaboration diagram for mitk::VnlMatrixFromCvMat< T >:

Public Member Functions

 VnlMatrixFromCvMat (const cv::Mat *_CvMat, vnl_matrix< T > *_VnlMatrix)
template<typename TCvMat , typename TVnlMat >
void ToVnlMatrix (vnl_matrix< TVnlMat > &vnlMat, const cv::Mat &mat)
void Update () override

Detailed Description

template<class T>
class mitk::VnlMatrixFromCvMat< T >

create a vnl_matrix from a cv mat

Definition at line 27 of file mitkVnlMatrixFromCvMat.h.

Constructor & Destructor Documentation

◆ VnlMatrixFromCvMat()

template<class T >
mitk::VnlMatrixFromCvMat< T >::VnlMatrixFromCvMat ( const cv::Mat *  _CvMat,
vnl_matrix< T > *  _VnlMatrix 

init default values and save references

Definition at line 34 of file mitkVnlMatrixFromCvMat.h.

Member Function Documentation

◆ ToVnlMatrix()

template<class T >
template<typename TCvMat , typename TVnlMat >
void mitk::VnlMatrixFromCvMat< T >::ToVnlMatrix ( vnl_matrix< TVnlMat > &  vnlMat,
const cv::Mat &  mat 

cv mat to vnl matrix with known cv type

Definition at line 47 of file mitkVnlMatrixFromCvMat.h.

Referenced by mitk::VnlMatrixFromCvMat< T >::Update().

◆ Update()

template<class T >
void mitk::VnlMatrixFromCvMat< T >::Update ( )

executes the Algorithm

Implements mitk::Algorithm.

Definition at line 58 of file mitkVnlMatrixFromCvMat.h.

References endoAccessCvMat, and mitk::VnlMatrixFromCvMat< T >::ToVnlMatrix().

The documentation for this class was generated from the following file: