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
. 2014 Jun 19:2:e453.
doi: 10.7717/peerj.453. eCollection 2014.

scikit-image: image processing in Python

Affiliations

scikit-image: image processing in Python

Stéfan van der Walt et al. PeerJ. .

Abstract

scikit-image is an image processing library that implements algorithms and utilities for use in research, education and industry applications. It is released under the liberal Modified BSD open source license, provides a well-documented API in the Python programming language, and is developed by an active, international team of collaborators. In this paper we highlight the advantages of open source to achieve the goals of the scikit-image library, and we showcase several real-world image processing applications that use scikit-image. More information can be found on the project homepage, http://scikit-image.org.

Keywords: Education; Image processing; Open source; Python; Reproducible research; Scientific programming; Visualization.

PubMed Disclaimer

Figures

Figure 1
Figure 1. Illustration of several functions available in scikit-image: adaptive threshold, local maxima, edge detection and labels.
The use of NumPy arrays as our data container also enables the use of NumPy’s built-in histogram function.
Figure 2
Figure 2. scikit-image is used to track the propagation of cracks (black lines) in a drying colloidal droplet.
The sequence of pictures shows the temporal evolution of the system with the drop contact line, in green, detected by the Hough transform and the circle, in white, used to extract an annulus of pixel intensities. The result shown illustrates the angular position of cracks and their time of appearance.
Figure 3
Figure 3. The measure.profile_line function being used to track recovery in spinal cord injuries.
(A) An image of fluorescently-labeled nerve cells in an injured zebrafish embryo. (B) The automatically determined region of interest. The SciPy library was used to determine the region extent (Oliphant, 2007; Jones, Oliphant & Peterson, 2001), and functions from the scikit-image draw module were used to draw it. (C) The image intensity along the line of interest, averaged over the displayed width.
Figure 4
Figure 4. Use of scikit-image to study silicon wafer impurities.
(A) An image of an as-cut silicon wafer before it has been processed into a solar cell. (B) A PL image of the same wafer. Wafer defects, which have a negative impact solar cell efficiency, are visible as dark regions. (C) Image processing results. Defects in the crystal growth (dislocations) are colored blue, while red indicates the presence of impurities.
Figure 5
Figure 5. An example application of scikit-image: image registration and warping to combine overlapping images.
(A) Photographs taken in Petra, Jordan by François Malan. License: CC-BY. (B) Putative matches computed from ORB binary features. (C) Matches filtered using RANSAC. (D) The second input frame (middle) is warped to align with the first input frame (left), yielding the averaged image shown on the right. (E) The final panorama image, registered and warped using scikit-image, blended with Enblend.

Similar articles

Cited by

References

    1. Behnel S, Bradshaw R, Citro C, Dalcin L, Seljebotn D, Smith K. Cython: the best of both worlds. Computing in Science and Engineering. 2011;13(2):31–39. doi: 10.1109/MCSE.2010.118. - DOI
    1. Bhatt D, Otto S, Depoister B, Fetcho JR. Cyclic amp-induced repair of zebrafish spinal circuits. Science. 2004;305:254–258. doi: 10.1126/science.1098439. - DOI - PubMed
    1. Bradski G. The OpenCV library. Dr. Dobb’s Journal of Software Tools. 2000;25(11):120–126.
    1. Brandl G. 2007. Sphinx Python documentation generator. Available at http://sphinx-doc.org/ (accessed 30 March 2014)
    1. Burt PJ, Adelson EH. The Laplacian pyramid as a compact image code. IEEE Transactions on Communications. 1983a;31(4):532–540. doi: 10.1109/TCOM.1983.1095851. - DOI
-