removed build error
authorsiddharth <siddharthkherada27@gmail.com>
Fri, 11 Apr 2014 23:04:41 +0000 (04:34 +0530)
committersiddharth <siddharthkherada27@gmail.com>
Mon, 28 Jul 2014 18:45:11 +0000 (00:15 +0530)
Whitespaces removed

modules/photo/doc/cloning.rst
modules/photo/doc/decolor.rst
modules/photo/src/npr.hpp
samples/cpp/tutorial_code/photo/decolorization/decolor.cpp

index 6124717..0965d3a 100644 (file)
@@ -95,4 +95,3 @@ region, giving its contents a flat aspect. Here Canny Edge Detector is used.
 The algorithm assumes that the color of the source image is close to that of the destination. This assumption means that when the colors don't match, the source image color gets tinted toward the color of the destination image.
 
 .. [PM03] Patrick Perez, Michel Gangnet, Andrew Blake, "Poisson image editing", ACM Transactions on Graphics (SIGGRAPH), 2003.
-      
index 71edfe5..69bf0d5 100644 (file)
@@ -10,7 +10,7 @@ Transforms a color image to a grayscale image. It is a basic tool in digital pri
 
 .. ocv:function:: void decolor( InputArray src, OutputArray grayscale, OutputArray color_boost )
 
-    :param src: Input 8-bit 3-channel image. 
+    :param src: Input 8-bit 3-channel image.
 
     :param grayscale: Output 8-bit 1-channel image.
 
index 4663780..2ff1985 100644 (file)
@@ -192,7 +192,7 @@ void Domain_Filter::compute_Rfilter(Mat &output, Mat &hz, float sigma_h)
         {
             for(int c = 0; c<channel; c++)
             {
-                temp.at<float>(i,j*channel+c) = temp.at<float>(i,j*channel+c) + 
+                temp.at<float>(i,j*channel+c) = temp.at<float>(i,j*channel+c) +
                     (temp.at<float>(i,(j-1)*channel+c) - temp.at<float>(i,j*channel+c)) * V.at<float>(i,j);
             }
         }
index 964ef2c..067bad1 100644 (file)
@@ -6,6 +6,9 @@
 *
 * This tutorial demonstrates how to use OpenCV Decolorization Module.
 *
+* Input:
+* Color Image
+*
 * Output:
 * 1) Grayscale image
 * 2) Color boost image
@@ -23,6 +26,7 @@ using namespace cv;
 
 int main(int argc, char *argv[])
 {
+    CV_Assert(argc == 2);
     Mat I;
     I = imread(argv[1]);