Skip to content

Commit 7878404

Browse files
committed
Merge pull request opencv#8249 from vskarlsruhe:patch-1
2 parents 2570a5a + 56cedfc commit 7878404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/cpp/tutorial_code/core/AddingImages/AddingImages.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ int main( void )
2727
std::cin>>input;
2828

2929
// We use the alpha provided by the user if it is between 0 and 1
30-
if( alpha >= 0 && alpha <= 1 )
30+
if( input >= 0 && input <= 1 )
3131
{ alpha = input; }
3232

3333
//![load]

0 commit comments

Comments
 (0)