| |
- create_same_image(in_img, zero=0)
- Creates an image of same size, depth and number of channels as input image
If zero is activated, the image content is set to 0 to avoid parasites.
---
Ex:
img = cv.LoadImage("../data/tippy.jpg", cv.CV_LOAD_IMAGE_GRAYSCALE)
copy_img = create_same_image(img, 0)
- mouse_point(img, name='Mouse Points', mode='S')
- Displays input image and waits for user click on a point of the image.
For each click, the (x, y) coordinates are retrieved.
Two modes are possible:
-Single :
The function exits automatically on first click.
Returns a list containing 1 (x,y) tuple.
-Multiple :
All clicks are saved. The function exists when the user types on keyboard
Returns containing (x,y) tuples.
---
Ex:
img = cv.LoadImage("../data/tippy.jpg", cv.CV_LOAD_IMAGE_GRAYSCALE)
mouse_points(img, name="mouse points", mode="S")
|