Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
software:labview [2016/02/08 19:46] Abhishek Kumar |
software:labview [2016/02/14 13:41] (current) Abhishek Kumar |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Labview | ====== Labview | ||
- | LabView implementations have been created by the Hari Shroff lab and used by collaborators. | + | LabView implementations have been created by the Hari Shroff lab and used by collaborators. |
In general LabView is recommended only for groups doing significant custom software development within an existing LabView framework. | In general LabView is recommended only for groups doing significant custom software development within an existing LabView framework. | ||
- | |||
- | |||
- | * {{indexmenu>: | ||
- | |||
- | **{{indexmenu>: | ||
| | ||
Line 15: | Line 10: | ||
We previously described a similar program for controlling diSPIM in ‘conventional’ image acquisition mode (synchronously sweeping the light sheet and detection focal plane through the sample)2; the LV programs described below use the same hardware. | We previously described a similar program for controlling diSPIM in ‘conventional’ image acquisition mode (synchronously sweeping the light sheet and detection focal plane through the sample)2; the LV programs described below use the same hardware. | ||
- | **A. Schematic of example waveforms provided to the diSPIM for hardware control:** Waveforms are generated by the DAQ and provided to the various diSPIM hardware components. See the MBL Biological Bulletin paper for more information. | + | **A. Schematic of example waveforms provided to the diSPIM for hardware control:** Waveforms are generated by the DAQ and provided to the various diSPIM hardware components. See the MBL Biological Bulletin paper for more information. |
+ | |||
+ | {{: | ||
+ | |||
The ‘Y-Galvo Amplitude’, | The ‘Y-Galvo Amplitude’, | ||
+ | |||
**B. Stage-scan LV front panel details: | **B. Stage-scan LV front panel details: | ||
+ | |||
+ | {{: | ||
+ | |||
1. **Control Mode Selection: | 1. **Control Mode Selection: | ||
**DiSPIM Module:** Used to move the diSPIM module housing the two diSPIM objectives. User can define the distance (in mm) and LV provides a serial command to the TIGER Controller, moving the LS-50 motorized stage to the specified position. | **DiSPIM Module:** Used to move the diSPIM module housing the two diSPIM objectives. User can define the distance (in mm) and LV provides a serial command to the TIGER Controller, moving the LS-50 motorized stage to the specified position. | ||
Line 24: | Line 26: | ||
**Dual Color Image Acquisition: | **Dual Color Image Acquisition: | ||
**Parameter Adjustment: | **Parameter Adjustment: | ||
+ | |||
2. **Time Delay:** Extra, ‘pre-acquisition’ time delay is provided to the X-stage for acceleration. This way, when image acquisition starts, the stage is moving with a constant speed. A typical value is 10 um. | 2. **Time Delay:** Extra, ‘pre-acquisition’ time delay is provided to the X-stage for acceleration. This way, when image acquisition starts, the stage is moving with a constant speed. A typical value is 10 um. | ||
- | -**Various Imaging Parameters: | ||
- | Time/Plane: For 500x500 pixels region of interest (ROI), the minimum is 5 ms. | ||
- | Step size: in um | ||
- | # of Planes: i.e. the number of planes per volume | ||
- | Lightsheet width: In um, and depends on the camera ROI. | ||
- | Speed: Defines the speed of motorized stage and is dependent on the timing and step size. We typically use 0.1 mm/s for single color, 1 um z’ step size (equivalent to 0.7 um z step size). | ||
- | Number of time points: The number of volumetric time points in the image acquisition. | ||
- | Delay b/w time points: In seconds | ||
- | Start Position: The X-coordinate of the sample being imaged. Once the sample is positioned using the bottom camera, the X-coordinate of the stage can be determined. | ||
- | Laser Intensity (488 nm): arbitrary units | ||
- | Laser Intensity (561 nm): arbitrary units | ||
- | -**Camera ROI Settings:** Set ROI depending on sample size being imaged. | ||
- | -**File Path and File Name:** The LV Program saves the acquired images in HCIMAGE format (Hamamatsu proprietary format) and then converts the data into TIFF format. The file path for both formats needs to be provided. LV creates sub directories named SPIMA and SPIMB in the parent directory. TIFF conversion can be performed during acquisition or after, using the TIFF conversion sub VI. The file name needs to be changed for each run. For time series, the file name is appended with the time point number. | ||
- | -**Galvo and Piezo Offsets: | ||
- | **SPIMA & B Z-galvo:** Used to position the lightsheet so that it is well synchronized with the detection piezo. Voltage can be set between 0-4 V. | ||
- | **SPIMA & B Y-galvo:** Defines the laser scan start position on the camera ROI (range 0-4 V). | ||
- | **SPIMA & B Piezo:** Used to position the imaging objective and excitation beam at the appropriate position (range 0-10 V). | ||
+ | 3. **Various Imaging Parameters: | ||
- | ======ImageJ Macro ========== | + | **Time/ |
- | Min Guo and Hari Shroff, February 2016 | + | **Step size:** in um |
+ | **# of Planes:** i.e. the number of planes per volume | ||
+ | **Lightsheet width:** In um, and depends on the camera ROI. | ||
+ | **Speed:** Defines the speed of motorized stage and is dependent on the timing and step size. We typically use 0.1 mm/s for single color, 1 um z’ step size (equivalent to 0.7 um z step size). | ||
+ | **Number of time points:** The number of volumetric time points in the image acquisition. | ||
+ | **Delay b/w time points:** In seconds | ||
+ | **Start Position:** The X-coordinate of the sample being imaged. Once the sample is positioned using the bottom camera, the X-coordinate of the stage can be determined. | ||
+ | **Laser Intensity (488 nm):** arbitrary units | ||
+ | **Laser Intensity (561 nm):** arbitrary units | ||
- | Tutorial for using the image shifting macro, for diSPIM data acquired in stage-scanning mode | + | 4. **Camera ROI Settings:** Set ROI depending on sample size being imaged. |
- | The image shifting macro preprocesses diSPIM data acquired in stage-scanning mode before further analysis (e.g. deconvolution, | + | 5. **File Path and File Name:** The LV Program saves the acquired images |
- | The macro enables users to process both single-view (iSPIM) images and dual-view (diSPIM) images. | + | |
- | + | ||
- | where are the coordinates in conventional mode and the corresponding coordinates in stage-scanning mode. To perform the inverse transformation, | + | |
- | To save storage as well as speed deconvolution after image-shifting, | + | |
- | The macro should work within Fiji that has ImageJ version 1.48c or later on a PC with the Windows 7 Professional operation system. We have also used it with good results within Fiji: Life-Line version, 2013 July 15, Windows 7 (64-bit). | + | |
- | + | ||
- | **Running the ImShifting macro:** | + | |
- | + | ||
- | **1. Run ImShifting.ijm within Fiji | + | |
- | ** Download Fiji at http:// | + | |
- | Open the macro with in Fiji and run it. Two windows will pop up: one dialog window for setting parameters and an additional log window (Fig. 1). | + | |
- | + | ||
- | **2. Set parameters** | + | |
- | Users need to specify all the parameters shown in the dialog window | + | |
- | + | ||
- | **Set View:** choose view(s) to process. | + | |
- | The default set is “Dual View” | + | |
- | + | ||
- | **Set Time Points:** set the time range of the image volumes and the test image for selecting Region of Interest (ROI). | + | |
- | If Test Time < Start Time or Test Time > End Time, the Start Time point is implicitly set as the Test Time point. | + | |
- | + | ||
- | **Set Slice Step Type:** two options are provided, and parameters depend on the particular diSPIM stage motion. | + | |
- | + | ||
- | • If the “Pixels” radio button is selected, the shifting step for each slice is specified by the image pixels: | + | |
- | • Otherwise if the “Distance” radio button is selected, the shifting step of each slice is specified by both the stage step interval and the image pixel size: ; | + | |
- | + | ||
- | **Set Shifting Direction: | + | |
- | + | ||
- | **Set File Naming Convention: | + | |
- | + | ||
- | **Specify Images Name:** provide images name prefix. | + | |
- | • If image data is saved in tiff stack format, the tiff stack name prefix should be set. For example, if the stacks’ names are SPIMA_1.tiff, | + | |
- | • If image sequences are used as input, then image sequence folder name prefix should be set. For example, if sequence folder names are SPIMA1, SPIMA2, SPIMA… , then “SPIMA” should be set as the name prefix; | + | |
- | + | ||
- | **Background Subtraction: | + | |
- | + | ||
- | **3. Specify folder | + | |
- | After pressing the “OK” button of the dialog window, users need to set the directories for input and output: | + | |
- | • If “Default” naming convention is selected, users need to specify the main input folder directory (Fig. 5). For example, In the default naming system, if SPIMA and SPIMB are set as the input directories, | + | |
- | • If “Custom” naming convention is selected, users need to specify all the input/ | + | |
- | + | ||
- | **4. Background subtraction** | + | |
- | Five options are provided for background subtraction: | + | |
- | **none subtraction: | + | |
- | **background mean value: | + | |
- | **background images:** the program will subtract the background, based on background images provided by users: | + | |
- | • Open a background image for A View, then press “OK” button (Fig. 7 left); | + | |
- | • Open a background image for B View, then press “OK” button (Fig 7 right); | + | |
- | + | ||
- | **manually select background area:** users are guided to select background areas of raw images, then subtraction is applied based on these selections. | + | |
- | • Open a raw image of A View and select an area as background (Fig. 8); | + | |
- | • Open a raw image of B View and select an area as background. | + | |
- | + | ||
- | **automatically background subtraction: | + | |
- | + | ||
- | **5. Select Region of Interest (ROI)** | + | |
- | The program pops up four image windows, and the selections are based on the two projection images. | + | |
- | + | ||
- | • 2 ROIs will be automatically generated | + | |
- | • The ROIs will be cropped and saved as outputs | + | |
- | • If users want to modify the selections, please keep them same size for both views (important for subsequent deconvolution) | + | |
- | • When modifying, use “ctrl+shift+E” to copy one selection to other view so that you can keep them the same size. (click window frame of the selection to copy from click window frame of the selection to copy to”ctrl+shift+E”move the selection to cover the ROI) | + | |
+ | 6. **Galvo and Piezo Offsets: | ||
+ | **SPIMA & B Z-galvo:** Used to position the lightsheet so that it is well synchronized with the detection piezo. Voltage can be set between 0-4 V. | ||
+ | **SPIMA & B Y-galvo:** Defines the laser scan start position on the camera ROI (range 0-4 V). | ||
+ | **SPIMA & B Piezo:** Used to position the imaging objective and excitation beam at the appropriate position (range 0-10 V). | ||
- | **6. Select slice range** | + | **C. Stage-scan with Slit-scan LV front panel details:** |
- | We don’t input the slice range directly, but determine | + | All controls in this mode are the same as described above, except |
+ | |||
+ | {{: | ||
- | **7. Batch Processing** | + | 1. **Light Sheet Width:** Set to zero in this mode. |
- | After selecting the slice range, background subtraction and shifting are batched, as shown in the log window (Fig. 11). | + | |
+ | 2. **Exposure Time (us):** A user defined parameter for slit scan. Please look at the Hamamatsu Flash 4.0 V2 camera manual for more details about lightsheet mode, ROI, readout direction and timing information. | ||
+ | **Readout Time (us):** The readout time of a column of pixels for the Flash 4.0 Hamamatsu camera. This can be set in multiples of 10 us. | ||
+ | Slit width is defined as the exposure time divided by the readout time. | ||
+ | 3. **SPIMA and B Amplitude for Single and Dual Color:** This control is given to set the amplitude of each arm individually. This is a critical parameter for proper synchronization of rolling shutter with the laser scan (y-scan). **SPIMA and B Camera Delay:** This sets the camera trigger delay with respect to the Y-galvo scan. This is in % of total time per plane for two views. Typical values are ~2.4-3.2 ms delay assuming 8 ms/plane for each view. This is ~15-20 % delay of the total time/plane (16 ms) for two views. | ||
+ | | ||
+ | **D. Examples showing the effect of Y-offset, Y-Amplitude and Camera Trigger Delay in slit scan mode.** | ||
+ | See also the waveform schematic in section A. Parameters are optimized using dye solution (here, fluorescein). The bright line in the center (see images below) is the edge of the coverslip, the right side of each image shows the dye above the coverslip, and the left side shows the region below the coverslip. At optimum parameter settings, the laser paints the pixels uniformly. Small deviations from the optimum parameter values can significantly affect the quality of imaging. Top row shows the effect of changing the Y-galvo offset. Changing the offset value (+/-) 0.07 V from the optimum, results in a rolling shutter readout that is completely out of sync with the laser scan, and fluorescence signal and uniformity is much reduced. Changing the amplitude (middle row) by .07 V also adversely affects the synchronization (middle row). Similarly, small changes in the camera trigger delay offset also adversely affect synchronization (bottom row). | ||
+ | {{: | ||