OpenCV453
sinusoidalpattern.hpp
1/*M///////////////////////////////////////////////////////////////////////////////////////
2//
3// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
4//
5// By downloading, copying, installing or using the software you agree to this license.
6// If you do not agree to this license, do not download, install,
7// copy or use the software.
8//
9//
10// License Agreement
11// For Open Source Computer Vision Library
12//
13// Copyright (C) 2015, OpenCV Foundation, all rights reserved.
14// Third party copyrights are property of their respective owners.
15//
16// Redistribution and use in source and binary forms, with or without modification,
17// are permitted provided that the following conditions are met:
18//
19// * Redistribution's of source code must retain the above copyright notice,
20// this list of conditions and the following disclaimer.
21//
22// * Redistribution's in binary form must reproduce the above copyright notice,
23// this list of conditions and the following disclaimer in the documentation
24// and/or other materials provided with the distribution.
25//
26// * The name of the copyright holders may not be used to endorse or promote products
27// derived from this software without specific prior written permission.
28//
29// This software is provided by the copyright holders and contributors "as is" and
30// any express or implied warranties, including, but not limited to, the implied
31// warranties of merchantability and fitness for a particular purpose are disclaimed.
32// In no event shall the Intel Corporation or contributors be liable for any direct,
33// indirect, incidental, special, exemplary, or consequential damages
34// (including, but not limited to, procurement of substitute goods or services;
35// loss of use, data, or profits; or business interruption) however caused
36// and on any theory of liability, whether in contract, strict liability,
37// or tort (including negligence or otherwise) arising in any way out of
38// the use of this software, even if advised of the possibility of such damage.
39//
40//M*/
41
42#ifndef __OPENCV_SINUSOIDAL_PATTERN_HPP__
43#define __OPENCV_SINUSOIDAL_PATTERN_HPP__
44
45#include "opencv2/core.hpp"
46#include "opencv2/imgproc.hpp"
47#include "opencv2/structured_light/structured_light.hpp"
48#include <opencv2/phase_unwrapping.hpp>
49#include <opencv2/calib3d.hpp>
50
51namespace cv {
52namespace structured_light {
55
57enum{
58 FTP = 0,
59 PSP = 1,
60 FAPS = 2
61 };
68class CV_EXPORTS_W SinusoidalPattern : public StructuredLightPattern
69{
70public:
82 struct CV_EXPORTS_W Params
83 {
84 CV_WRAP Params();
85 CV_PROP_RW int width;
86 CV_PROP_RW int height;
87 CV_PROP_RW int nbrOfPeriods;
88 CV_PROP_RW float shiftValue;
89 CV_PROP_RW int methodId;
90 CV_PROP_RW int nbrOfPixelsBetweenMarkers;
91 CV_PROP_RW bool horizontal;
92 CV_PROP_RW bool setMarkers;
93 std::vector<Point2f> markersLocation;
94 };
100 CV_WRAP static Ptr<SinusoidalPattern> create( Ptr<SinusoidalPattern::Params> parameters =
101 makePtr<SinusoidalPattern::Params>() );
109 CV_WRAP
110 virtual void computePhaseMap( InputArrayOfArrays patternImages,
111 OutputArray wrappedPhaseMap,
112 OutputArray shadowMask = noArray(),
113 InputArray fundamental = noArray()) = 0;
121 CV_WRAP
122 virtual void unwrapPhaseMap( InputArray wrappedPhaseMap,
123 OutputArray unwrappedPhaseMap,
124 cv::Size camSize,
125 InputArray shadowMask = noArray() ) = 0;
132 CV_WRAP
133 virtual void findProCamMatches( InputArray projUnwrappedPhaseMap, InputArray camUnwrappedPhaseMap,
134 OutputArrayOfArrays matches ) = 0;
135
142 CV_WRAP
143 virtual void computeDataModulationTerm( InputArrayOfArrays patternImages,
144 OutputArray dataModulationTerm,
145 InputArray shadowMask ) = 0;
146
147};
149}
150}
151#endif
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition: mat.hpp:295
Template class for specifying the size of an image or rectangle.
Definition: core/types.hpp:316
Class implementing Fourier transform profilometry (FTP) , phase-shifting profilometry (PSP) and Fouri...
Definition: sinusoidalpattern.hpp:69
virtual CV_WRAP void computePhaseMap(InputArrayOfArrays patternImages, OutputArray wrappedPhaseMap, OutputArray shadowMask=noArray(), InputArray fundamental=noArray())=0
Compute a wrapped phase map from sinusoidal patterns.
virtual CV_WRAP void unwrapPhaseMap(InputArray wrappedPhaseMap, OutputArray unwrappedPhaseMap, cv::Size camSize, InputArray shadowMask=noArray())=0
Unwrap the wrapped phase map to remove phase ambiguities.
virtual CV_WRAP void computeDataModulationTerm(InputArrayOfArrays patternImages, OutputArray dataModulationTerm, InputArray shadowMask)=0
compute the data modulation term.
virtual CV_WRAP void findProCamMatches(InputArray projUnwrappedPhaseMap, InputArray camUnwrappedPhaseMap, OutputArrayOfArrays matches)=0
Find correspondences between the two devices thanks to unwrapped phase maps.
Abstract base class for generating and decoding structured light patterns.
Definition: structured_light/structured_light.hpp:62
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75
Definition: cvstd_wrapper.hpp:74
Parameters of SinusoidalPattern constructor
Definition: sinusoidalpattern.hpp:83