mexopencv  3.4.1
MEX interface for OpenCV library
Functions | Variables
mexopencv_stitching.hpp File Reference

Common definitions for the stitching module. More...

#include "mexopencv.hpp"
#include "opencv2/stitching.hpp"
#include "opencv2/stitching/detail/timelapsers.hpp"
#include "opencv2/opencv_modules.hpp"

Go to the source code of this file.

Functions

cv::detail::ImageFeatures MxArrayToImageFeatures (const MxArray &arr, mwIndex idx=0)
 Convert MxArray to cv::details::ImageFeatures. More...
 
cv::detail::MatchesInfo MxArrayToMatchesInfo (const MxArray &arr, mwIndex idx=0)
 Convert MxArray to cv::details::MatchesInfo. More...
 
cv::detail::CameraParams MxArrayToCameraParams (const MxArray &arr, mwIndex idx=0)
 Convert MxArray to cv::details::CameraParams. More...
 
std::vector< cv::detail::ImageFeaturesMxArrayToVectorImageFeatures (const MxArray &arr)
 Convert MxArray std::vector<cv::details::ImageFeatures> More...
 
std::vector< cv::detail::MatchesInfoMxArrayToVectorMatchesInfo (const MxArray &arr)
 Convert MxArray to std::vector<cv::details::MatchesInfo> More...
 
std::vector< cv::detail::CameraParamsMxArrayToVectorCameraParams (const MxArray &arr)
 Convert MxArray to std::vector<cv::details::CameraParams> More...
 
MxArray toStruct (const cv::detail::ImageFeatures &feat)
 Convert image features to scalar struct. More...
 
MxArray toStruct (const cv::detail::MatchesInfo &matches_info)
 Convert matches to scalar struct. More...
 
MxArray toStruct (const cv::detail::CameraParams &params)
 Convert cameras params to scalar struct. More...
 
MxArray toStruct (const std::vector< cv::detail::ImageFeatures > &features)
 Convert image features to struct array. More...
 
MxArray toStruct (const std::vector< cv::detail::MatchesInfo > &pairwise_matches)
 Convert matches to struct array. More...
 
MxArray toStruct (const std::vector< cv::detail::CameraParams > &cameras)
 Convert cameras params to struct array. More...
 
MxArray toStruct (cv::Ptr< cv::detail::FeaturesFinder > p)
 Convert a FeaturesFinder to MxArray. More...
 
MxArray toStruct (cv::Ptr< cv::detail::FeaturesMatcher > p)
 Convert a FeaturesMatcher to MxArray. More...
 
MxArray toStruct (cv::Ptr< cv::detail::Estimator > p)
 Convert a Estimator to MxArray. More...
 
MxArray toStruct (cv::Ptr< cv::detail::BundleAdjusterBase > p)
 Convert a BundleAdjusterBase to MxArray. More...
 
MxArray toStruct (cv::Ptr< cv::WarperCreator > p)
 Convert a WarperCreator to MxArray. More...
 
MxArray toStruct (cv::Ptr< cv::detail::ExposureCompensator > p)
 Convert a ExposureCompensator to MxArray. More...
 
MxArray toStruct (cv::Ptr< cv::detail::SeamFinder > p)
 Convert a SeamFinder to MxArray. More...
 
MxArray toStruct (cv::Ptr< cv::detail::Blender > p)
 Convert a Blender to MxArray. More...
 
cv::Ptr< cv::detail::OrbFeaturesFindercreateOrbFeaturesFinder (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of OrbFeaturesFinder using options in arguments. More...
 
cv::Ptr< cv::detail::AKAZEFeaturesFindercreateAKAZEFeaturesFinder (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of AKAZEFeaturesFinder using options in arguments. More...
 
cv::Ptr< cv::detail::SurfFeaturesFindercreateSurfFeaturesFinder (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of SurfFeaturesFinder using options in arguments. More...
 
cv::Ptr< cv::detail::FeaturesFindercreateFeaturesFinder (const std::string &type, std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of FeaturesFinder using options in arguments. More...
 
cv::Ptr< cv::detail::BestOf2NearestMatchercreateBestOf2NearestMatcher (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of BestOf2NearestMatcher using options in arguments. More...
 
cv::Ptr< cv::detail::BestOf2NearestRangeMatchercreateBestOf2NearestRangeMatcher (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of BestOf2NearestRangeMatcher using options in arguments. More...
 
cv::Ptr< cv::detail::AffineBestOf2NearestMatchercreateAffineBestOf2NearestMatcher (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of AffineBestOf2NearestMatcher using options in arguments. More...
 
cv::Ptr< cv::detail::FeaturesMatchercreateFeaturesMatcher (const std::string &type, std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of FeaturesMatcher using options in arguments. More...
 
cv::Ptr< cv::detail::HomographyBasedEstimatorcreateHomographyBasedEstimator (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of HomographyBasedEstimator using options in arguments. More...
 
cv::Ptr< cv::detail::EstimatorcreateEstimator (const std::string &type, std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of Estimator using options in arguments. More...
 
cv::Ptr< cv::detail::BundleAdjusterBasecreateBundleAdjusterBase (const std::string &type, std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of BundleAdjusterBase using options in arguments. More...
 
cv::Ptr< cv::CompressedRectilinearWarpercreateCompressedRectilinearWarper (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of CompressedRectilinearWarper using options in arguments. More...
 
cv::Ptr< cv::CompressedRectilinearPortraitWarpercreateCompressedRectilinearPortraitWarper (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of CompressedRectilinearPortraitWarper using options in arguments. More...
 
cv::Ptr< cv::PaniniWarpercreatePaniniWarper (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of PaniniWarper using options in arguments. More...
 
cv::Ptr< cv::PaniniPortraitWarpercreatePaniniPortraitWarper (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of PaniniPortraitWarper using options in arguments. More...
 
cv::Ptr< cv::WarperCreatorcreateWarperCreator (const std::string &type, std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of WarperCreator using options in arguments. More...
 
cv::Ptr< cv::detail::RotationWarpercreateRotationWarper (const std::string &type, std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last, float scale=1.0f)
 Create an instance of RotationWarper using options in arguments. More...
 
cv::Ptr< cv::detail::BlocksGainCompensatorcreateBlocksGainCompensator (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of BlocksGainCompensator using options in arguments. More...
 
cv::Ptr< cv::detail::ExposureCompensatorcreateExposureCompensator (const std::string &type, std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of ExposureCompensator using options in arguments. More...
 
cv::Ptr< cv::detail::DpSeamFindercreateDpSeamFinder (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of DpSeamFinder using options in arguments. More...
 
cv::Ptr< cv::detail::GraphCutSeamFindercreateGraphCutSeamFinder (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of GraphCutSeamFinder using options in arguments. More...
 
cv::Ptr< cv::detail::SeamFindercreateSeamFinder (const std::string &type, std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of SeamFinder using options in arguments. More...
 
cv::Ptr< cv::detail::FeatherBlendercreateFeatherBlender (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of FeatherBlender using options in arguments. More...
 
cv::Ptr< cv::detail::MultiBandBlendercreateMultiBandBlender (std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of MultiBandBlender using options in arguments. More...
 
cv::Ptr< cv::detail::BlendercreateBlender (const std::string &type, std::vector< MxArray >::const_iterator first, std::vector< MxArray >::const_iterator last)
 Create an instance of Blender using options in arguments. More...
 

Variables

const ConstMap< cv::Stitcher::Status, std::stringStitcherStatusInvMap
 Stitcher error status types. More...
 
const ConstMap< std::string, cv::detail::DpSeamFinder::CostFunctionDpCostFunctionMap
 Cost function types. More...
 
const ConstMap< std::string, int > GraphCutCostTypeMap
 Graph-Cut cost types. More...
 
const ConstMap< std::string, cv::detail::WaveCorrectKindWaveCorrectionMap
 wave correction kinds More...
 
const ConstMap< cv::detail::WaveCorrectKind, std::stringWaveCorrectionInvMap
 inverse wave correction kinds More...
 

Detailed Description

Common definitions for the stitching module.

Author
Amro
Date
2016

Header file for MEX-functions that use stitching 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_stitching.hpp.

Function Documentation

◆ createAffineBestOf2NearestMatcher()

cv::Ptr<cv::detail::AffineBestOf2NearestMatcher> createAffineBestOf2NearestMatcher ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of AffineBestOf2NearestMatcher 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 AffineBestOf2NearestMatcher

Definition at line 497 of file mexopencv_stitching.cpp.

◆ createAKAZEFeaturesFinder()

cv::Ptr<cv::detail::AKAZEFeaturesFinder> createAKAZEFeaturesFinder ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of AKAZEFeaturesFinder 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 AKAZEFeaturesFinder

Definition at line 335 of file mexopencv_stitching.cpp.

◆ createBestOf2NearestMatcher()

cv::Ptr<cv::detail::BestOf2NearestMatcher> createBestOf2NearestMatcher ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of BestOf2NearestMatcher 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 BestOf2NearestMatcher

Definition at line 436 of file mexopencv_stitching.cpp.

◆ createBestOf2NearestRangeMatcher()

cv::Ptr<cv::detail::BestOf2NearestRangeMatcher> createBestOf2NearestRangeMatcher ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of BestOf2NearestRangeMatcher 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 BestOf2NearestRangeMatcher

Definition at line 465 of file mexopencv_stitching.cpp.

◆ createBlender()

cv::Ptr<cv::detail::Blender> createBlender ( const std::string type,
std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of Blender using options in arguments.

Parameters
typeblender type, one of:
  • "NoBlender"
  • "FeatherBlender"
  • "MultiBandBlender"
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created Blender

Definition at line 959 of file mexopencv_stitching.cpp.

◆ createBlocksGainCompensator()

cv::Ptr<cv::detail::BlocksGainCompensator> createBlocksGainCompensator ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of BlocksGainCompensator 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 BlocksGainCompensator

Definition at line 789 of file mexopencv_stitching.cpp.

◆ createBundleAdjusterBase()

cv::Ptr<cv::detail::BundleAdjusterBase> createBundleAdjusterBase ( const std::string type,
std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of BundleAdjusterBase using options in arguments.

Parameters
typebundle adjuster type, one of:
  • "NoBundleAdjuster"
  • "BundleAdjusterRay"
  • "BundleAdjusterReproj"
  • "BundleAdjusterAffine"
  • "BundleAdjusterAffinePartial"
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created BundleAdjusterBase

Definition at line 587 of file mexopencv_stitching.cpp.

◆ createCompressedRectilinearPortraitWarper()

cv::Ptr<cv::CompressedRectilinearPortraitWarper> createCompressedRectilinearPortraitWarper ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of CompressedRectilinearPortraitWarper 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 CompressedRectilinearPortraitWarper

Definition at line 649 of file mexopencv_stitching.cpp.

◆ createCompressedRectilinearWarper()

cv::Ptr<cv::CompressedRectilinearWarper> createCompressedRectilinearWarper ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of CompressedRectilinearWarper 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 CompressedRectilinearWarper

Definition at line 627 of file mexopencv_stitching.cpp.

◆ createDpSeamFinder()

cv::Ptr<cv::detail::DpSeamFinder> createDpSeamFinder ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of DpSeamFinder 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 DpSeamFinder

Definition at line 838 of file mexopencv_stitching.cpp.

◆ createEstimator()

cv::Ptr<cv::detail::Estimator> createEstimator ( const std::string type,
std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of Estimator using options in arguments.

Parameters
typefeatures matcher type, one of:
  • "HomographyBasedEstimator"
  • "AffineBasedEstimator"
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created Estimator

Definition at line 566 of file mexopencv_stitching.cpp.

◆ createExposureCompensator()

cv::Ptr<cv::detail::ExposureCompensator> createExposureCompensator ( const std::string type,
std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of ExposureCompensator using options in arguments.

Parameters
typeexposure compensator type, one of:
  • "NoExposureCompensator"
  • "GainCompensator"
  • "BlocksGainCompensator"
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created ExposureCompensator

Definition at line 811 of file mexopencv_stitching.cpp.

◆ createFeatherBlender()

cv::Ptr<cv::detail::FeatherBlender> createFeatherBlender ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of FeatherBlender 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 FeatherBlender

Definition at line 914 of file mexopencv_stitching.cpp.

◆ createFeaturesFinder()

cv::Ptr<cv::detail::FeaturesFinder> createFeaturesFinder ( const std::string type,
std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of FeaturesFinder using options in arguments.

Parameters
typefeatures finder type, one of:
  • "OrbFeaturesFinder"
  • "AKAZEFeaturesFinder"
  • "SurfFeaturesFinder" (requires xfeatures2d module)
  • "SurfFeaturesFinderGpu" (requires CUDA and xfeatures2d module)
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created FeaturesFinder

Definition at line 408 of file mexopencv_stitching.cpp.

◆ createFeaturesMatcher()

cv::Ptr<cv::detail::FeaturesMatcher> createFeaturesMatcher ( const std::string type,
std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of FeaturesMatcher using options in arguments.

Parameters
typefeatures matcher type, one of:
  • "BestOf2NearestMatcher"
  • "BestOf2NearestRangeMatcher"
  • "AffineBestOf2NearestMatcher"
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created FeaturesMatcher

Definition at line 526 of file mexopencv_stitching.cpp.

◆ createGraphCutSeamFinder()

cv::Ptr<cv::detail::GraphCutSeamFinder> createGraphCutSeamFinder ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of GraphCutSeamFinder 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 GraphCutSeamFinder

Definition at line 857 of file mexopencv_stitching.cpp.

◆ createHomographyBasedEstimator()

cv::Ptr<cv::detail::HomographyBasedEstimator> createHomographyBasedEstimator ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of HomographyBasedEstimator 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 HomographyBasedEstimator

Definition at line 547 of file mexopencv_stitching.cpp.

◆ createMultiBandBlender()

cv::Ptr<cv::detail::MultiBandBlender> createMultiBandBlender ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of MultiBandBlender 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 MultiBandBlender

Definition at line 933 of file mexopencv_stitching.cpp.

◆ createOrbFeaturesFinder()

cv::Ptr<cv::detail::OrbFeaturesFinder> createOrbFeaturesFinder ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of OrbFeaturesFinder 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 OrbFeaturesFinder

Definition at line 307 of file mexopencv_stitching.cpp.

◆ createPaniniPortraitWarper()

cv::Ptr<cv::PaniniPortraitWarper> createPaniniPortraitWarper ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of PaniniPortraitWarper 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 PaniniPortraitWarper

Definition at line 693 of file mexopencv_stitching.cpp.

◆ createPaniniWarper()

cv::Ptr<cv::PaniniWarper> createPaniniWarper ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of PaniniWarper 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 PaniniWarper

Definition at line 671 of file mexopencv_stitching.cpp.

◆ createRotationWarper()

cv::Ptr<cv::detail::RotationWarper> createRotationWarper ( const std::string type,
std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last,
float  scale = 1.0f 
)

Create an instance of RotationWarper using options in arguments.

Parameters
typerotation warper type, passed to createWarperCreator()
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
scale
Returns
smart pointer to created RotationWarper

Definition at line 779 of file mexopencv_stitching.cpp.

◆ createSeamFinder()

cv::Ptr<cv::detail::SeamFinder> createSeamFinder ( const std::string type,
std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of SeamFinder using options in arguments.

Parameters
typeseam finder type, one of:
  • "NoSeamFinder"
  • "VoronoiSeamFinder"
  • "DpSeamFinder"
  • "GraphCutSeamFinder"
  • "GraphCutSeamFinderGpu" (requires CUDA)
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created SeamFinder

Definition at line 882 of file mexopencv_stitching.cpp.

◆ createSurfFeaturesFinder()

cv::Ptr<cv::detail::SurfFeaturesFinder> createSurfFeaturesFinder ( std::vector< MxArray >::const_iterator  first,
std::vector< MxArray >::const_iterator  last 
)

Create an instance of SurfFeaturesFinder 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 SurfFeaturesFinder

◆ createWarperCreator()

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

Create an instance of WarperCreator using options in arguments.

Parameters
typewarper creator type, one of:
  • "PlaneWarper"
  • "PlaneWarperGpu" (requires CUDA)
  • "AffineWarper"
  • "CylindricalWarper"
  • "CylindricalWarperGpu" (requires CUDA)
  • "SphericalWarper"
  • "SphericalWarperGpu" (requires CUDA)
  • "FisheyeWarper"
  • "StereographicWarper"
  • "CompressedRectilinearWarper"
  • "CompressedRectilinearPortraitWarper"
  • "PaniniWarper"
  • "PaniniPortraitWarper"
  • "MercatorWarper"
  • "TransverseMercatorWarper"
firstiterator at the beginning of the vector range
lastiterator at the end of the vector range
Returns
smart pointer to created WarperCreator

Definition at line 715 of file mexopencv_stitching.cpp.

◆ MxArrayToCameraParams()

cv::detail::CameraParams MxArrayToCameraParams ( const MxArray arr,
mwIndex  idx = 0 
)

Convert MxArray to cv::details::CameraParams.

Parameters
arrstruct-array MxArray object
idxlinear index of the struct array element
Returns
camera params object

Definition at line 60 of file mexopencv_stitching.cpp.

◆ MxArrayToImageFeatures()

cv::detail::ImageFeatures MxArrayToImageFeatures ( const MxArray arr,
mwIndex  idx = 0 
)

Convert MxArray to cv::details::ImageFeatures.

Parameters
arrstruct-array MxArray object
idxlinear index of the struct array element
Returns
image features object

Definition at line 35 of file mexopencv_stitching.cpp.

◆ MxArrayToMatchesInfo()

cv::detail::MatchesInfo MxArrayToMatchesInfo ( const MxArray arr,
mwIndex  idx = 0 
)

Convert MxArray to cv::details::MatchesInfo.

Parameters
arrstruct-array MxArray object
idxlinear index of the struct array element
Returns
matches info object

Definition at line 47 of file mexopencv_stitching.cpp.

◆ MxArrayToVectorCameraParams()

std::vector<cv::detail::CameraParams> MxArrayToVectorCameraParams ( const MxArray arr)

Convert MxArray to std::vector<cv::details::CameraParams>

Parameters
arrstruct-array MxArray object
Returns
vector of camera params objects

Definition at line 106 of file mexopencv_stitching.cpp.

◆ MxArrayToVectorImageFeatures()

std::vector<cv::detail::ImageFeatures> MxArrayToVectorImageFeatures ( const MxArray arr)

Convert MxArray std::vector<cv::details::ImageFeatures>

Parameters
arrstruct-array MxArray object
Returns
vector of image features objects

Definition at line 72 of file mexopencv_stitching.cpp.

◆ MxArrayToVectorMatchesInfo()

std::vector<cv::detail::MatchesInfo> MxArrayToVectorMatchesInfo ( const MxArray arr)

Convert MxArray to std::vector<cv::details::MatchesInfo>

Parameters
arrstruct-array MxArray object
Returns
vector of matches info objects

Definition at line 89 of file mexopencv_stitching.cpp.

◆ toStruct() [1/14]

MxArray toStruct ( const cv::detail::ImageFeatures feat)

Convert image features to scalar struct.

Parameters
featinstance of image features
Returns
scalar struct MxArray object

Definition at line 123 of file mexopencv_stitching.cpp.

◆ toStruct() [2/14]

MxArray toStruct ( const cv::detail::MatchesInfo matches_info)

Convert matches to scalar struct.

Parameters
matches_infoinstance of matches info
Returns
scalar struct MxArray object

Definition at line 147 of file mexopencv_stitching.cpp.

◆ toStruct() [3/14]

MxArray toStruct ( const cv::detail::CameraParams params)

Convert cameras params to scalar struct.

Parameters
paramsinstance of camera params
Returns
scalar struct MxArray object

Definition at line 179 of file mexopencv_stitching.cpp.

◆ toStruct() [4/14]

MxArray toStruct ( const std::vector< cv::detail::ImageFeatures > &  features)

Convert image features to struct array.

Parameters
featuresvector of image features
Returns
struct-array MxArray object

Definition at line 134 of file mexopencv_stitching.cpp.

◆ toStruct() [5/14]

MxArray toStruct ( const std::vector< cv::detail::MatchesInfo > &  pairwise_matches)

Convert matches to struct array.

Parameters
pairwise_matchesvector of matches info
Returns
struct-array MxArray object

Definition at line 162 of file mexopencv_stitching.cpp.

◆ toStruct() [6/14]

MxArray toStruct ( const std::vector< cv::detail::CameraParams > &  cameras)

Convert cameras params to struct array.

Parameters
camerasvector of camera params
Returns
struct-array MxArray object

Definition at line 193 of file mexopencv_stitching.cpp.

◆ toStruct() [7/14]

Convert a FeaturesFinder to MxArray.

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

Definition at line 212 of file mexopencv_stitching.cpp.

◆ toStruct() [8/14]

Convert a FeaturesMatcher to MxArray.

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

◆ toStruct() [9/14]

Convert a Estimator to MxArray.

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

Definition at line 232 of file mexopencv_stitching.cpp.

◆ toStruct() [10/14]

Convert a BundleAdjusterBase to MxArray.

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

Definition at line 241 of file mexopencv_stitching.cpp.

◆ toStruct() [11/14]

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

Convert a WarperCreator to MxArray.

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

◆ toStruct() [12/14]

Convert a ExposureCompensator to MxArray.

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

Definition at line 262 of file mexopencv_stitching.cpp.

◆ toStruct() [13/14]

Convert a SeamFinder to MxArray.

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

Definition at line 271 of file mexopencv_stitching.cpp.

◆ toStruct() [14/14]

MxArray toStruct ( cv::Ptr< cv::detail::Blender p)

Convert a Blender to MxArray.

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

Definition at line 285 of file mexopencv_stitching.cpp.

Variable Documentation

◆ DpCostFunctionMap

Initial value:

Cost function types.

Definition at line 44 of file mexopencv_stitching.hpp.

◆ GraphCutCostTypeMap

const ConstMap<std::string, int> GraphCutCostTypeMap
Initial value:

Graph-Cut cost types.

Definition at line 50 of file mexopencv_stitching.hpp.

◆ StitcherStatusInvMap

const ConstMap<cv::Stitcher::Status, std::string> StitcherStatusInvMap
Initial value:
=
(cv::Stitcher::ERR_NEED_MORE_IMGS, "ERR_NEED_MORE_IMGS")
(cv::Stitcher::ERR_HOMOGRAPHY_EST_FAIL, "ERR_HOMOGRAPHY_EST_FAIL")
(cv::Stitcher::ERR_CAMERA_PARAMS_ADJUST_FAIL, "ERR_CAMERA_PARAMS_ADJUST_FAIL")
ERR_CAMERA_PARAMS_ADJUST_FAIL
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927

Stitcher error status types.

Definition at line 28 of file mexopencv_stitching.hpp.

◆ WaveCorrectionInvMap

const ConstMap<cv::detail::WaveCorrectKind, std::string> WaveCorrectionInvMap
Initial value:
=
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927

inverse wave correction kinds

Definition at line 69 of file mexopencv_stitching.hpp.

◆ WaveCorrectionMap

Initial value:
=
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927

wave correction kinds

Definition at line 63 of file mexopencv_stitching.hpp.