-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
114 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# external communication | ||
# GUI | ||
|
||
````{warning} | ||
UNDER CONSTRUCTION | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,51 @@ | ||
# Calibration | ||
|
||
````{warning} | ||
UNDER CONSTRUCTION | ||
``` | ||
___ | ||
/======/ | ||
____ // \___ | ||
| \\ // | ||
|_______|__|_// | ||
_L_____________\o | ||
__(CCCCCCCCCCCCCC)____________ | ||
The calibration mode is divided into two sections, at the top, there are | ||
three sliders that allow the user to manually set the vertical frontal galvo, the vertical lateral galvo, and | ||
the piezo. Below there are two buttons to add or remove a calibration point. And at the bottom, there is | ||
another section for activating the noise subtraction function (see the [fig](sashimi-mode_calib)). | ||
|
||
```{figure} ../images/mode_calib.png | ||
--- | ||
width: 300px | ||
name: sashimi-mode_calib | ||
--- | ||
Sashimi calibration mode GUI | ||
``` | ||
|
||
The calibration routine works as follows (see also the [schematic](sashimi-calib-flow)): | ||
|
||
- Firstly, you cover one laser beam (either the frontal or lateral). | ||
- Move the piezo into a position. | ||
- Adjust the non-covered laser beam with the corresponding vertical galvo slider until the image in the viewer is sharp enough. | ||
- Cover the other laser and adjust the non-covered laser beam with the corresponding vertical galvo slider until the image in the viewer is sharp enough. | ||
- Add the calibration point with the button. | ||
- Repeat for multiple piezo positions. | ||
|
||
```{figure} ../images/calib-flow.png | ||
--- | ||
width: 400px | ||
name: sashimi-calib-flow | ||
--- | ||
Sashimi calibration workflow | ||
``` | ||
|
||
To choose the piezo position two things are important: | ||
|
||
- it is best if the piezo position used for the calibration includes the vertical scanning range that will be set in the volumetric mode | ||
- the minimum number of calibration points is three, but the more are present the more accurate the calibration | ||
will be. The software will try to fit a linear function to the points, so the more points the more accurate the | ||
estimate will be. | ||
|
||
The second section of the calibration mode allows the user to activate a noise subtraction filter. Once | ||
it is activated a pop-up will ask the user to turn off all the lights and the software will take an n number of | ||
images to compute the average sensor noise. This is then saved and subtracted | ||
to all the following acquired frames (see the [figure](sashimi-mode_calib_zoom)). | ||
|
||
```{figure} ../images/mode_calib_zoom.png | ||
--- | ||
width: 300px | ||
name: sashimi-mode_calib_zoom | ||
--- | ||
Sashimi lower part of the calibration GUI | ||
``` | ||
```` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
# Planar mode | ||
|
||
````{warning} | ||
UNDER CONSTRUCTION | ||
``` | ||
___ | ||
/======/ | ||
____ // \___ | ||
| \\ // | ||
|_______|__|_// | ||
_L_____________\o | ||
__(CCCCCCCCCCCCCC)____________ | ||
The planar mode is quite simple and has only two modifiable inputs (see the [fig](sashimi-mode_planar)): | ||
|
||
- A slider to adjust the piezo position (here the galvos will be moved off an amount which is computed using the calibration points). | ||
- A frequency selector, that allows us to set the frequency at which we desire to acquire images. | ||
|
||
```{figure} ../images/mode_planar.png | ||
--- | ||
height: 400px | ||
name: sashimi-mode_planar | ||
--- | ||
Sashimi planar mode GUI | ||
``` | ||
```` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,31 @@ | ||
# Volume mode | ||
|
||
````{warning} | ||
UNDER CONSTRUCTION | ||
``` | ||
___ | ||
/======/ | ||
____ // \___ | ||
| \\ // | ||
|_______|__|_// | ||
_L_____________\o | ||
__(CCCCCCCCCCCCCC)____________ | ||
The volumetric mode (see the [fig](sashimi-mode_vol)) is the core function of the software since it allowsfor fast volume acquisition. It can be divided into two sections, the first one allows for the input of varioussettings, while the second one displays the waveform of the piezo vs lateral galvo with the camera triggers overlaid on top. The setting that can be input into the software are the following: | ||
|
||
- A scanning range from ventral to rostral piezo position. | ||
- A volume rate per second. | ||
- The number of planes to acquire for each volume. | ||
- The number of planes to skip at the beginning of each volume. | ||
- The number of planes to skip at the end of each volume. | ||
- A button to select whether to pause the live view after the experiment. | ||
|
||
```{figure} ../images/mode_vol.png | ||
--- | ||
width: 350px | ||
name: sashimi-mode_vol | ||
--- | ||
Sashimi volume mode GUI | ||
``` | ||
|
||
To understand why it may be necessary to drop some planes at the beginning and end of the volume acquisition is important to understand how the volumetric scanner works. During the volumetric scanning the piezo keeps moving following a waveform (see the white line in the [fig](sashimi-mode_vol)), and the galvos follow it based on the calibration. During the acquisition of each frame, the piezo will not be stopping, hence it will keep moving following the waveform. During the constant incline, except for long exposures, the effects of the movement are outweighed by the increased performance. | ||
However, in some sections of the waveform, this will generate noise and unwanted artifacts which can be avoided by dropping any frame that does not line up with the linear part of the piezo waveform. This can be easily seen in the second section of the volumetric widget, where the waveform and camera frames are plotted. | ||
|
||
The camera impulses are also stretched to match the length of the exposure time, this allows the user to intuitively see whether there may be overlapping frames when volume rate and exposure time are not matched correctly (see the shaded regions in the [fig](sashimi-mode_vol2)). Moreover, in the status bar, at the bottom of the GUI, the software will automatically print the current frame-rate and highlight it in red if the current frame-rate isn’t high enough. Disregarding these warnings may impair the quality of the experiment. | ||
|
||
```{figure} ../images/volum2.png | ||
--- | ||
width: 250px | ||
name: sashimi-mode_vol2 | ||
--- | ||
Sashimi frames overlapping | ||
``` | ||
```` |