seantronsen / pvt

GNU General Public License v3.0
0 stars 0 forks source link

Feature: ImageView on hover, display hovered pixel coordinate and value for uint8 images (RGB or grayscale) #25

Open seantrons opened 5 months ago

seantrons commented 5 months ago

Another feature available in the Qt version of OpenCV's viewer (available only for Linux users for the most part), is the ability to see which pixel the mouse is hovering over. The information is typically displayed in the corner of the window in the form of x,y coordinates and intensity values (single for grayscale and a labeled triplet for RGB).

It's another feature that would be awesome to have so it can be used cross-platform.

seantrons commented 5 months ago

Though I am somewhat concerned on how this can be achieved rapidly in a language like python. Depending on compatibility with projects like numba or cython, we may need to shelve this until later on when there's more time to work on an FFI interface with a faster language like CPP or Rust.