mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-16 22:35:51 +08:00
traits: insupported vector<vector<Mat>> for InputArray
This commit is contained in:
@@ -78,7 +78,7 @@ class CV_EXPORTS_W StructuredLightPattern : public virtual Algorithm
|
||||
@note All the images must be at the same resolution.
|
||||
*/
|
||||
CV_WRAP
|
||||
virtual bool decode( InputArrayOfArrays patternImages, OutputArray disparityMap,
|
||||
virtual bool decode( const std::vector< std::vector<Mat> >& patternImages, OutputArray disparityMap,
|
||||
InputArrayOfArrays blackImages = noArray(),
|
||||
InputArrayOfArrays whiteImages = noArray(),
|
||||
int flags = DECODE_3D_UNDERWORLD ) const = 0;
|
||||
|
@@ -56,7 +56,7 @@ class CV_EXPORTS_W GrayCodePattern_Impl : public GrayCodePattern
|
||||
bool generate( OutputArrayOfArrays patternImages );
|
||||
|
||||
// Decodes the gray code pattern, computing the disparity map
|
||||
bool decode( InputArrayOfArrays patternImages, OutputArray disparityMap, InputArrayOfArrays blackImages = noArray(),
|
||||
bool decode( const std::vector< std::vector<Mat> >& patternImages, OutputArray disparityMap, InputArrayOfArrays blackImages = noArray(),
|
||||
InputArrayOfArrays whiteImages = noArray(), int flags = DECODE_3D_UNDERWORLD ) const;
|
||||
|
||||
// Returns the number of pattern images for the graycode pattern
|
||||
@@ -209,10 +209,10 @@ bool GrayCodePattern_Impl::generate( OutputArrayOfArrays pattern )
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GrayCodePattern_Impl::decode( InputArrayOfArrays patternImages, OutputArray disparityMap,
|
||||
bool GrayCodePattern_Impl::decode( const std::vector< std::vector<Mat> >& patternImages, OutputArray disparityMap,
|
||||
InputArrayOfArrays blackImages, InputArrayOfArrays whitheImages, int flags ) const
|
||||
{
|
||||
std::vector<std::vector<Mat> >& acquired_pattern = *( std::vector<std::vector<Mat> >* ) patternImages.getObj();
|
||||
const std::vector<std::vector<Mat> >& acquired_pattern = patternImages;
|
||||
|
||||
if( flags == DECODE_3D_UNDERWORLD )
|
||||
{
|
||||
|
@@ -56,7 +56,7 @@ public:
|
||||
// Generate sinusoidal patterns
|
||||
bool generate( OutputArrayOfArrays patternImages );
|
||||
|
||||
bool decode( InputArrayOfArrays patternImages, OutputArray disparityMap,
|
||||
bool decode( const std::vector< std::vector<Mat> >& patternImages, OutputArray disparityMap,
|
||||
InputArrayOfArrays blackImages = noArray(), InputArrayOfArrays whiteImages =
|
||||
noArray(), int flags = 0 ) const;
|
||||
|
||||
@@ -258,7 +258,7 @@ bool SinusoidalPatternProfilometry_Impl::generate( OutputArrayOfArrays pattern )
|
||||
return true;
|
||||
}
|
||||
|
||||
bool SinusoidalPatternProfilometry_Impl::decode( InputArrayOfArrays patternImages,
|
||||
bool SinusoidalPatternProfilometry_Impl::decode(const std::vector< std::vector<Mat> >& patternImages,
|
||||
OutputArray disparityMap,
|
||||
InputArrayOfArrays blackImages,
|
||||
InputArrayOfArrays whiteImages, int flags ) const
|
||||
|
Reference in New Issue
Block a user