From 0833a78c02496cf2d521aa4bc0dd3292052d8b84 Mon Sep 17 00:00:00 2001 From: Vitaly Tuzov Date: Tue, 3 Apr 2018 18:32:33 +0300 Subject: [PATCH] Make getProjPixel output value available in python bindings --- .../include/opencv2/structured_light/graycodepattern.hpp | 2 +- modules/structured_light/src/graycodepattern.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/structured_light/include/opencv2/structured_light/graycodepattern.hpp b/modules/structured_light/include/opencv2/structured_light/graycodepattern.hpp index ca228acdf..f1d6331a4 100644 --- a/modules/structured_light/include/opencv2/structured_light/graycodepattern.hpp +++ b/modules/structured_light/include/opencv2/structured_light/graycodepattern.hpp @@ -140,7 +140,7 @@ class CV_EXPORTS_W GrayCodePattern : public StructuredLightPattern * @param projPix Projector's pixel corresponding to the camera's pixel: projPix.x and projPix.y are the image coordinates of the projector's pixel corresponding to the pixel being decoded in a camera. */ CV_WRAP - virtual bool getProjPixel( InputArrayOfArrays patternImages, int x, int y, Point &projPix ) const = 0; + virtual bool getProjPixel( InputArrayOfArrays patternImages, int x, int y, CV_OUT Point &projPix ) const = 0; }; //! @} diff --git a/modules/structured_light/src/graycodepattern.cpp b/modules/structured_light/src/graycodepattern.cpp index a6a8288c3..315a96fbc 100644 --- a/modules/structured_light/src/graycodepattern.cpp +++ b/modules/structured_light/src/graycodepattern.cpp @@ -72,7 +72,7 @@ class CV_EXPORTS_W GrayCodePattern_Impl CV_FINAL : public GrayCodePattern void getImagesForShadowMasks( InputOutputArray blackImage, InputOutputArray whiteImage ) const CV_OVERRIDE; // For a (x,y) pixel of the camera returns the corresponding projector pixel - bool getProjPixel(InputArrayOfArrays patternImages, int x, int y, Point &projPix) const CV_OVERRIDE; + bool getProjPixel(InputArrayOfArrays patternImages, int x, int y, CV_OUT Point &projPix) const CV_OVERRIDE; private: // Parameters