.. _sphx_glr_auto_examples_segmentation:
Segmentation of objects
-----------------------
.. raw:: html
    
.. thumbnail-parent-div-open
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_rag_boundary_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_rag_boundary.py`
.. raw:: html
      
Region Boundary based Region adjacency graphs (RAGs)
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_rag_mean_color_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_rag_mean_color.py`
.. raw:: html
      
Region adjacency graph (RAG) Thresholding
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_ncut_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_ncut.py`
.. raw:: html
      
Normalized Cut
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_compact_watershed_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_compact_watershed.py`
.. raw:: html
      
Find Regular Segments Using Compact Watershed
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_thresholding_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_thresholding.py`
.. raw:: html
      
Thresholding
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_rag_draw_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_rag_draw.py`
.. raw:: html
      
Drawing Region Adjacency Graphs (RAGs)
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_chan_vese_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_chan_vese.py`
.. raw:: html
      
Chan-Vese Segmentation
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_peak_local_max_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_peak_local_max.py`
.. raw:: html
      
Finding local maxima
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_niblack_sauvola_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_niblack_sauvola.py`
.. raw:: html
      
Niblack and Sauvola Thresholding
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_multiotsu_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_multiotsu.py`
.. raw:: html
      
Multi-Otsu Thresholding
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_mask_slic_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_mask_slic.py`
.. raw:: html
      
Apply maskSLIC vs SLIC
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_random_walker_segmentation_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_random_walker_segmentation.py`
.. raw:: html
      
Random walker segmentation
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_expand_labels_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_expand_labels.py`
.. raw:: html
      
Expand segmentation labels without overlap
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_watershed_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_watershed.py`
.. raw:: html
      
Watershed segmentation
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_marked_watershed_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_marked_watershed.py`
.. raw:: html
      
Markers for watershed transform
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_label_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_label.py`
.. raw:: html
      
Label image regions
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_segmentations_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_segmentations.py`
.. raw:: html
      
Comparison of segmentation and superpixel algorithms
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_join_segmentations_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_join_segmentations.py`
.. raw:: html
      
Find the intersection of two segmentations
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_rag_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_rag.py`
.. raw:: html
      
Region Adjacency Graphs (RAGs)
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_rag_merge_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_rag_merge.py`
.. raw:: html
      
Region adjacency graph (RAG) Merging
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_perimeters_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_perimeters.py`
.. raw:: html
      
Measure perimeters with different estimators
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_boundary_merge_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_boundary_merge.py`
.. raw:: html
      
Hierarchical Merging of Region Boundary RAGs
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_extrema_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_extrema.py`
.. raw:: html
      
Extrema
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_regionprops_table_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_regionprops_table.py`
.. raw:: html
      
Explore and visualize region properties with pandas
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_hausdorff_distance_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_hausdorff_distance.py`
.. raw:: html
      
Hausdorff Distance
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_morphsnakes_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_morphsnakes.py`
.. raw:: html
      
Morphological Snakes
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_trainable_segmentation_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_trainable_segmentation.py`
.. raw:: html
      
Trainable segmentation using local features and random forests
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_regionprops_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_regionprops.py`
.. raw:: html
      
Measure region properties
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_floodfill_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_floodfill.py`
.. raw:: html
      
Flood Fill
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_metrics_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_metrics.py`
.. raw:: html
      
Evaluating segmentation metrics
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_euler_number_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_euler_number.py`
.. raw:: html
      
Euler number
    
.. raw:: html
    
.. only:: html
  .. image:: /auto_examples/segmentation/images/thumb/sphx_glr_plot_rolling_ball_thumb.png
    :alt:
  :ref:`sphx_glr_auto_examples_segmentation_plot_rolling_ball.py`
.. raw:: html
      
Use rolling-ball algorithm for estimating background intensity
    
.. thumbnail-parent-div-close
.. raw:: html
    
 
.. toctree::
   :hidden:
   /auto_examples/segmentation/plot_rag_boundary
   /auto_examples/segmentation/plot_rag_mean_color
   /auto_examples/segmentation/plot_ncut
   /auto_examples/segmentation/plot_compact_watershed
   /auto_examples/segmentation/plot_thresholding
   /auto_examples/segmentation/plot_rag_draw
   /auto_examples/segmentation/plot_chan_vese
   /auto_examples/segmentation/plot_peak_local_max
   /auto_examples/segmentation/plot_niblack_sauvola
   /auto_examples/segmentation/plot_multiotsu
   /auto_examples/segmentation/plot_mask_slic
   /auto_examples/segmentation/plot_random_walker_segmentation
   /auto_examples/segmentation/plot_expand_labels
   /auto_examples/segmentation/plot_watershed
   /auto_examples/segmentation/plot_marked_watershed
   /auto_examples/segmentation/plot_label
   /auto_examples/segmentation/plot_segmentations
   /auto_examples/segmentation/plot_join_segmentations
   /auto_examples/segmentation/plot_rag
   /auto_examples/segmentation/plot_rag_merge
   /auto_examples/segmentation/plot_perimeters
   /auto_examples/segmentation/plot_boundary_merge
   /auto_examples/segmentation/plot_extrema
   /auto_examples/segmentation/plot_regionprops_table
   /auto_examples/segmentation/plot_hausdorff_distance
   /auto_examples/segmentation/plot_morphsnakes
   /auto_examples/segmentation/plot_trainable_segmentation
   /auto_examples/segmentation/plot_regionprops
   /auto_examples/segmentation/plot_floodfill
   /auto_examples/segmentation/plot_metrics
   /auto_examples/segmentation/plot_euler_number
   /auto_examples/segmentation/plot_rolling_ball