This code segments, detects and extracts the spines from three dimensional in vivo images of dendrites with spines.
Clone or downlaod the repository and run AutomatedSpineExtractionModule.m to get the segmented image, centerline of the image, detected endpoints, roughly extracted spines and spine count.
If you use our code for research, please cite our paper P. K. Singh, P. Hernandez-Herrera, D. Labate, M. Papadakis, Automated 3-D Detection of Dendritic Spines from In Vivo Two-Photon Image Stacks, Neuroinformatics (2017). https://doi.org/10.1007/s12021-017-9332-2
Download and install ParaView ParaView. To visualize the 3D image ("Test_Volume" in the directory "Data"):
- Open .mhd ("Test_Volume.mhd") file.
- Press "Apply".
- From the drop-down of "Representation", choose "Volume".
To visualize any binary image generated by the code (for example, the segmentation of the image, or extracted spines):
- Open the .mhd file(s)
- Press "Apply".
- From the "Filters" tab, use "Alphabetical" list and select "Iso Volume".
- In the section "Input Scalars", change "Minimum" to something greater than zero and less than 1.
- Press "Apply".
The segmentation code was developed by Paul Hernandez Herrera and the centerline generation code was developed by David Jiménez.
Thanks to Sajo M and Morishita H, Department of Psychiatry, Department of Neuroscience, Department of Ophthalmology, Mindich Child Health and Development Institute, and Friedman Brain Institute, Icahn School of Medicine at Mount Sinai, New York.