mexopencv  0.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::HistogramCostExtractor > create_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::HistogramCostExtractor > create_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::HistogramCostExtractor > create_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::HistogramCostExtractor > create_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::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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. 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

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
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
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
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
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
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
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
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
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
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
MxArray toStruct ( cv::Ptr< cv::HistogramCostExtractor >  p)

Convert a HistogramCostExtractor to MxArray.

Parameters
psmart poitner to an instance of HistogramCostExtractor
Returns
output MxArray structure
MxArray toStruct ( cv::Ptr< cv::ShapeTransformer >  p)

Convert a ShapeTransformer to MxArray.

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