:orphan:



.. _sphx_glr_auto_examples:

.. _examples_gallery:

General examples
-------------------

General-purpose and introductory examples for scikit-image.

The `narrative documentation <../user_guide.html>`_ introduces
conventions and basic image manipulations.



.. raw:: html

    <div class="sphx-glr-clear"></div>



.. _sphx_glr_auto_examples_data:

Data
----


.. raw:: html

    <div class="sphx-glr-clear"></div>



.. _sphx_glr_auto_examples_numpy_operations:

Operations on NumPy arrays
--------------------------



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This script illustrates how to use basic NumPy operations, such as slicing, masking and fancy i...">

.. only:: html

 .. figure:: /auto_examples/numpy_operations/images/thumb/sphx_glr_plot_camera_numpy_thumb.png
     :alt: Using simple NumPy operations for manipulating images

     :ref:`sphx_glr_auto_examples_numpy_operations_plot_camera_numpy.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/numpy_operations/plot_camera_numpy

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to use functions in :py:mod:`skimage.morphology` to generate structuring...">

.. only:: html

 .. figure:: /auto_examples/numpy_operations/images/thumb/sphx_glr_plot_structuring_elements_thumb.png
     :alt: Generate structuring elements

     :ref:`sphx_glr_auto_examples_numpy_operations_plot_structuring_elements.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/numpy_operations/plot_structuring_elements

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example illustrates the use of view_as_blocks from :py:func:`skimage.util`.  Block views c...">

.. only:: html

 .. figure:: /auto_examples/numpy_operations/images/thumb/sphx_glr_plot_view_as_blocks_thumb.png
     :alt: Block views on images/arrays

     :ref:`sphx_glr_auto_examples_numpy_operations_plot_view_as_blocks.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/numpy_operations/plot_view_as_blocks
.. raw:: html

    <div class="sphx-glr-clear"></div>



.. _sphx_glr_auto_examples_color_exposure:

Manipulating exposure and color channels
----------------------------------------



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example converts an image with RGB channels into an image with a single grayscale channel.">

.. only:: html

 .. figure:: /auto_examples/color_exposure/images/thumb/sphx_glr_plot_rgb_to_gray_thumb.png
     :alt: RGB to grayscale

     :ref:`sphx_glr_auto_examples_color_exposure_plot_rgb_to_gray.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/color_exposure/plot_rgb_to_gray

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example illustrates how RGB to HSV (Hue, Saturation, Value) conversion [1]_ can be used to...">

.. only:: html

 .. figure:: /auto_examples/color_exposure/images/thumb/sphx_glr_plot_rgb_to_hsv_thumb.png
     :alt: RGB to HSV

     :ref:`sphx_glr_auto_examples_color_exposure_plot_rgb_to_hsv.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/color_exposure/plot_rgb_to_hsv

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates the feature of histogram matching. It manipulates the pixels of an in...">

.. only:: html

 .. figure:: /auto_examples/color_exposure/images/thumb/sphx_glr_plot_histogram_matching_thumb.png
     :alt: Histogram matching

     :ref:`sphx_glr_auto_examples_color_exposure_plot_histogram_matching.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/color_exposure/plot_histogram_matching

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Color deconvolution consists of the separation of features by their colors.">

.. only:: html

 .. figure:: /auto_examples/color_exposure/images/thumb/sphx_glr_plot_ihc_color_separation_thumb.png
     :alt: Immunohistochemical staining colors separation

     :ref:`sphx_glr_auto_examples_color_exposure_plot_ihc_color_separation.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/color_exposure/plot_ihc_color_separation

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="There are many filters that are designed to work with gray-scale images but not with color imag...">

.. only:: html

 .. figure:: /auto_examples/color_exposure/images/thumb/sphx_glr_plot_adapt_rgb_thumb.png
     :alt: Adapting gray-scale filters to RGB images

     :ref:`sphx_glr_auto_examples_color_exposure_plot_adapt_rgb.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/color_exposure/plot_adapt_rgb

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Here, we use morphological reconstruction to create a background image, which we can subtract f...">

.. only:: html

 .. figure:: /auto_examples/color_exposure/images/thumb/sphx_glr_plot_regional_maxima_thumb.png
     :alt: Filtering regional maxima

     :ref:`sphx_glr_auto_examples_color_exposure_plot_regional_maxima.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/color_exposure/plot_regional_maxima

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example adjusts image contrast by performing a Gamma and a Logarithmic correction on the i...">

.. only:: html

 .. figure:: /auto_examples/color_exposure/images/thumb/sphx_glr_plot_log_gamma_thumb.png
     :alt: Gamma and log contrast adjustment

     :ref:`sphx_glr_auto_examples_color_exposure_plot_log_gamma.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/color_exposure/plot_log_gamma

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This examples enhances an image with low contrast, using a method called *histogram equalizatio...">

.. only:: html

 .. figure:: /auto_examples/color_exposure/images/thumb/sphx_glr_plot_equalize_thumb.png
     :alt: Histogram Equalization

     :ref:`sphx_glr_auto_examples_color_exposure_plot_equalize.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/color_exposure/plot_equalize

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="It can be useful to artificially tint an image with some color, either to highlight particular ...">

.. only:: html

 .. figure:: /auto_examples/color_exposure/images/thumb/sphx_glr_plot_tinting_grayscale_images_thumb.png
     :alt: Tinting gray-scale images

     :ref:`sphx_glr_auto_examples_color_exposure_plot_tinting_grayscale_images.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/color_exposure/plot_tinting_grayscale_images
.. raw:: html

    <div class="sphx-glr-clear"></div>



.. _sphx_glr_auto_examples_edges:

Edges and lines
---------------



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="We use a marching squares method to find constant valued contours in an image. In skimage.measu...">

.. only:: html

 .. figure:: /auto_examples/edges/images/thumb/sphx_glr_plot_contours_thumb.png
     :alt: Contour finding

     :ref:`sphx_glr_auto_examples_edges_plot_contours.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/edges/plot_contours

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The convex hull of a binary image is the set of pixels included in the smallest convex polygon ...">

.. only:: html

 .. figure:: /auto_examples/edges/images/thumb/sphx_glr_plot_convex_hull_thumb.png
     :alt: Convex Hull

     :ref:`sphx_glr_auto_examples_edges_plot_convex_hull.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/edges/plot_convex_hull

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The Canny filter is a multi-stage edge detector. It uses a filter based on the derivative of a ...">

.. only:: html

 .. figure:: /auto_examples/edges/images/thumb/sphx_glr_plot_canny_thumb.png
     :alt: Canny edge detector

     :ref:`sphx_glr_auto_examples_edges_plot_canny.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/edges/plot_canny

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Ridge filters can be used to detect ridge-like structures, such as neurites [1]_, tubes [2]_, v...">

.. only:: html

 .. figure:: /auto_examples/edges/images/thumb/sphx_glr_plot_ridge_filter_thumb.png
     :alt: Ridge operators

     :ref:`sphx_glr_auto_examples_edges_plot_ridge_filter.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/edges/plot_ridge_filter

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Marching cubes is an algorithm to extract a 2D surface mesh from a 3D volume. This can be conce...">

.. only:: html

 .. figure:: /auto_examples/edges/images/thumb/sphx_glr_plot_marching_cubes_thumb.png
     :alt: Marching Cubes

     :ref:`sphx_glr_auto_examples_edges_plot_marching_cubes.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/edges/plot_marching_cubes

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The active contour model is a method to fit open or closed splines to lines or edges in an imag...">

.. only:: html

 .. figure:: /auto_examples/edges/images/thumb/sphx_glr_plot_active_contours_thumb.png
     :alt: Active Contour Model

     :ref:`sphx_glr_auto_examples_edges_plot_active_contours.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/edges/plot_active_contours

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to draw several different shapes:">

.. only:: html

 .. figure:: /auto_examples/edges/images/thumb/sphx_glr_plot_shapes_thumb.png
     :alt: Shapes

     :ref:`sphx_glr_auto_examples_edges_plot_shapes.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/edges/plot_shapes

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Example of generating random shapes with particular properties.">

.. only:: html

 .. figure:: /auto_examples/edges/images/thumb/sphx_glr_plot_random_shapes_thumb.png
     :alt: Random Shapes

     :ref:`sphx_glr_auto_examples_edges_plot_random_shapes.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/edges/plot_random_shapes

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The Hough transform in its simplest form is a method to detect straight lines [1]_.">

.. only:: html

 .. figure:: /auto_examples/edges/images/thumb/sphx_glr_plot_line_hough_transform_thumb.png
     :alt: Straight line Hough transform

     :ref:`sphx_glr_auto_examples_edges_plot_line_hough_transform.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/edges/plot_line_hough_transform

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to approximate (Douglas-Peucker algorithm) and subdivide (B-Splines) pol...">

.. only:: html

 .. figure:: /auto_examples/edges/images/thumb/sphx_glr_plot_polygon_thumb.png
     :alt: Approximate and subdivide polygons

     :ref:`sphx_glr_auto_examples_edges_plot_polygon.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/edges/plot_polygon

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The Hough transform in its simplest form is a `method to detect straight lines &lt;https://en.wiki...">

.. only:: html

 .. figure:: /auto_examples/edges/images/thumb/sphx_glr_plot_circular_elliptical_hough_transform_thumb.png
     :alt: Circular and Elliptical Hough Transforms

     :ref:`sphx_glr_auto_examples_edges_plot_circular_elliptical_hough_transform.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/edges/plot_circular_elliptical_hough_transform

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Skeletonization reduces binary objects to 1 pixel wide representations. This can be useful for ...">

.. only:: html

 .. figure:: /auto_examples/edges/images/thumb/sphx_glr_plot_skeleton_thumb.png
     :alt: Skeletonize

     :ref:`sphx_glr_auto_examples_edges_plot_skeleton.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/edges/plot_skeleton

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Edge operators are used in image processing within edge detection algorithms. They are discrete...">

.. only:: html

 .. figure:: /auto_examples/edges/images/thumb/sphx_glr_plot_edge_filter_thumb.png
     :alt: Edge operators

     :ref:`sphx_glr_auto_examples_edges_plot_edge_filter.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/edges/plot_edge_filter
.. raw:: html

    <div class="sphx-glr-clear"></div>



.. _sphx_glr_auto_examples_transform:

Geometrical transformations and registration
--------------------------------------------



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Image swirling is a non-linear image deformation that creates a whirlpool effect.  This example...">

.. only:: html

 .. figure:: /auto_examples/transform/images/thumb/sphx_glr_plot_swirl_thumb.png
     :alt: Swirl

     :ref:`sphx_glr_auto_examples_transform_plot_swirl.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/transform/plot_swirl

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The pyramid_gaussian function takes an image and yields successive images shrunk by a constant ...">

.. only:: html

 .. figure:: /auto_examples/transform/images/thumb/sphx_glr_plot_pyramid_thumb.png
     :alt: Build image pyramids

     :ref:`sphx_glr_auto_examples_transform_plot_pyramid.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/transform/plot_pyramid

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example illustrates the different edge modes available during interpolation in routines su...">

.. only:: html

 .. figure:: /auto_examples/transform/images/thumb/sphx_glr_plot_edge_modes_thumb.png
     :alt: Interpolation: Edge Modes

     :ref:`sphx_glr_auto_examples_transform_plot_edge_modes.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/transform/plot_edge_modes

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Rescale operation resizes an image by a given scaling factor. The scaling factor can either be ...">

.. only:: html

 .. figure:: /auto_examples/transform/images/thumb/sphx_glr_plot_rescale_thumb.png
     :alt: Rescale, resize, and downscale

     :ref:`sphx_glr_auto_examples_transform_plot_rescale.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/transform/plot_rescale

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to use the Piecewise Affine Transformation.">

.. only:: html

 .. figure:: /auto_examples/transform/images/thumb/sphx_glr_plot_piecewise_affine_thumb.png
     :alt: Piecewise Affine Transformation

     :ref:`sphx_glr_auto_examples_transform_plot_piecewise_affine.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/transform/plot_piecewise_affine

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="In this example, we will see how to use geometric transformations in the context of image proce...">

.. only:: html

 .. figure:: /auto_examples/transform/images/thumb/sphx_glr_plot_geometric_thumb.png
     :alt: Using geometric transformations

     :ref:`sphx_glr_auto_examples_transform_plot_geometric.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/transform/plot_geometric

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="When comparing images, the mean squared error (MSE)--while simple to implement--is not highly i...">

.. only:: html

 .. figure:: /auto_examples/transform/images/thumb/sphx_glr_plot_ssim_thumb.png
     :alt: Structural similarity index

     :ref:`sphx_glr_auto_examples_transform_plot_ssim.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/transform/plot_ssim

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="`Homographies &lt;https://en.wikipedia.org/wiki/Homography&gt;`_ are transformations of a Euclidean s...">

.. only:: html

 .. figure:: /auto_examples/transform/images/thumb/sphx_glr_plot_transform_types_thumb.png
     :alt: Types of homographies

     :ref:`sphx_glr_auto_examples_transform_plot_transform_types.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/transform/plot_transform_types

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates how to robustly estimate  epipolar geometry &lt;https://en.wikipedia.org...">

.. only:: html

 .. figure:: /auto_examples/transform/images/thumb/sphx_glr_plot_fundamental_matrix_thumb.png
     :alt: Fundamental matrix estimation

     :ref:`sphx_glr_auto_examples_transform_plot_fundamental_matrix.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/transform/plot_fundamental_matrix

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="In this example we see how to robustly fit a line model to faulty data using the RANSAC (random...">

.. only:: html

 .. figure:: /auto_examples/transform/images/thumb/sphx_glr_plot_ransac_thumb.png
     :alt: Robust line model estimation using RANSAC

     :ref:`sphx_glr_auto_examples_transform_plot_ransac.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/transform/plot_ransac

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="In computed tomography, the tomography reconstruction problem is to obtain a tomographic slice ...">

.. only:: html

 .. figure:: /auto_examples/transform/images/thumb/sphx_glr_plot_radon_transform_thumb.png
     :alt: Radon transform

     :ref:`sphx_glr_auto_examples_transform_plot_radon_transform.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/transform/plot_radon_transform

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="In this simplified example we first generate two synthetic images as if they were taken from di...">

.. only:: html

 .. figure:: /auto_examples/transform/images/thumb/sphx_glr_plot_matching_thumb.png
     :alt: Robust matching using RANSAC

     :ref:`sphx_glr_auto_examples_transform_plot_matching.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/transform/plot_matching
.. raw:: html

    <div class="sphx-glr-clear"></div>



.. _sphx_glr_auto_examples_registration:

Image registration
------------------



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="In this example, we use phase cross-correlation to identify the relative shift between two simi...">

.. only:: html

 .. figure:: /auto_examples/registration/images/thumb/sphx_glr_plot_register_translation_thumb.png
     :alt: Image Registration

     :ref:`sphx_glr_auto_examples_registration_plot_register_translation.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/registration/plot_register_translation

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="In this example, we use the masked normalized cross-correlation to identify the relative shift ...">

.. only:: html

 .. figure:: /auto_examples/registration/images/thumb/sphx_glr_plot_masked_register_translation_thumb.png
     :alt: Masked Normalized Cross-Correlation

     :ref:`sphx_glr_auto_examples_registration_plot_masked_register_translation.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/registration/plot_masked_register_translation

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Phase correlation (``registration.phase_cross_correlation``) is an efficient method for determi...">

.. only:: html

 .. figure:: /auto_examples/registration/images/thumb/sphx_glr_plot_register_rotation_thumb.png
     :alt: Using Polar and Log-Polar Transformations for Registration

     :ref:`sphx_glr_auto_examples_registration_plot_register_rotation.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/registration/plot_register_rotation
.. raw:: html

    <div class="sphx-glr-clear"></div>



.. _sphx_glr_auto_examples_filters:

Filtering and restoration
-------------------------



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to remove small objects from grayscale images. The top-hat transform [1]...">

.. only:: html

 .. figure:: /auto_examples/filters/images/thumb/sphx_glr_plot_tophat_thumb.png
     :alt: Removing small objects in grayscale images with a top hat filter

     :ref:`sphx_glr_auto_examples_filters_plot_tophat.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/filters/plot_tophat

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="*Hysteresis* is the lagging of an effect---a kind of inertia. In the context of thresholding, i...">

.. only:: html

 .. figure:: /auto_examples/filters/images/thumb/sphx_glr_plot_hysteresis_thumb.png
     :alt: Hysteresis thresholding

     :ref:`sphx_glr_auto_examples_filters_plot_hysteresis.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/filters/plot_hysteresis

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="In this example, we deconvolve a noisy version of an image using Wiener and unsupervised Wiener...">

.. only:: html

 .. figure:: /auto_examples/filters/images/thumb/sphx_glr_plot_restoration_thumb.png
     :alt: Image Deconvolution

     :ref:`sphx_glr_auto_examples_filters_plot_restoration.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/filters/plot_restoration

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Fast Fourier transforms (FFTs) assume that the data being transformed represent one period of a...">

.. only:: html

 .. figure:: /auto_examples/filters/images/thumb/sphx_glr_plot_window_thumb.png
     :alt: Using window functions with images

     :ref:`sphx_glr_auto_examples_filters_plot_window.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/filters/plot_window

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example compares the following mean filters of the rank filter package:">

.. only:: html

 .. figure:: /auto_examples/filters/images/thumb/sphx_glr_plot_rank_mean_thumb.png
     :alt: Mean filters

     :ref:`sphx_glr_auto_examples_filters_plot_rank_mean.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/filters/plot_rank_mean

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Unsharp masking is a linear image processing technique which sharpens the image. The sharp deta...">

.. only:: html

 .. figure:: /auto_examples/filters/images/thumb/sphx_glr_plot_unsharp_mask_thumb.png
     :alt: Unsharp masking

     :ref:`sphx_glr_auto_examples_filters_plot_unsharp_mask.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/filters/plot_unsharp_mask

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The algorithm is based on a PSF (Point Spread Function), where PSF is described as the impulse ...">

.. only:: html

 .. figure:: /auto_examples/filters/images/thumb/sphx_glr_plot_deconvolution_thumb.png
     :alt: Image Deconvolution

     :ref:`sphx_glr_auto_examples_filters_plot_deconvolution.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/filters/plot_deconvolution

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The reconstruction is supposed to be performed in fully automatic way by exploiting the informa...">

.. only:: html

 .. figure:: /auto_examples/filters/images/thumb/sphx_glr_plot_inpaint_thumb.png
     :alt: Inpainting

     :ref:`sphx_glr_auto_examples_filters_plot_inpaint.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/filters/plot_inpaint

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="In information theory, information entropy is the log-base-2 of the number of possible outcomes...">

.. only:: html

 .. figure:: /auto_examples/filters/images/thumb/sphx_glr_plot_entropy_thumb.png
     :alt: Entropy

     :ref:`sphx_glr_auto_examples_filters_plot_entropy.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/filters/plot_entropy

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="In this example, we show how to find an optimally calibrated version of any denoising algorithm...">

.. only:: html

 .. figure:: /auto_examples/filters/images/thumb/sphx_glr_plot_j_invariant_thumb.png
     :alt: Calibrating Denoisers Using J-Invariance

     :ref:`sphx_glr_auto_examples_filters_plot_j_invariant.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/filters/plot_j_invariant

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Band-pass filters attenuate signal frequencies outside of a range (band) of interest. In image ...">

.. only:: html

 .. figure:: /auto_examples/filters/images/thumb/sphx_glr_plot_dog_thumb.png
     :alt: Band-pass filtering by Difference of Gaussians

     :ref:`sphx_glr_auto_examples_filters_plot_dog.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/filters/plot_dog

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="In this example, we denoise a noisy version of a picture using the total variation, bilateral, ...">

.. only:: html

 .. figure:: /auto_examples/filters/images/thumb/sphx_glr_plot_denoise_thumb.png
     :alt: Denoising a picture

     :ref:`sphx_glr_auto_examples_filters_plot_denoise.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/filters/plot_denoise

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The discrete wavelet transform is not `shift-invariant`_.  Shift invariance can be achieved thr...">

.. only:: html

 .. figure:: /auto_examples/filters/images/thumb/sphx_glr_plot_cycle_spinning_thumb.png
     :alt: Shift-invariant wavelet denoising

     :ref:`sphx_glr_auto_examples_filters_plot_cycle_spinning.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/filters/plot_cycle_spinning

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Some signals can only be observed modulo 2*pi, and this can also apply to two- and three dimens...">

.. only:: html

 .. figure:: /auto_examples/filters/images/thumb/sphx_glr_plot_phase_unwrap_thumb.png
     :alt: Phase Unwrapping

     :ref:`sphx_glr_auto_examples_filters_plot_phase_unwrap.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/filters/plot_phase_unwrap

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="In this example, we denoise a detail of the astronaut image using the non-local means filter. T...">

.. only:: html

 .. figure:: /auto_examples/filters/images/thumb/sphx_glr_plot_nonlocal_means_thumb.png
     :alt: Non-local means denoising for preserving textures

     :ref:`sphx_glr_auto_examples_filters_plot_nonlocal_means.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/filters/plot_nonlocal_means

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Attribute operators (or connected operators) [1]_ is a family of contour preserving filtering o...">

.. only:: html

 .. figure:: /auto_examples/filters/images/thumb/sphx_glr_plot_attribute_operators_thumb.png
     :alt: Attribute operators

     :ref:`sphx_glr_auto_examples_filters_plot_attribute_operators.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/filters/plot_attribute_operators

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Wavelet denoising relies on the wavelet representation of the image. Gaussian noise tends to be...">

.. only:: html

 .. figure:: /auto_examples/filters/images/thumb/sphx_glr_plot_denoise_wavelet_thumb.png
     :alt: Wavelet denoising

     :ref:`sphx_glr_auto_examples_filters_plot_denoise_wavelet.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/filters/plot_denoise_wavelet

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="In this example, we show how to find an optimally calibrated version of any denoising algorithm...">

.. only:: html

 .. figure:: /auto_examples/filters/images/thumb/sphx_glr_plot_j_invariant_tutorial_thumb.png
     :alt: Full tutorial on calibrating Denoisers Using J-Invariance

     :ref:`sphx_glr_auto_examples_filters_plot_j_invariant_tutorial.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/filters/plot_j_invariant_tutorial
.. raw:: html

    <div class="sphx-glr-clear"></div>



.. _sphx_glr_auto_examples_features_detection:

Detection of features and objects
---------------------------------



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The DAISY local image descriptor is based on gradient orientation histograms similar to the SIF...">

.. only:: html

 .. figure:: /auto_examples/features_detection/images/thumb/sphx_glr_plot_daisy_thumb.png
     :alt: Dense DAISY feature description

     :ref:`sphx_glr_auto_examples_features_detection_plot_daisy.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/features_detection/plot_daisy

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The Histogram of Oriented Gradient (HOG) feature descriptor is popular for object detection [1]...">

.. only:: html

 .. figure:: /auto_examples/features_detection/images/thumb/sphx_glr_plot_hog_thumb.png
     :alt: Histogram of Oriented Gradients

     :ref:`sphx_glr_auto_examples_features_detection_plot_hog.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/features_detection/plot_hog

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="We use template matching to identify the occurrence of an image patch (in this case, a sub-imag...">

.. only:: html

 .. figure:: /auto_examples/features_detection/images/thumb/sphx_glr_plot_template_thumb.png
     :alt: Template Matching

     :ref:`sphx_glr_auto_examples_features_detection_plot_template.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/features_detection/plot_template

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="We fill holes (i.e. isolated, dark spots) in an image using morphological reconstruction by ero...">

.. only:: html

 .. figure:: /auto_examples/features_detection/images/thumb/sphx_glr_plot_holes_and_peaks_thumb.png
     :alt: Filling holes and finding peaks

     :ref:`sphx_glr_auto_examples_features_detection_plot_holes_and_peaks.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/features_detection/plot_holes_and_peaks

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Detect corner points using the Harris corner detector and determine the subpixel position of co...">

.. only:: html

 .. figure:: /auto_examples/features_detection/images/thumb/sphx_glr_plot_corner_thumb.png
     :alt: Corner detection

     :ref:`sphx_glr_auto_examples_features_detection_plot_corner.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/features_detection/plot_corner

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The CENSURE feature detector is a scale-invariant center-surround detector (CENSURE) that claim...">

.. only:: html

 .. figure:: /auto_examples/features_detection/images/thumb/sphx_glr_plot_censure_thumb.png
     :alt: CENSURE feature detector

     :ref:`sphx_glr_auto_examples_features_detection_plot_censure.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/features_detection/plot_censure

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to compute multi-block local binary pattern (MB-LBP) features as well as...">

.. only:: html

 .. figure:: /auto_examples/features_detection/images/thumb/sphx_glr_plot_multiblock_local_binary_pattern_thumb.png
     :alt: Multi-Block Local Binary Pattern for texture classification

     :ref:`sphx_glr_auto_examples_features_detection_plot_multiblock_local_binary_pattern.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/features_detection/plot_multiblock_local_binary_pattern

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Haar-like features are simple digital image features that were introduced in a real-time face d...">

.. only:: html

 .. figure:: /auto_examples/features_detection/images/thumb/sphx_glr_plot_haar_thumb.png
     :alt: Haar-like feature descriptor

     :ref:`sphx_glr_auto_examples_features_detection_plot_haar.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/features_detection/plot_haar

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Blobs are bright on dark or dark on bright regions in an image. In this example, blobs are dete...">

.. only:: html

 .. figure:: /auto_examples/features_detection/images/thumb/sphx_glr_plot_blob_thumb.png
     :alt: Blob Detection

     :ref:`sphx_glr_auto_examples_features_detection_plot_blob.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/features_detection/plot_blob

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates the ORB feature detection and binary description algorithm. It uses a...">

.. only:: html

 .. figure:: /auto_examples/features_detection/images/thumb/sphx_glr_plot_orb_thumb.png
     :alt: ORB feature detector and binary descriptor

     :ref:`sphx_glr_auto_examples_features_detection_plot_orb.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/features_detection/plot_orb

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="How to build a (bio-plausible) *sparse* dictionary (or &#x27;codebook&#x27;, or &#x27;filterbank&#x27;) for e.g. im...">

.. only:: html

 .. figure:: /auto_examples/features_detection/images/thumb/sphx_glr_plot_gabors_from_astronaut_thumb.png
     :alt: Gabors / Primary Visual Cortex "Simple Cells" from an Image

     :ref:`sphx_glr_auto_examples_features_detection_plot_gabors_from_astronaut.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/features_detection/plot_gabors_from_astronaut

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates the BRIEF binary description algorithm. The descriptor consists of re...">

.. only:: html

 .. figure:: /auto_examples/features_detection/images/thumb/sphx_glr_plot_brief_thumb.png
     :alt: BRIEF binary descriptor

     :ref:`sphx_glr_auto_examples_features_detection_plot_brief.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/features_detection/plot_brief

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example illustrates texture classification using grey level co-occurrence matrices (GLCMs)...">

.. only:: html

 .. figure:: /auto_examples/features_detection/images/thumb/sphx_glr_plot_glcm_thumb.png
     :alt: GLCM Texture Features

     :ref:`sphx_glr_auto_examples_features_detection_plot_glcm.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/features_detection/plot_glcm

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The shape index is a single valued measure of local curvature, derived from the eigen values of...">

.. only:: html

 .. figure:: /auto_examples/features_detection/images/thumb/sphx_glr_plot_shape_index_thumb.png
     :alt: Shape Index

     :ref:`sphx_glr_auto_examples_features_detection_plot_shape_index.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/features_detection/plot_shape_index

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Histogram matching can be used for object detection in images [1]_. This example extracts a sin...">

.. only:: html

 .. figure:: /auto_examples/features_detection/images/thumb/sphx_glr_plot_windowed_histogram_thumb.png
     :alt: Sliding window histogram

     :ref:`sphx_glr_auto_examples_features_detection_plot_windowed_histogram.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/features_detection/plot_windowed_histogram

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="In this example, we will see how to classify textures based on Gabor filter banks. Frequency an...">

.. only:: html

 .. figure:: /auto_examples/features_detection/images/thumb/sphx_glr_plot_gabor_thumb.png
     :alt: Gabor filter banks for texture classification

     :ref:`sphx_glr_auto_examples_features_detection_plot_gabor.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/features_detection/plot_gabor

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="In this example, we will see how to classify textures based on LBP (Local Binary Pattern). LBP ...">

.. only:: html

 .. figure:: /auto_examples/features_detection/images/thumb/sphx_glr_plot_local_binary_pattern_thumb.png
     :alt: Local Binary Pattern for texture classification

     :ref:`sphx_glr_auto_examples_features_detection_plot_local_binary_pattern.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/features_detection/plot_local_binary_pattern
.. raw:: html

    <div class="sphx-glr-clear"></div>



.. _sphx_glr_auto_examples_segmentation:

Segmentation of objects
-----------------------



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Construct a region boundary RAG with the rag_boundary function. The function  :py:func:`skimage...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_rag_boundary_thumb.png
     :alt: Region Boundary based RAGs

     :ref:`sphx_glr_auto_examples_segmentation_plot_rag_boundary.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_rag_boundary

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example constructs a Region Adjacency Graph (RAG) and merges regions which are similar in ...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_rag_mean_color_thumb.png
     :alt: RAG Thresholding

     :ref:`sphx_glr_auto_examples_segmentation_plot_rag_mean_color.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_rag_mean_color

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example constructs a Region Adjacency Graph (RAG) and recursively performs a Normalized Cu...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_ncut_thumb.png
     :alt: Normalized Cut

     :ref:`sphx_glr_auto_examples_segmentation_plot_ncut.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_ncut

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The watershed transform is commonly used as a starting point for many segmentation algorithms. ...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_compact_watershed_thumb.png
     :alt: Find Regular Segments Using Compact Watershed

     :ref:`sphx_glr_auto_examples_segmentation_plot_compact_watershed.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_compact_watershed

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example constructs a Region Adjacency Graph (RAG) and draws it with the rag_draw method.">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_rag_draw_thumb.png
     :alt: Drawing Region Adjacency Graphs (RAGs)

     :ref:`sphx_glr_auto_examples_segmentation_plot_rag_draw.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_rag_draw

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Thresholding is used to create a binary image from a grayscale image [1]_.">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_thresholding_thumb.png
     :alt: Thresholding

     :ref:`sphx_glr_auto_examples_segmentation_plot_thresholding.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_thresholding

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The Chan-Vese segmentation algorithm is designed to segment objects without clearly defined bou...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_chan_vese_thumb.png
     :alt: Chan-Vese Segmentation

     :ref:`sphx_glr_auto_examples_segmentation_plot_chan_vese.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_chan_vese

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The peak_local_max function returns the coordinates of local peaks (maxima) in an image. Intern...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_peak_local_max_thumb.png
     :alt: Finding local maxima

     :ref:`sphx_glr_auto_examples_segmentation_plot_peak_local_max.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_peak_local_max

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Niblack and Sauvola thresholds are local thresholding techniques that are useful for images whe...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_niblack_sauvola_thumb.png
     :alt: Niblack and Sauvola Thresholding

     :ref:`sphx_glr_auto_examples_segmentation_plot_niblack_sauvola.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_niblack_sauvola

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The multi-Otsu threshold [1]_ is a thresholding algorithm that is used to separate the pixels o...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_multiotsu_thumb.png
     :alt: Multi-Otsu Thresholding

     :ref:`sphx_glr_auto_examples_segmentation_plot_multiotsu.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_multiotsu

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example is about comparing the segmentations obtained using the plain SLIC method [1]_ and...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_mask_slic_thumb.png
     :alt: maskSLIC Demonstration

     :ref:`sphx_glr_auto_examples_segmentation_plot_mask_slic.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_mask_slic

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Given several connected components represented by a label image, these connected components can...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_expand_labels_thumb.png
     :alt: Expand segmentation labels without overlap

     :ref:`sphx_glr_auto_examples_segmentation_plot_expand_labels.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_expand_labels

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The random walker algorithm [1]_  determines the segmentation of an image from a set of markers...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_random_walker_segmentation_thumb.png
     :alt: Random walker segmentation

     :ref:`sphx_glr_auto_examples_segmentation_plot_random_walker_segmentation.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_random_walker_segmentation

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The watershed is a classical algorithm used for **segmentation**, that is, for separating diffe...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_watershed_thumb.png
     :alt: Watershed segmentation

     :ref:`sphx_glr_auto_examples_segmentation_plot_watershed.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_watershed

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to segment an image with image labelling. The following steps are applie...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_label_thumb.png
     :alt: Label image regions

     :ref:`sphx_glr_auto_examples_segmentation_plot_label.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_label

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example compares four popular low-level image segmentation methods.  As it is difficult to...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_segmentations_thumb.png
     :alt: Comparison of segmentation and superpixel algorithms

     :ref:`sphx_glr_auto_examples_segmentation_plot_segmentations.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_segmentations

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="When segmenting an image, you may want to combine multiple alternative segmentations. The :py:f...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_join_segmentations_thumb.png
     :alt: Find the intersection of two segmentations

     :ref:`sphx_glr_auto_examples_segmentation_plot_join_segmentations.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_join_segmentations

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates the use of the merge_nodes function of a Region Adjacency Graph (RAG)...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_rag_thumb.png
     :alt: Region Adjacency Graphs

     :ref:`sphx_glr_auto_examples_segmentation_plot_rag.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_rag

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to calculate the Hausdorff distance between two sets of points. The `Hau...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_hausdorff_distance_thumb.png
     :alt: Hausdorff Distance

     :ref:`sphx_glr_auto_examples_segmentation_plot_hausdorff_distance.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_hausdorff_distance

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="In this example we show the uncertainty on calculating perimeters, comparing classic and Crofto...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_perimeters_thumb.png
     :alt: Different perimeters

     :ref:`sphx_glr_auto_examples_segmentation_plot_perimeters.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_perimeters

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example constructs a Region Adjacency Graph (RAG) and progressively merges regions that ar...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_rag_merge_thumb.png
     :alt: RAG Merging

     :ref:`sphx_glr_auto_examples_segmentation_plot_rag_merge.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_rag_merge

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example demonstrates how to perform hierarchical merging on region boundary Region Adjacen...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_boundary_merge_thumb.png
     :alt: Hierarchical Merging of Region Boundary RAGs

     :ref:`sphx_glr_auto_examples_segmentation_plot_boundary_merge.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_boundary_merge

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="We detect local maxima in a galaxy image. The image is corrupted by noise, generating many loca...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_extrema_thumb.png
     :alt: Extrema

     :ref:`sphx_glr_auto_examples_segmentation_plot_extrema.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_extrema

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This toy example shows how to compute the size of every labelled region in a series of 10 image...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_regionprops_table_thumb.png
     :alt: Explore and visualize region properties with pandas

     :ref:`sphx_glr_auto_examples_segmentation_plot_regionprops_table.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_regionprops_table

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows how to measure properties of labelled image regions. We first analyze an ima...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_regionprops_thumb.png
     :alt: Measure region properties

     :ref:`sphx_glr_auto_examples_segmentation_plot_regionprops.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_regionprops

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="*Morphological Snakes* [1]_ are a family of methods for image segmentation. Their behavior is s...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_morphsnakes_thumb.png
     :alt: Morphological Snakes

     :ref:`sphx_glr_auto_examples_segmentation_plot_morphsnakes.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_morphsnakes

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Flood fill is an algorithm to identify and/or change adjacent values in an image based on their...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_floodfill_thumb.png
     :alt: Flood Fill

     :ref:`sphx_glr_auto_examples_segmentation_plot_floodfill.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_floodfill

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This example shows an illustration of the computation of the Euler number [1]_ in 2D and 3D obj...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_euler_number_thumb.png
     :alt: Euler number

     :ref:`sphx_glr_auto_examples_segmentation_plot_euler_number.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_euler_number

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="When trying out different segmentation methods, how do you know which one is best? If you have ...">

.. only:: html

 .. figure:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_metrics_thumb.png
     :alt: Evaluating segmentation metrics

     :ref:`sphx_glr_auto_examples_segmentation_plot_metrics.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/segmentation/plot_metrics
.. raw:: html

    <div class="sphx-glr-clear"></div>



.. _sphx_glr_auto_examples_applications:

Longer examples and demonstrations
----------------------------------



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This computer vision example shows how to detect faces on an image using object detection frame...">

.. only:: html

 .. figure:: /auto_examples/applications/images/thumb/sphx_glr_plot_face_detection_thumb.png
     :alt: Face detection using a cascade classifier

     :ref:`sphx_glr_auto_examples_applications_plot_face_detection.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/applications/plot_face_detection

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Image comparison is particularly useful when performing image processing tasks such as exposure...">

.. only:: html

 .. figure:: /auto_examples/applications/images/thumb/sphx_glr_plot_image_comparison_thumb.png
     :alt: Visual image comparison

     :ref:`sphx_glr_auto_examples_applications_plot_image_comparison.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/applications/plot_image_comparison

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Morphological image processing is a collection of non-linear operations related to the shape or...">

.. only:: html

 .. figure:: /auto_examples/applications/images/thumb/sphx_glr_plot_morphology_thumb.png
     :alt: Morphological Filtering

     :ref:`sphx_glr_auto_examples_applications_plot_morphology.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/applications/plot_morphology

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="In this example, we will see how to segment objects from a background. We use the coins image f...">

.. only:: html

 .. figure:: /auto_examples/applications/images/thumb/sphx_glr_plot_coins_segmentation_thumb.png
     :alt: Comparing edge-based and region-based segmentation

     :ref:`sphx_glr_auto_examples_applications_plot_coins_segmentation.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/applications/plot_coins_segmentation

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Thresholding is used to create a binary image from a grayscale image [1]_. It is the simplest w...">

.. only:: html

 .. figure:: /auto_examples/applications/images/thumb/sphx_glr_plot_thresholding_thumb.png
     :alt: Thresholding

     :ref:`sphx_glr_auto_examples_applications_plot_thresholding.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/applications/plot_thresholding

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Haar-like feature descriptors were successfully used to implement the first real-time face dete...">

.. only:: html

 .. figure:: /auto_examples/applications/images/thumb/sphx_glr_plot_haar_extraction_selection_classification_thumb.png
     :alt: Face classification using Haar-like feature descriptor

     :ref:`sphx_glr_auto_examples_applications_plot_haar_extraction_selection_classification.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/applications/plot_haar_extraction_selection_classification
.. raw:: html

    <div class="sphx-glr-clear"></div>



.. _sphx_glr_auto_examples_developers:

Examples for developers
-----------------------
In this folder, we have examples for advanced topics, including detailed
explanations of the inner workings of certain algorithms.

These examples require some basic knowledge of image processing. They are
targeted at existing or would-be scikit-image developers wishing to develop
their knowledge of image processing algorithms.



.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="In 1993, Li and Lee proposed a new criterion for finding the &quot;optimal&quot; threshold to distinguish...">

.. only:: html

 .. figure:: /auto_examples/developers/images/thumb/sphx_glr_plot_threshold_li_thumb.png
     :alt: Li thresholding

     :ref:`sphx_glr_auto_examples_developers_plot_threshold_li.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/developers/plot_threshold_li

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The max-tree is a hierarchical representation of an image that is the basis for a large family ...">

.. only:: html

 .. figure:: /auto_examples/developers/images/thumb/sphx_glr_plot_max_tree_thumb.png
     :alt: Max-tree

     :ref:`sphx_glr_auto_examples_developers_plot_max_tree.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /auto_examples/developers/plot_max_tree
.. raw:: html

    <div class="sphx-glr-clear"></div>



.. only :: html

 .. container:: sphx-glr-footer
    :class: sphx-glr-footer-gallery


  .. container:: sphx-glr-download sphx-glr-download-python

    :download:`Download all examples in Python source code: auto_examples_python.zip </auto_examples/auto_examples_python.zip>`



  .. container:: sphx-glr-download sphx-glr-download-jupyter

    :download:`Download all examples in Jupyter notebooks: auto_examples_jupyter.zip </auto_examples/auto_examples_jupyter.zip>`


.. only:: html

 .. rst-class:: sphx-glr-signature

    `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_
