Commit 620c6994 authored by Andrey Kamaev's avatar Andrey Kamaev Committed by OpenCV Buildbot

Merge pull request #538 from NCBee:patch-2

parents cfd019e2 72494577
...@@ -53,8 +53,8 @@ As usual, after the not-so-lengthy explanation, let's go to the code: ...@@ -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::cout<<"* Enter alpha [0-1]: ";
std::cin>>input; std::cin>>input;
/// We use the alpha provided by the user iff it is between 0 and 1 /// We use the alpha provided by the user if it is between 0 and 1
if( alpha >= 0 && alpha <= 1 ) if( input >= 0.0 && input <= 1.0 )
{ alpha = input; } { alpha = input; }
/// Read image ( same size, same type ) /// Read image ( same size, same type )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment