john-judge / PhotoZ_upgrades

CCD controller, data acquisition, and stimulus administration software for Dr. Meyer Jackson's hVOS voltage imaging technique. This repository tracks the transition from PhotoZ OG to NI-DAQmx and the "Little Dave" DM2K Camera
MIT License
1 stars 0 forks source link

How to visualize an overview of the diode traces array? #5

Closed john-judge closed 3 years ago

john-judge commented 3 years ago

In the original PhotoZ, it is useful to visualize the mere hundreds of diode traces as explicitly-drawn traces laid out in tiles.

When we have hundreds of thousands of diode traces, this visualization is no longer useful.

One easy enhancement is a heat-map of max amplitudes. A more difficult enhancement is a performance zoom-in inspection tool that allows us to present the explicitly-drawn out traces when there are only on the order of hundreds of traces on the screen.

Creating branch "visual" to explore these ideas.

john-judge commented 3 years ago

Added automatic binning, zoom and pan, and render only diode subarray that is in line of sight. This improves performance considerably, but there are still ways to make the visualization more useful.

Next:

From Meyer, 12/13:

" please tell me if changing the code for display allows the high resolution configuration to run without crashing.

As for the ways to visualize the window with all the traces, this is a challenging problem with the high resolution configurations. Digital binning is probably a good start. Photoz-lilJoe can do that. The area of view corresponding to one pixel is very small when a high-res config has been selected and we almost certainly do not need it during data acquisition. The high-res will be useful later in trying to identify the pixels receiving light where something biologically interesting is going on. The process of identifying those pixels is challenging and two of my students are making headway with that problem with our 80x80 camera (lilJoe).

Your other suggestions for enhancement are very interesting but I think we should revisit them later.

For now it might be best to focus on a default binning process for high-res configs and expanding the display window."