Image x, y coordinate of pixel from which spectrum was displayed?
See original GitHub issueHello, is there a way to display the x/y coordinates of a pixel from which a spectrum was just displayed using imshow? When I double-click on a displayed image and a pixel spectrum is displayed in a new pop-up window, it would be great if the x/y coord was displayed so that I could then easily extract that spectrum from the cube using
spectrum1 = image.read_pixel(2225, 3801)
Now I have to use ENVI to get the pixel coordinate, or display the image in the normal backend using %matplotlib widget magic, with which x/y coords and band DN values are streamed when you move the mouse.
Thank you…
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Pixels, Coordinates, and Colors
To create a two-dimensional image, each point in the image is assigned a color. A point in 2D can be identified by a...
Read more >What is a pixel—ArcGIS Pro | Documentation
Multispectral images can be displayed as natural color and color infrared if the bands are available. Pixels represent a location on the ground....
Read more >Image Analysis — CASAdocs documentation - Read the Docs
The spatial axes can alternately contain GLON/GLAT or other coordinate systems. The spectral axis of images created in CASA is always in frequency...
Read more >Interactive pixel information of an image in Python?
So that as I move the cursor over the image, I have a continually updated display such as pixel[103,214] = 198 (for grayscale)...
Read more >Representations of spectral coordinates in FITS
or z, shifts the “pixel” coordinates of spectral features by the same amount over the whole image. This allows relative veloc- ities between...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here is sample code to extract spectra from cube using Jupyter Notebook and new mouse handler from above:
It worked!!! YOU CLICKED line displayed in notebook!!! Perfect. Great job. Many thanks.