Merge pull request #2382 from ilya-lavrenov:tapi_nlmeans
authorAndrey Pavlenko <andrey.pavlenko@itseez.com>
Thu, 13 Mar 2014 12:48:38 +0000 (16:48 +0400)
committerOpenCV Buildbot <buildbot@opencv.org>
Thu, 13 Mar 2014 12:48:38 +0000 (16:48 +0400)
1  2 
modules/photo/src/denoising.cpp

@@@ -133,14 -142,14 +142,14 @@@ static void fastNlMeansDenoisingMultiCh
      {
          CV_Error(Error::StsBadArg,
              "imgToDenoiseIndex and temporalWindowSize "
 -            "should be choosen corresponding srcImgs size!");
 +            "should be chosen corresponding srcImgs size!");
      }
  
-     for (int i = 1; i < src_imgs_size; i++) {
-         if (srcImgs[0].size() != srcImgs[i].size() || srcImgs[0].type() != srcImgs[i].type()) {
+     for (int i = 1; i < src_imgs_size; i++)
+         if (srcImgs[0].size() != srcImgs[i].size() || srcImgs[0].type() != srcImgs[i].type())
+         {
              CV_Error(Error::StsBadArg, "Input images should have the same size and type!");
          }
-     }
  }
  
  void cv::fastNlMeansDenoisingMulti( InputArrayOfArrays _srcImgs, OutputArray _dst,