Open ianhi opened 4 years ago
Should allow for BF and spectrum arrays to have different XY dimensions so long as a transform is provided between them
actuallt the hyperspy version isn't exactly the same as what's proposed here. I think that for them the plot that you click on is always made out of the spectra. there's no allowance for BF images
I think that this should follow in the footsteps of the scatter_selector
introduced in #141 and there should be a image_position_click
widget or soemthing with a more meanigful name. It could also have a transform argument that allows for transforming the (x,y) -> (X, Y) which defaults to the unitary transform
This probably belongs elsewhere or at the very least could be built with/inpsired by https://github.com/ianhi/mpl-point-clicker
Problem
It's annoying to look at hyperspectral raman images.
Proposed Solution
A la heatmap slicer two subplots
left subplot is an array chosen by the user (i.e. a bright field image) or fallback to the first slice of the spectrum
clicking on the image will populate the right subplot with the full spectrum at clicked point
there should be two radii associated with clicking:
right click to remove points
Additional context
hyperspy has essentially exactly the above already: http://hyperspy.org/hyperspy-doc/current/user_guide/visualisation.html#multidimensional-spectral-data
I think the argument for adding it here is that this could be useful to people outside of hyperspectral imaging. It also feels a bit more transparent to me to work with numpy arrays than have to learn another libary. idk though maybe this isn't worth it