Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2018 Aug:86:8.
doi: 10.18637/jss.v086.i08. Epub 2018 Sep 4.

Image Segmentation, Registration and Characterization in R with SimpleITK

Affiliations
Free PMC article

Image Segmentation, Registration and Characterization in R with SimpleITK

Richard Beare et al. J Stat Softw. 2018 Aug.
Free PMC article

Abstract

Many types of medical and scientific experiments acquire raw data in the form of images. Various forms of image processing and image analysis are used to transform the raw image data into quantitative measures that are the basis of subsequent statistical analysis. In this article we describe the SimpleITK R package. SimpleITK is a simplified interface to the insight segmentation and registration toolkit (ITK). ITK is an open source C++ toolkit that has been actively developed over the past 18 years and is widely used by the medical image analysis community. SimpleITK provides packages for many interpreter environments, including R. Currently, it includes several hundred classes for image analysis including a wide range of image input and output, filtering operations, and higher level components for segmentation and registration. Using SimpleITK, development of complex combinations of image and statistical analysis procedures is feasible. This article includes several examples of computational image analysis tasks implemented using SimpleITK, including spherical marker localization, multi-modal image registration, segmentation evaluation, and cell image analysis.

Keywords: R; image processing; image registration; image segmentation; medical imaging.

PubMed Disclaimer

Figures

Figure 1:
Figure 1:
Cropped cone-beam CT volume of a metallic sphere (top row) and the result of performing 3D edge detection on the volumetric data (bottom row). Original image intensity values have been mapped to [0, 255] for display purposes. The filled circle edge images at both ends (left, right) of the sphere highlight the fact that the operation is indeed carried out in 3D. If performed on a slice by slice manner all edge images would result in empty circles.
Figure 2:
Figure 2:
Five slices extracted from the center of each volume, from top to bottom: original CT image, our fixed image; original MR image, our moving image; fused image after initial spatial alignment of images; fused image after registration.
Figure 3:
Figure 3:
Similarity metric changes during rigid registration.
Figure 4:
Figure 4:
Deriving a reference segmentation from multiple raters using the STAPLE algorithm: (top row) manual segmentations performed by three radiologists; (bottom row) two additional segmentations derived from the expert segmentations to illustrate the effects of over-segmentation and segmentation with outliers. Last image is the derived reference segmentation obtained by the STAPLE algorithm.
Figure 5:
Figure 5:
Comparison of raters using various overlap measures.
Figure 6:
Figure 6:
Confocal microscope image of cells stained with Ph3 (red), Ki67 (green) and DAPI (blue).
Figure 7:
Figure 7:
Stages of segmentation for the DAPI channel. Touching cells in the mid-right side of the image are separated by the splitting stage.
Figure 8:
Figure 8:
Segmentation using Li thresholding of Ph3 and Ki67 channels.
Figure 9:
Figure 9:
Ph3 segmentation refinement using geodesic reconstruction – note the increase in size of nuclei at the top and right of image.
Figure 10:
Figure 10:
Histograms of cell nucleus area by stain type.

Similar articles

Cited by

References

    1. Avants BB, Kandel BM, Duda JT, Cook PA, Tustison NJ (2015). antsR: ANTs in R. R package version 0.3.2, URL http://stnava.github.io/ANTsR/.
    1. Avants BB, Tustison NJ, Song G, Cook PA, Klein A, Gee JC (2011). “A Reproducible Evaluation of ANTs Similarity Metric Performance in Brain Image Registration.” NeuroImage, 54(3), 2033–2044. doi:10.1016/j.neuroimage.2010.09.025. - DOI - PMC - PubMed
    1. Avants BB, Tustison NJ, Stauffer M, Song G, Wu B, Gee JC (2014). “The Insight ToolKit Image Registration Framework.” Frontiers in Neuroinformatics, 8(44). doi:10.3389/fninf.2014.00044. - DOI - PMC - PubMed
    1. Barry KP, Snyder AZ (2013). R4dfp: 4dfp MRI Image Read and Write Routines. R package version 0.2–4, URL http://CRAN.R-project.org/package=R4dfp.
    1. Barthelme S (2017). imager: Image Processing Library Based on CImg. R package version 0.40.2, URL http://CRAN.R-project.org/package=imager.

LinkOut - more resources