microPublication

Get Your Data Out, Be Cited

  • About
    • Editorial Policies
      • Editorial Staff
      • Editorial Board
      • Criteria For Publication
      • Publishing Information
      • Data Sharing Policy
    • For Authors
      • Preparation And Submission Of A Manuscript
      • Peer Review Process
      • Following Acceptance
      • Appeals
    • For Reviewers
    • Why micropublish?
  • Submit a microPublication
  • Journals
    • microPublication Biology
      • Editorial Board
  • microPublications
    • Biology
      • Species
        • Arabidopsis
        • C. elegans
        • D. discoideum
        • Drosophila
        • Human
        • Mouse
        • S. cerevisiae
        • S. pombe
        • Xenopus
        • Zebrafish
      • Categories
        • Phenotype Data
        • Methods
        • Expression Data
        • Genotype Data
        • Integrations
        • Genetic Screens
        • Models of Human Disease
        • Software
        • Interaction data
        • Database Updates
        • Electrophysiology Data
        • Phylogenetic Data
        • Science and Society
        • Biochemistry
  • Contact
  • More
    • Archives
    • FAQs
    • Newsletter
microPublication / Biology / ImageJ/Fiji ROI 1-click tools for...
ImageJ/Fiji ROI 1-click tools for rapid manual image annotations and measurements
Laurent SV Thomas1,2 and Jochen Gehrig1
1ACQUIFER is a division of DITABIS, Digital Biomedical Imaging Systems AG, Pforzheim, Germany
2Centre of Paediatrics and Adolescent Medicine, University Hospital Heidelberg, Germany
Correspondence to: Laurent SV Thomas (l.thomas@acquifer.de); Jochen Gehrig (j.gehrig@acquifer.de)
Figure 1: (A) The 1-click ROI toolset in the Fiji toolbar. Double-clicking the icon displays (B) the associated option window to set the ROI shapes and custom actions to execute upon clicking. (C) Using the rectangle 1-click tool for the quantification of bands intensity in electrophoresis gels. (D) Using the rectangle 1-click tool to annotate specimen position. Using a custom command (highlighted in B), the annotated regions are automatically cropped.

Description

Manual annotation of images is considered the gold standard reference for many image-analysis tasks. Compared to automated solutions, manual annotation can be time-consuming and may be less reproducible due to human bias, especially with large datasets. However, for basic tasks like outlining a region-of-interest (ROI) and performing measurements, manual annotation is often faster and more efficient than developing a custom automated pipeline.

To facilitate manual annotations of images, we developed a set of 1-click ROI tools for ImageJ/Fiji (Schindelin el al. 2012; Schneider el al. 2012) that can be configured with predefined shapes and trigger simple tasks upon a single mouse click. Using the 1-click tools, a single mouse click on the image generates a ROI of predefined shape and size, centered on the clicked pixel. If selected in the options, the ROI is added to the ImageJ ROI Manager, the features selected in the “Set Measurements” menu are measured for this region and appended to the Results table, and if a stack is used the next image in the stack can be automatically displayed. The dimensions of the ROI as well as the optional actions to be performed can be set in the option window that is accessible by double-clicking the icon of the 1-click ROI tools (Figure 1A, B). The full toolset comprises a line, circle, rectangle and ellipse tool. In addition to setting of ROI dimensions, the line, rectangle and elliptical tool can also be rotated (see options window – Figure 1B).

The 1-click ROI tools can be used for many applications, including the quantification of intensity bands in electrophoresis gel (Figure 1C) or the annotation of cells or sub-cellular compartments. The rectangular click tool can also be used to rapidly generate bounding boxes of given dimensions, for instance to generate ground-truth annotations for object-detection algorithms (Figure 1D).

The full source code is contained in a single file, entirely written in the ImageJ macro language. Therefore, it can be easily adapted for the development of custom tools. Simple customization can be achieved by providing a user-defined macro command (typically as recorded by the macro-recorder) in the option window of the tool. The custom command will be systematically executed for new ROI generated with any of the click tools. Figure 1D illustrates this option for the automated cropping of the region of interest. Thanks to the identical size of the ROI, the resulting cropped images can directly be joined into a stack and a montage after annotation. More advanced users can also modify the source code at an indicated section, to define more complex command sequences to be executed upon click.

For further automation, keyboard shortcuts associated to custom macros can also be defined in the source code. The click tools can thus be used to generate the ROI, while the custom commands are only triggered upon keystroke, e.g. when the shape and position of the ROI is satisfactory. As an example, we defined a custom shortcut (keystroke ‘1’) to generate a stack and montage from the cropped images as in Figure 1D. The example shortcut is automatically functional once the click tools have been installed and selected. The source code contains simple indications to help defining and customizing shortcuts.

Together with custom keyboard shortcuts, the ROI 1-click tools have the potential to dramatically reduce the time spent to manually annotate images, while potentially improving the reproducibility of the annotation and processing workflow. The toolset has a broad applicability: from the annotation of cells or nuclei, organs and tissues in model organisms, to regular patterns in material science.

Availability

The ROI 1-click tools can be installed in Fiji by activating the ROI 1-click tools update site.

In ImageJ, the tools can be installed by copying the macro file in the subfolder “macros/toolsets” of ImageJ.

Source code and documentation are available on GitHub (https://github.com/LauLauThom/Fiji-RoiClickTools).

A video tutorial is available on YouTube (https://youtu.be/ZPS78T_-gUs).

The gel image for figure 1C is an ImageJ sample image (credit NIH). The image for figure 1D is available on Zenodo (Gierten and Gehrig 2019).

Acknowledgments

We are grateful to Franz Schaefer (Children’s Hospital Heidelberg) for general support. We thank Jakob Gierten (Department of Pediatric Cardiology and Congenital Heart Diseases, University Hospital Heidelberg) for sharing image data.

References

Gierten J., and J. Gehrig, 2019 102 hpf medaka embryos in 96 well plate (4 embryo/well) - brightfield - 2X magnification - ACQUIFER Imaging Machine
10.5281/zenodo.2650147
Schindelin J., I. Arganda-Carreras, E. Frise, V. Kaynig, M. Longair, et al., 2012 Fiji: an open-source platform for biological-image analysis. Nature Methods 9: 676–682. https://doi.org/10.1038/nmeth.2019
10.1038/nmeth.2019 | PubMed
Schneider C. A., W. S. Rasband, and K. W. Eliceiri, 2012 NIH Image to ImageJ: 25 years of image analysis. Nature Methods 9: 671–675. https://doi.org/10.1038/nmeth.2089
10.1038/nmeth.2089 | PubMed

Funding

This project has received funding from the European Union’s Horizon 2020 research and innovation programme under the Marie Sklodowska-Curie grant agreement No 721537 “ImageInLife”

Author Contributions

Laurent SV Thomas: Software, Validation, Visualization, Writing - original draft
Jochen Gehrig: Funding acquisition, Supervision, Validation, Writing - review and editing.

Reviewed By

Ahna Skop

History

Received: January 14, 2020
Accepted: January 27, 2020
Published: January 28, 2020

Copyright

© 2020 by the authors. This is an open-access article distributed under the terms of the Creative Commons Attribution 4.0 International (CC BY 4.0) License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.

Citation

Thomas, LS; Gehrig, J (2020). ImageJ/Fiji ROI 1-click tools for rapid manual image annotations and measurements. microPublication Biology. 10.17912/micropub.biology.000215.
Download: RIS BibTeX
microPublication Biology is published by
1200 E. California Blvd. MC 1-43 Pasadena, CA 91125
The microPublication project is supported by
The National Institute of Health -- Grant #: 1U01LM012672-01
microPublication Biology:ISSN: 2578-9430