NeuronJ: Manual

Quick Links
| Download Page | Terms and Conditions |
| Launching the Program | Acknowledgments |
| Description of Tool Buttons | Release Notes |
Launching the Program
NeuronJ is launched by selecting it from the Plugins menu of ImageJ. The NeuronJ toolbar (depicted below) temporarily replaces the ImageJ toolbar until the user quits the program. Only one instance of NeuronJ is allowed to run at a time. Unlike other plugins, it does not work with the currently active image. Instead, the image to be traced must be loaded through the NeuronJ toolbar, as described below. The program can handle only one image at a time.

Description of Tool Buttons
![]() |
Erase tracings. Opens a dialog asking for confirmation to erase all tracings. Upon pressing Yes, all tracings are erased. The parameter settings, the names of tracing types and clusters, and the type colors are retained, however. |
![]() |
Load image/tracings. Opens a dialog for selecting and loading either an image (only 8-bit gray-scale and indexed color images are accepted) or previously saved tracings (including corresponding settings). NeuronJ can handle only images that have been loaded using this dialog, not images loaded with ImageJ or images already open when NeuronJ was started. Upon pressing Open, the selected image is loaded and NeuronJ "attaches" itself to the image. Every time a new image is loaded, NeuronJ automatically closes the previous image. Files containing tracings and settings saved by NeuronJ have the extension ".ndf", which stands for "NeuronJ data file". If you load an image, NeuronJ checks if there exists a data file for that image (must be a file in the same folder and with the same base name as the image file, but with extension ".ndf"). If so, it will load it automatically and display the tracings. Parameter settings, type and cluster names, and type colors contained in the file are also loaded and replace the current settings. It is also possible to load a data file manually, replacing the current tracings and settings. The first time an image is loaded using the NeuronJ toolbar, the program also checks if there are other images in the same folder (only files with extension ".tif", ".tiff", ".gif", or ".jpg" are considered). If so, the next (or previous) image in the folder can be loaded by pressing the right arrow (or left arrow) key on the keyboard (if the current image is active). This facilitates tracing multiple images. |
![]() |
Save tracings. Opens a dialog for choosing a folder and file name and saving the current tracings and algorithm parameters. The file name extension for NeuronJ data files is ".ndf", which is attached to the base file name by default. |
![]() |
Export tracings. Opens the dialog below for specifying the format for exporting tracing vertex coordinates.
Only one option can be selected at a time. Upon pressing OK, a dialog is opened for choosing a folder and file name to export the coordinates to. In the case of exporting each tracing to a separate file, the specified file will contain an overview containing the output file name for each tracing. In principle, the file name extension for export files is ".txt", which is attached to the base file name by default. With the last option, however, each tracing is exported to a segmented line selection (polyline ROI) file, with extension ".roi", which can later (after quitting NeuronJ) be loaded into an image by ImageJ. Please bare in mind, when looking at zoomed versions of line selections, that ImageJ puts the vertices in the top-left corners of the corresponding pixels, while NeuronJ draws them in the pixel centers. |
![]() |
Add tracings. Mode for adding tracings. The first time this button is pressed, the program performs some image processing operations required for the tracing algorithm. This preprocessing may take a few seconds (depending on the size of the image and the computing power). The actual tracing of neurites is initiated by moving the mouse to the beginning of a neurite of interest and clicking the (left) mouse button. The tracing algorithm subsequently computes and shows the "optimal" path from the current mouse position in the image to the clicked point. Move the mouse roughly along the neurite until the path suggested by the program starts to deviate too much from what is considered the correct tracing. Clicking the mouse button again causes the program to fix the displayed path and to start the computation of optimal paths from the newly clicked point. This procedure can be repeated until the end of the neurite is reached, which is indicated by double-clicking the mouse button or by pressing the Tab key or the Space bar on the keyboard (if the image window is active). In regions with very low contrast, the program may fail to find a correct path. In such cases, it is possible to temporarily switch to manual ("straight-line") tracing mode by pressing the Shift key on the keyboard (if the image window is active). Releasing the Shift key causes the program to return to semi-automatic tracing mode. To facilitate accurate positioning of starting points, so that they are really on a neurite rather than close to one, the program carries out a local snapping operation. This means that when moving the mouse within the image, the program quickly searches in a small window around the current mouse position for the pixel that is most likely to be on a neurite. This position is indicated by the red cross-hair cursor which is behind the real, white cross-hair cursor. The size of the search window, and thus the snapping range, can be set in the Parameters dialog. Choosing a window size of 1 x 1 pixel effectively means switching off local snapping. Temporarily disabling local snapping is accomplished by pressing the Ctrl key on the keyboard (if the image window is active). Releasing the Ctrl key causes the program to enable local snapping again. |
![]() |
Delete tracings. Mode for deleting individual tracings. Move the mouse to the tracing to be removed and the program will highlight it when it comes in its vicinity. If the Attributes dialog is open, it will show the tracing's attributes. Upon clicking the (left) mouse button the program opens a dialog asking for confirmation to remove the highlighted tracing. The tracing is removed upon pressing Yes. |
![]() |
Move vertices. Mode for moving individual tracing vertices. Move the mouse along the tracing to be modified and the program will highlight the closest vertex (control point), provided the mouse pointer is sufficiently close to one. Dragging the mouse will then move that vertex until the (left) mouse button is released. This mode enables to correct tracings afterwards, which is most accurately done by zooming in first. |
![]() |
Measure tracings. Opens the dialog below for performing measurements.
Three types of measurements can be performed: group, tracing, and vertex measurements (see the corresponding options below). The three types of measurement results are displayed in separate windows. A brief description of the options:
|
![]() |
Label tracings. Mode for setting the attributes of selected tracings. Pressing this button causes the dialog below to be opened, if it is not already open. The dialog remains opened until it is closed explicitly by pressing the dialog's Close button.
There are two ways of selecting tracings for labeling. The first is to select the desired Tracing ID from the upper choice-box. Selecting a tracing from this box causes the tracing to be highlighted in the image and the corresponding attributes to be displayed in the remaining items of the dialog. Then it is possible to change the Type, Cluster, and Label, which are stored upon pressing the OK button of the dialog. The alternative way of selecting tracings, to be used for labeling multiple tracings in one go, is to move the mouse in the image to each tracing whose attributes are to be changed. The program will highlight the tracing when the pointer comes in its vicinity. Upon clicking the (left) mouse button the program marks the highlighted tracing for labeling (it remains highlighted). Once all relevant tracings are selected, their type, cluster, and label can be specified in the dialog, and effectuated by pressing the OK button of the dialog. The possibility to specify a cluster enables one to group tracings, which may come in handy when doing measurements. In addition to the default type and cluster, there are 10 tracing types and 10 tracing clusters, the names of which can be changed in the dialog that is opened upon pressing the Rename button. In the left choice-box of that dialog (shown below), select the type or cluster to be renamed, specify the new name in the text field on the right, and press OK.
Furthermore, each tracing type is assigned a certain color with which the corresponding tracings are drawn in the image. The color assignments can be changed in the dialog that is opened upon pressing the Recolor button. In the left choice-box of that dialog (shown below), select which type to be changed, select the new color in the right choice-box, and press OK.
|
![]() |
Set parameters. Opens the dialog below for setting the program's parameters. The shown (default) values for the algorithm parameters are equal to those given in the paper describing the program.
A brief description of the parameters and options:
The parameter settings become active immediately after pressing OK. Upon pressing the Save button, the parameter settings are remembered by ImageJ and saved to its preferences file when quitting. Each time NeuronJ is launched, the program checks whether these preferences exist, and if so, it sets the parameters accordingly. |
![]() |
Make snapshot. Opens the dialog below for making a snapshot of the image and/or tracings.
Upon pressing OK, the program creates a new RGB-color image showing a copy of the image (if requested) with the tracings (if requested) drawn into the image. This enables one to make a "hardcopy" of the image and the tracings, which can be stored using ImageJ > File > Save As. |
![]() |
Zoom in/out. Mode for enlarging or reducing the size of the displayed image and tracings. This functionality is based on ImageJ's zooming routines, which implies, among other things, that zooming is limited to 3200%. It is also possible to zoom in or out by pressing the + (plus) or - (minus) key on the keyboard (if the image window is active). |
![]() |
Scroll canvas. Mode for scrolling the image canvas containing the image and tracings. This functionality enables one to shift the field of view for zooming levels of 200% and higher. |
![]() |
Open online manual. Opens the default internet browser showing this online manual. |
![]() |
Quit NeuronJ. Opens a dialog asking for confirmation to quit NeuronJ. Upon pressing Yes, the program offers the possibility to save the last changes pertaining to the current image (if any), after which the current image is closed, the original toolbar restored, and NeuronJ shut down. |





















