mexopencv  3.4.1
MEX interface for OpenCV library
Functions
mexopencv_shape.hpp File Reference

Common definitions for the shape module. More...

#include "mexopencv.hpp"
#include "opencv2/shape.hpp"

Go to the source code of this file.

Functions

MxArray toStruct (cv::Ptr< cv::HistogramCostExtractor > p)
 Convert a HistogramCostExtractor to MxArray. More...
 
MxArray toStruct (cv::Ptr< cv::ShapeTransformer > p)
 Convert a ShapeTransformer to MxArray. More...
 
cv::Ptr< cv::HistogramCostExtractorcreate_NormHistogramCostExtractor (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of NormHistogramCostExtractor using options in arguments. More...
 
cv::Ptr< cv::HistogramCostExtractorcreate_EMDHistogramCostExtractor (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of EMDHistogramCostExtractor using options in arguments. More...
 
cv::Ptr< cv::HistogramCostExtractorcreate_ChiHistogramCostExtractor (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of ChiHistogramCostExtractor using options in arguments. More...
 
cv::Ptr< cv::HistogramCostExtractorcreate_EMDL1HistogramCostExtractor (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of EMDL1HistogramCostExtractor using options in arguments. More...
 
cv::Ptr< cv::HistogramCostExtractorcreate_HistogramCostExtractor (const std::string &type, std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of HistogramCostExtractor using options in arguments. More...
 
cv::Ptr< cv::AffineTransformercreate_AffineTransformer (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of AffineTransformer using options in arguments. More...
 
cv::Ptr< cv::ThinPlateSplineShapeTransformercreate_ThinPlateSplineShapeTransformer (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of ThinPlateSplineShapeTransformer using options in arguments. More...
 
cv::Ptr< cv::ShapeTransformercreate_ShapeTransformer (const std::string &type, std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of ShapeTransformer using options in arguments. More...
 
cv::Ptr< cv::ShapeContextDistanceExtractorcreate_ShapeContextDistanceExtractor (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of ShapeContextDistanceExtractor using options in arguments. More...
 
cv::Ptr< cv::HausdorffDistanceExtractorcreate_HausdorffDistanceExtractor (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of HausdorffDistanceExtractor using options in arguments. More...
 

Detailed Description

Common definitions for the shape module.

Author
Amro
Date
2015

Header file for MEX-functions that use shape module from OpenCV library. This file includes maps for option processing, as well as functions for creating instances of classes from parsed arguments.

Definition in file mexopencv_shape.hpp.

Function Documentation

◆ create_AffineTransformer()

cv::Ptr<cv::AffineTransformer> create_AffineTransformer ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of AffineTransformer using options in arguments.

Parameters
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created AffineTransformer

Definition at line 199 of file mexopencv_shape.cpp.

◆ create_ChiHistogramCostExtractor()

cv::Ptr<cv::HistogramCostExtractor> create_ChiHistogramCostExtractor ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of ChiHistogramCostExtractor using options in arguments.

Parameters
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created HistogramCostExtractor

Definition at line 113 of file mexopencv_shape.cpp.

◆ create_EMDHistogramCostExtractor()

cv::Ptr<cv::HistogramCostExtractor> create_EMDHistogramCostExtractor ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of EMDHistogramCostExtractor using options in arguments.

Parameters
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created HistogramCostExtractor

Definition at line 88 of file mexopencv_shape.cpp.

◆ create_EMDL1HistogramCostExtractor()

cv::Ptr<cv::HistogramCostExtractor> create_EMDL1HistogramCostExtractor ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of EMDL1HistogramCostExtractor using options in arguments.

Parameters
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created HistogramCostExtractor

Definition at line 135 of file mexopencv_shape.cpp.

◆ create_HausdorffDistanceExtractor()

cv::Ptr<cv::HausdorffDistanceExtractor> create_HausdorffDistanceExtractor ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of HausdorffDistanceExtractor using options in arguments.

Parameters
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created HausdorffDistanceExtractor

Definition at line 287 of file mexopencv_shape.cpp.

◆ create_HistogramCostExtractor()

cv::Ptr<cv::HistogramCostExtractor> create_HistogramCostExtractor ( const std::string type,
std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of HistogramCostExtractor using options in arguments.

Parameters
typehistogram cost extractor type, one of:
  • "NormHistogramCostExtractor"
  • "EMDHistogramCostExtractor"
  • "ChiHistogramCostExtractor"
  • "EMDL1HistogramCostExtractor"
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created HistogramCostExtractor

Definition at line 157 of file mexopencv_shape.cpp.

◆ create_NormHistogramCostExtractor()

cv::Ptr<cv::HistogramCostExtractor> create_NormHistogramCostExtractor ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of NormHistogramCostExtractor using options in arguments.

Parameters
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created HistogramCostExtractor

Definition at line 63 of file mexopencv_shape.cpp.

◆ create_ShapeContextDistanceExtractor()

cv::Ptr<cv::ShapeContextDistanceExtractor> create_ShapeContextDistanceExtractor ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of ShapeContextDistanceExtractor using options in arguments.

Parameters
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created ShapeContextDistanceExtractor

Definition at line 237 of file mexopencv_shape.cpp.

◆ create_ShapeTransformer()

cv::Ptr<cv::ShapeTransformer> create_ShapeTransformer ( const std::string type,
std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of ShapeTransformer using options in arguments.

Parameters
typeshape transformer type, one of:
  • "AffineTransformer"
  • "ThinPlateSplineShapeTransformer"
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created ShapeTransformer

Definition at line 218 of file mexopencv_shape.cpp.

◆ create_ThinPlateSplineShapeTransformer()

cv::Ptr<cv::ThinPlateSplineShapeTransformer> create_ThinPlateSplineShapeTransformer ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of ThinPlateSplineShapeTransformer using options in arguments.

Parameters
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created ThinPlateSplineShapeTransformer

Definition at line 180 of file mexopencv_shape.cpp.

◆ toStruct() [1/2]

Convert a HistogramCostExtractor to MxArray.

Parameters
psmart poitner to an instance of HistogramCostExtractor
Returns
output MxArray structure

Definition at line 17 of file mexopencv_shape.cpp.

◆ toStruct() [2/2]

MxArray toStruct ( cv::Ptr< cv::ShapeTransformer p)

Convert a ShapeTransformer to MxArray.

Parameters
psmart poitner to an instance of ShapeTransformer
Returns
output MxArray structure

Definition at line 40 of file mexopencv_shape.cpp.