Axonal tracers such as biotinylated dextran amine (BDA) and Phaseolus vulgaris leucoagglutinin (Pha-L) yield highly specific visualization of neural connections in histological sections. High-resolution section images generated by robotic microscopes or slide scanners are well suited for mapping of connections across large series of sections. Computational image analysis can be used to automate and increase the efficiency and throughput of such analyses by delivering measurements of the amount (area) and position of labeling. Building on an earlier workflow for collection and analysis of tract-tracing data (Zakiewicz et al. 2011), we here present a set of ImageJ plugins and macros that automate detection of labeling, selection of regions of interest (ROIs), noise filtering, and measurement of labeled area and centroid position in large series of microscopic images (Papp, Leergaard, Csucs, Bjaalie, in review).
Download files to the ImageJ/plugins or ImageJ/plugins/Macros directory. The zip package is organized into the right folder structure and can be extracted directly to the ImageJ directory. Processing of image series is primarily handled by the macros, available from the ImageJ menu Plugins → Macros. The NeSys Pixel Counter plugin can be used on individual images by placing the .class file into the ImageJ/plugins directory, or compiling the Java source code (.java) in the same place (Plugins → Compile and run), and thereafter running the plugin from the Plugins menu. The CDgetPrimaryChannel plugin is intended for usage together with the NeSys Labeling Detection macro and is not available from the Plugins menu.
Download the complete package: NeSys-Labeling-Detection.zip
|Plugins (ImageJ/plugins)||Macros (ImageJ/plugins/Macros)||Parameter file (ImageJ/plugins/Macros)|
After installation, the macros are available from the Plugins → Macros menu. Images to be processed are expected to be within the same folder in one of the following formats: .gif, .jpg, .jpe, .jpeg, .png, .tif, .tiff, .bmp, or .pgm.
The NeSys Labeling Detection macro uses the CDgetPrimaryChannel plugin to perform Colour Deconvolution on series of color (RGB) images using a shortened version of the plugin from G. Landini based on the method of A.C. Ruifrok. Vectors for Colour Deconvolution are expected to be acquired in advance using the original plugin and saved in the colourdeconvolution.txt file located in the Imagej/plugins/Macros folder. The parameter file is formatted according to the example provided by Benjamin Pavie (bpavie) on GitHub. Requires ImageJ version 1.39f or later.
For details on histological processing, see Zakiewicz et al. 2011.
The following processing steps are performed automatically on each image:
The NeSys Main ROI Selector macro uses the Analyze Particles command in ImageJ to identify regions of interest (ROIs) in series of binary images based on the size and circularity of continuous areas in black. Eventual holes are included. Optionally, centroid coordinates are measured for each ROI. ROIs are then combined into a common selection and all other image elements are removed. A margin for extending the outer limits of the combined selection can be specified before processing. The resulting images containing only the ROI(s) are saved in .gif format in a separate directory. Centroid coordinates are saved in Excel-compatible tab-delimited format for each image. Only binary images are processed, other file types will be ignored. Requires ImageJ version 1.35g or later.
The NeSys Median Filtering macro applies a median filter with a user-specified radius to a series of binary images. The resulting filtered images are saved in .gif format in a separate directory. Requires ImageJ version 1.35g or later. Only binary images are processed, other file types will be ignored.
The NeSys Pixel Counter macro uses the NeSys Pixel Counter plugin to record the number of black pixels in a series of (binary) images. Results are saved in Excel-compatible tab-delimited format containing the filename and the number of black pixels for each image. Requires ImageJ version 1.45o or later.
Papp EA, Leergaard TB, Csucs G, Bjaalie JG: Brain-wide mapping of axonal connections: workflow for automated detection and spatial analysis of labeling in microscopic sections. Frontiers in Neuroinformatics (2016) 10:11. doi: 10.3389/fninf.2016.00011
Ruifrok, A.C., and Johnston, D.A. (2001). Quantification of histochemical staining by color deconvolution. Anal Quant Cytol Histol 23, 291-299. PubMed
Zakiewicz, I.M., Van Dongen, Y.C., Leergaard, T.B., and Bjaalie, J.G. (2011). Workflow and atlas system for brain-wide mapping of axonal connectivity in rat. PLoS One 6, e22669. doi: 10.1371/journal.pone.0022669