From 72494577714449661c72dc16e4307e39cadc2432 Mon Sep 17 00:00:00 2001 From: NCBee Date: Sat, 23 Feb 2013 10:28:24 -0500 Subject: [PATCH] Update doc/tutorials/core/adding_images/adding_images.rst Quick fix for: http://code.opencv.org/issues/2803 --- doc/tutorials/core/adding_images/adding_images.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/tutorials/core/adding_images/adding_images.rst b/doc/tutorials/core/adding_images/adding_images.rst index 2df40c2701..13e4063aa9 100644 --- a/doc/tutorials/core/adding_images/adding_images.rst +++ b/doc/tutorials/core/adding_images/adding_images.rst @@ -53,8 +53,8 @@ As usual, after the not-so-lengthy explanation, let's go to the code: std::cout<<"* Enter alpha [0-1]: "; std::cin>>input; - /// We use the alpha provided by the user iff it is between 0 and 1 - if( alpha >= 0 && alpha <= 1 ) + /// We use the alpha provided by the user if it is between 0 and 1 + if( input >= 0.0 && input <= 1.0 ) { alpha = input; } /// Read image ( same size, same type ) -- GitLab