From 88d05a89d46f18a908ea9869736fe70a59ea43d9 Mon Sep 17 00:00:00 2001 From: siddharth Date: Sat, 12 Apr 2014 04:34:41 +0530 Subject: [PATCH] removed build error Whitespaces removed --- modules/photo/doc/cloning.rst | 1 - modules/photo/doc/decolor.rst | 2 +- modules/photo/src/npr.hpp | 2 +- samples/cpp/tutorial_code/photo/decolorization/decolor.cpp | 4 ++++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/photo/doc/cloning.rst b/modules/photo/doc/cloning.rst index 612471757b..0965d3a72f 100644 --- a/modules/photo/doc/cloning.rst +++ b/modules/photo/doc/cloning.rst @@ -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. - diff --git a/modules/photo/doc/decolor.rst b/modules/photo/doc/decolor.rst index 71edfe5cc1..69bf0d590b 100644 --- a/modules/photo/doc/decolor.rst +++ b/modules/photo/doc/decolor.rst @@ -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. diff --git a/modules/photo/src/npr.hpp b/modules/photo/src/npr.hpp index 4663780688..2ff1985aca 100644 --- a/modules/photo/src/npr.hpp +++ b/modules/photo/src/npr.hpp @@ -192,7 +192,7 @@ void Domain_Filter::compute_Rfilter(Mat &output, Mat &hz, float sigma_h) { for(int c = 0; c(i,j*channel+c) = temp.at(i,j*channel+c) + + temp.at(i,j*channel+c) = temp.at(i,j*channel+c) + (temp.at(i,(j-1)*channel+c) - temp.at(i,j*channel+c)) * V.at(i,j); } } diff --git a/samples/cpp/tutorial_code/photo/decolorization/decolor.cpp b/samples/cpp/tutorial_code/photo/decolorization/decolor.cpp index 964ef2ce8b..067bad1178 100644 --- a/samples/cpp/tutorial_code/photo/decolorization/decolor.cpp +++ b/samples/cpp/tutorial_code/photo/decolorization/decolor.cpp @@ -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]);