NeuroSeg is an open-source MATLAB program used for automatic detecting and segmenting cells in two-photon calcium imaging data. This toolbox is demonstrated in the paper NeuroSeg: automated cell detection and segmentation for in vivo two-photon Ca2+ imaging data (https://doi.org/10.1007/s00429-017-1545-5).
- using the "Set Path" dialog in MATLAB;
- running the “addpath” function from your command window or startup script.
The “Load Image” function is to load an image file (such as *.tiff file), and the “Load Video” function is to load a video file (e.g., *.avi file).
The “Min sigma” is the value of the minim radius of cells; the “Max sigma” is the value of the maximum radius of cells; the “Min area” is the minimum area for selecting cells above a defined area.
The “Seed Detection” function is to detect the location of cells, and the results are marked with red plus symbols.
The “Segmentation” function is to segment the boundaries of cells, the results are shown as red contours.
The “Draw ROI” function is to add a freehand ROI, and the “Add Circle” function is to add a circle ROI with the defined radius (“Radius” parameter). The “Delete ROI” function is to remove the unwanted ROI, and it can be done by moving the cursor in the region of the ROI and then clicking.
The “Plot DF/F” function is to calculate the relative calcium signals (ΔF/F) and plot the calcium traces extracted from each ROI. The “Save DF/F” function is to save calcium traces (ΔF/F) as a mat file. You can set the values of the frame rate (Hz) and the display offset for the ROIs before you plot the calcium traces.
The “Save ROI & Image” function is to save the information of the ROIs and the image into a mat file, and the “Load ROI & Image” is to load the mat file and show the ROIs in the image.
Click the index number of ROI in the “ROI no.” listbox, and then the contour of the ROI will flicker in green one time. So the specific ROI can be located.
*The software was tested on MATLAB R2014a version.
Jiangheng Guan (735341369@qq.com)
Xiang Liao (xiang.liao@aliyun.com)