From fc98b871b955e40c0b3d06d3fff99d2ec03e1cfd Mon Sep 17 00:00:00 2001 From: RobertaRavanelli Date: Tue, 25 Aug 2015 12:04:18 +0200 Subject: [PATCH] Moved a cout message to avoid an error about the comunication of number of images to project --- modules/structured_light/samples/cap_pattern.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/structured_light/samples/cap_pattern.cpp b/modules/structured_light/samples/cap_pattern.cpp index efc9bb2e6..a3bf67115 100644 --- a/modules/structured_light/samples/cap_pattern.cpp +++ b/modules/structured_light/samples/cap_pattern.cpp @@ -84,6 +84,9 @@ int main( int argc, char** argv ) vector pattern; graycode->generate( pattern ); + cout << pattern.size() << " pattern images + 2 images for shadows mask computation to acquire with both cameras" + << endl; + // Generate the all-white and all-black images needed for shadows mask computation Mat white; Mat black; @@ -120,9 +123,6 @@ int main( int argc, char** argv ) return -1; } - cout << pattern.size() << " pattern images + 2 images for shadows mask computation to acquire with both cameras" - << endl; - // Turning off autofocus cap1.set( CAP_PROP_SETTINGS, 1 ); cap2.set( CAP_PROP_SETTINGS, 1 );