From cf2031b146c9d972d116732af19f58806ff99121 Mon Sep 17 00:00:00 2001 From: Victor Erukhimov Date: Fri, 5 Nov 2010 11:23:42 +0000 Subject: [PATCH] Fixed a compilation problem when the DEMO_MIX_API_USE is not defined --- samples/c/image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/c/image.cpp b/samples/c/image.cpp index 8e0b3dc1b4..5f1d52015c 100644 --- a/samples/c/image.cpp +++ b/samples/c/image.cpp @@ -75,7 +75,7 @@ int main( int argc, char** argv ) // step 2) call the function; do not forget unary "&" to form pointers cvAddWeighted(&cv_planes_0, contrast_gain, &cv_noise, 1, -128 + brightness_gain, &cv_planes_0); #else - addWeighted(planes[0], constrast_gain, noise, 1, -128 + brightness_gain, planes[0]); + addWeighted(planes[0], contrast_gain, noise, 1, -128 + brightness_gain, planes[0]); #endif const double color_scale = 0.5; // Mat::convertTo() replaces cvConvertScale. One must explicitly specify the output matrix type (we keep it intact - planes[1].type())