12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- /*M
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #ifndef __OPENCV_STRUCTURED_LIGHT_HPP__
- #define __OPENCV_STRUCTURED_LIGHT_HPP__
- #include "opencv2/core.hpp"
- namespace cv {
- namespace structured_light {
- enum
- {
- DECODE_3D_UNDERWORLD = 0
- };
- /** @brief Abstract base class for generating and decoding structured light patterns.
- */
- class CV_EXPORTS_W StructuredLightPattern : public virtual Algorithm
- {
- public:
- /** @brief Generates the structured light pattern to project.
- @param patternImages The generated pattern: a vector<Mat>, in which each image is a CV_8U Mat at projector's resolution.
- */
- CV_WRAP
- virtual bool generate( OutputArrayOfArrays patternImages ) = 0;
- /** @brief Decodes the structured light pattern, generating a disparity map
- @param patternImages The acquired pattern images to decode (vector<vector<Mat>>), loaded as grayscale and previously rectified.
- @param disparityMap The decoding result: a CV_64F Mat at image resolution, storing the computed disparity map.
- @param blackImages The all-black images needed for shadowMasks computation.
- @param whiteImages The all-white images needed for shadowMasks computation.
- @param flags Flags setting decoding algorithms. Default: DECODE_3D_UNDERWORLD.
- @note All the images must be at the same resolution.
- */
- CV_WRAP
- 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;
- };
- }
- }
- #endif
|