mexopencv  3.4.1
MEX interface for OpenCV library
mexopencv_stitching.hpp
Go to the documentation of this file.
1 
12 #ifndef MEXOPENCV_STITCHING_HPP
13 #define MEXOPENCV_STITCHING_HPP
14 
15 #include "mexopencv.hpp"
16 #include "opencv2/stitching.hpp"
18 
19 // check HAVE_OPENCV_XFEATURES2D for some of the functionalities
20 #include "opencv2/opencv_modules.hpp"
21 //TODO: check HAVE_CUDA for some of the functionalities
22 //#include "opencv2/cvconfig.h"
23 
24 
25 // ==================== XXX ====================
26 
30  (cv::Stitcher::OK, "OK")
31  (cv::Stitcher::ERR_NEED_MORE_IMGS, "ERR_NEED_MORE_IMGS")
32  (cv::Stitcher::ERR_HOMOGRAPHY_EST_FAIL, "ERR_HOMOGRAPHY_EST_FAIL")
33  (cv::Stitcher::ERR_CAMERA_PARAMS_ADJUST_FAIL, "ERR_CAMERA_PARAMS_ADJUST_FAIL");
34 
35 /*
37 const ConstMap<std::string, int> ExposureCompensatorTypes = ConstMap<std::string, int>
38  ("No", cv::detail::ExposureCompensator::NO)
39  ("Gain", cv::detail::ExposureCompensator::GAIN)
40  ("GainBlocks", cv::detail::ExposureCompensator::GAIN_BLOCKS);
41 */
42 
48 
53 
54 /*
56 const ConstMap<std::string, int> BlenderTypesMap = ConstMap<std::string, int>
57  ("No", cv::detail::Blender::NO)
58  ("Feather", cv::detail::Blender::FEATHER)
59  ("MultiBand", cv::detail::Blender::MULTI_BAND);
60 */
61 
67 
73 
74 
75 // ==================== XXX ====================
76 
83 
90 
97 
103 
109 
115 
121 
126 MxArray toStruct(const cv::detail::MatchesInfo &matches_info);
127 
133 
139 
144 MxArray toStruct(const std::vector<cv::detail::MatchesInfo> &pairwise_matches);
145 
151 
152 
153 // ==================== XXX ====================
154 
160 
166 
172 
178 
184 
190 
196 
202 
203 
204 // ==================== XXX ====================
205 
214 
223 
224 #ifdef HAVE_OPENCV_XFEATURES2D
225 
233 #endif
234 
246  const std::string& type,
249 
258 
267 
276 
287  const std::string& type,
290 
299 
309  const std::string& type,
312 
325  const std::string& type,
328 
337 
346 
355 
364 
387  const std::string& type,
390 
399  const std::string& type,
402  float scale = 1.0f);
403 
412 
423  const std::string& type,
426 
435 
444 
457  const std::string& type,
460 
469 
478 
489  const std::string& type,
492 
493 #endif
const ConstMap< std::string, int > GraphCutCostTypeMap
Graph-Cut cost types.
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.
const ConstMap< cv::detail::WaveCorrectKind, std::string > WaveCorrectionInvMap
inverse wave correction kinds
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.
ERR_CAMERA_PARAMS_ADJUST_FAIL
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.
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.
std::vector< cv::detail::MatchesInfo > MxArrayToVectorMatchesInfo(const MxArray &arr)
Convert MxArray to std::vector<cv::details::MatchesInfo>
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.
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.
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.
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.
cv::detail::CameraParams MxArrayToCameraParams(const MxArray &arr, mwIndex idx=0)
Convert MxArray to cv::details::CameraParams.
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.
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.
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.
std::vector< cv::detail::CameraParams > MxArrayToVectorCameraParams(const MxArray &arr)
Convert MxArray to std::vector<cv::details::CameraParams>
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.
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.
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.
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.
STL class.
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.
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.
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.
MxArray toStruct(const cv::detail::ImageFeatures &feat)
Convert image features to scalar struct.
size_t mwIndex
unsigned pointer-width integer
Definition: tmwtypes.h:857
mxArray object wrapper for data conversion and manipulation.
Definition: MxArray.hpp:123
cv::detail::MatchesInfo MxArrayToMatchesInfo(const MxArray &arr, mwIndex idx=0)
Convert MxArray to cv::details::MatchesInfo.
const ConstMap< std::string, cv::detail::WaveCorrectKind > WaveCorrectionMap
wave correction kinds
STL class.
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.
Global constant definitions.
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.
const ConstMap< std::string, cv::detail::DpSeamFinder::CostFunction > DpCostFunctionMap
Cost function types.
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.
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.
cv::detail::ImageFeatures MxArrayToImageFeatures(const MxArray &arr, mwIndex idx=0)
Convert MxArray to cv::details::ImageFeatures.
std::vector< cv::detail::ImageFeatures > MxArrayToVectorImageFeatures(const MxArray &arr)
Convert MxArray std::vector<cv::details::ImageFeatures>
int type() const
std::map wrapper with one-line initialization and lookup method.
Definition: MxArray.hpp:927
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.
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.
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.
const ConstMap< cv::Stitcher::Status, std::string > StitcherStatusInvMap
Stitcher error status types.