https://github.com/vi/displayandpickpixel
Display picture and print coordinates on clicks
https://github.com/vi/displayandpickpixel
Last synced: about 1 year ago
JSON representation
Display picture and print coordinates on clicks
- Host: GitHub
- URL: https://github.com/vi/displayandpickpixel
- Owner: vi
- License: mit
- Created: 2013-12-30T19:32:14.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2020-12-23T18:17:36.000Z (over 5 years ago)
- Last Synced: 2025-04-15T14:13:53.430Z (about 1 year ago)
- Language: C++
- Size: 5.86 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Simple Qt application that displays picture specified on the command line and
lets you choose pixels from it. Pixel coordinates are printed to stdout.
For use in conjunction with ImageMagick or similar tools.
http://superuser.com/questions/693732/how-to-display-a-picture-and-print-pixel-coordinates-when-i-click
# Usage
$ DisplayAndPickPixel /tmp/mm.png
49,285
258,290
256,317
* **Left mouse click** - print coordinated to standard output;
* **Right mouse click** - exit the application;
* **Dragging with middleor Ctrl+left mouse button** - pan image;
* **Mouse wheel** - zooming.
# Known issues
* I don't know how to switch smooth scaling to nearest-neighbour, so zooming in
and choosing exact pixel is not convenient;
* Memory usage skyrockets and application crashes if zoomed in too much.