Added small fix when circles are not detected
authorAleksandar Atanasov <redbaronqueen@gmail.com>
Sun, 12 Jun 2016 10:54:16 +0000 (12:54 +0200)
committerGitHub <noreply@github.com>
Sun, 12 Jun 2016 10:54:16 +0000 (12:54 +0200)
commitc5bbc0353c1daadae8d953baf2940b146cd87185
tree7a71baa5f68bd5a905042119e0a9b78042f181d2
parent25e2e8aa3c22ddbad5a2006ffb654ec28827cb30
Added small fix when circles are not detected

I noticed that I missed the fact that `cimg` is used in the second `imshow()` call. Changed the scope of the second function call to be within the if-statement. Otherwise in cases where have not been detected the second `imshow()` will attempt to use `cimg` which will be empty leading to an error.
samples/python/houghcircles.py