Skip to content

DrewLab/Surface-Vessel-FWHM-Diameter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Surface vessel diameter calculated using the full-width at half-max

This repository provides sample data and code that demonstrates how to calculate fluctuations in vessel diameter from the .TIF stacks acquired during two-photon excitation microscopy.

Instructions

Analysis code is self-contained, with all necessary functions nested in the script. The user places an ROI along a short segment of the vessel along which the diameter is measured. The edges of the ROI parallel to the midline of the vessel need to be far enough away from the vessel such that when the vessel dilates, the vessel does not completely fill the ROI. No other fluorescent objects other than the vessel segment to be measured should be in this ROI.

After this, the user positions a line parallel to the long axis of the vessel. The image stack is motion corrected (Manuel Guizar-Sicairos, Samuel T. Thurman, and James R. Fienup, "Efficient subpixel image registration algorithms", Opt. Lett. 33,156-158 (2008)). This motion correction can remove small x-y axis motion, but cannot deal with z (out of plane) motion.

Region of interest (ROI) box and parallel line segment 5X speed movie output

A single Radon tranform along the angle of the vessel's long axis is performed for each motion-corrected frame. This is equvalent to rotating the the ROI such that the long axis of the vessel is vertical, and then averaging the intensity of the pixels along each of the columns. The result of this operation is a vector for each frame that is the average intensity distribution along an axis perpendicular to the vessel's long axis. A full-width at half-maximum (FWHM) for this intensity distribution is calculated for each frame of the image stack, resulting in a vector of diameter measurements.

Using a short segment of vessel to calculate the diameter produces less noisy diameter measures than ones using only a single line scan. However, the segment selected should be of constant diameter and fluorescence intesity, otherwise the FWHM will give erroneous output.

When the script completes, it will output a movie of the .TIF stack (sped up 5X) and a figure of the resulting diameter caluclation obtained from the inputed ROI and parallel line segment.

FWHM results from sample data and shown ROI

Example of code prompts/inputs (Command Window)

The sampled data is an artery and the objective used was the Nikon CFI75 LWD 16X, [2]

Select a single .tif stack from the current directory

Loading: 190426_008.TIF...

Which objective was used during this stack? Objective IDs:
      
[1] Olympus UMPlanFL N 10X*
      [2] Nikon CFI75 LWD 16X
      [3] Olympus UMPlanFL N 20X (0.50 NA)
      [4] Olympus UMPlanFL N 20X (1.00 NA)
      [5] Olympus UMPlanFL N 40X
Enter objective ID number [1 2 3 4 5]: 2

Is the vessel an artery (A), vein (V), or dural (D) vessel?: A

Is the diameter of the box ok? (y/n): y

Is the line along the diameter axis ok? (y/n): y

Analyzing vessel projections from defined polygons...

Generating movie (sped-up 5X)...

Diameter calculation for surface vessel example - complete.

If you utilize aspects of this code, please cite: Huo BX, Gao YR, Drew PJ, (2015) Quantitative separation of arterial and venous cerebral blood volume increases during voluntary locomotion, NeuroImage, 105:369–379, doi: 10.1016/j.neuroimage.2014.10.030

Acknowledgements

  • Written by Kevin L. Turner and Patrick J. Drew
  • Previous code contributions by Yurong Gao and Christina Echagarruga

https://sites.esm.psu.edu/~pjd17/Drew_Lab/Drew_Lab.html

About

Tracks diameter changes of surface vessels from two-photon microscopy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • MATLAB 100.0%