grabcut.py sample: Allow drawing rect from bottom/right
authorSven Wehner <wehner@informatik.uni-freiburg.de>
Mon, 10 Feb 2014 15:45:28 +0000 (16:45 +0100)
committerSven Wehner <wehner@informatik.uni-freiburg.de>
Mon, 10 Feb 2014 15:53:17 +0000 (16:53 +0100)
commitf7041bacc0095f51d36194f09b74ea179e46f12d
treebb78f5e426a0fd73be462adfbc8b10cca378547a
parent86b6c48712df872df9ebc917aaebf0f8446171f4
grabcut.py sample: Allow drawing rect from bottom/right

The grabcut sample script isn't able to create rectangles correctly that are
drawn from e.g. bottom-right to top-left.
This small commit uses four min() calls to determine the correct
top-left point of the rectangle.
It also removes some unnecessary white spaces before colons.
samples/python2/grabcut.py