Update AddingImages.cpp
authorvskarlsruhe <valentinschild@gmail.com>
Thu, 23 Feb 2017 10:43:30 +0000 (11:43 +0100)
committerGitHub <noreply@github.com>
Thu, 23 Feb 2017 10:43:30 +0000 (11:43 +0100)
commit56cedfc4d218313cf0071ce07624525c66b69140
tree8944cf033a233877263af9ea7a6ef6ca27505d14
parentee9c0f5f9c2cde5841ea2931402b3148b67029bb
Update AddingImages.cpp

If-condition was always true (alpha = 0.5 is set in Line 19).
Now the user input is checked to be between 0 and 1.
This is correct in the tutorial code for OpenCV 2.4.
samples/cpp/tutorial_code/core/AddingImages/AddingImages.cpp