<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta name="robots" content="noindex"> <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>ITK: WatershedSegmenter Class Reference</title> <link href="DoxygenStyle.css" rel="stylesheet" type="text/css"> </head><body bgcolor="#ffffff"> <!-- Section customized for INSIGHT : Tue Jul 17 01:02:45 2001 --> <center> <a href="index.html" class="qindex">Main Page</a> <a href="modules.html" class="qindex">Groups</a> <a href="namespaces.html" class="qindex">Namespace List</a> <a href="hierarchy.html" class="qindex">Class Hierarchy</a> <a href="classes.html" class="qindex">Alphabetical List</a> <a href="annotated.html" class="qindex">Compound List</a> <a href="files.html" class="qindex">File List</a> <a href="namespacemembers.html" class="qindex">Namespace Members</a> <a href="functions.html" class="qindex">Compound Members</a> <a href="globals.html" class="qindex">File Members</a> <a href="pages.html" class="qindex">Concepts</a></center> <!-- Generated by Doxygen 1.5.9 --> <div class="contents"> <h1>WatershedSegmenter Class Reference<br> <small> [<a class="el" href="group__WatershedSegmentation.html">Watershed-based Segmentation Filters</a>]</small> </h1><!-- doxytag: class="WatershedSegmenter" --><code>#include <<a class="el" href="itkWatershedSegmenter_8h_source.html">itkWatershedSegmenter.h</a>></code> <p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> This filter implements the first step in the N-d watershed segmentation algorithm. It produces a segmented, labeled image from a scalar-valued image input. This filter is used in conjunction with <a class="el" href="classWatershedSegmentTreeGenerator.html">WatershedSegmentTreeGenerator</a> and WatershedRelabeler to produce a final segmented image volume. See <a class="el" href="classitk_1_1WatershedImageFilter.html" title="A low-level image analysis algorithm that automatically produces a hierarchy of segmented...">itk::WatershedImageFilter</a> for an overview of the entire algorithm and notes on the terminology used in describing it.<p> <dl class="user" compact><dt><b></b></dt><dd>The filter is designed to operate in streaming or non-streaming mode. For more information, see the <a class="el" href="classitk_1_1WatershedImageFilter.html" title="A low-level image analysis algorithm that automatically produces a hierarchy of segmented...">itk::WatershedImageFilter</a> documentation.</dd></dl> <dl class="user" compact><dt><b>Input</b></dt><dd>There is one input to this algorithm, a real-valued (scalar) <a class="el" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">itk::Image</a> of arbitrary dimension. The input is assumed to represents a height function, such as a gradient magnitude edge image. The filter can process an image of any dimension. Note that the terms ``pixel'' and ``voxel'' are interchangeable in this and other watershed component class documentation.</dd></dl> <dl class="user" compact><dt><b>Outputs</b></dt><dd>There are three potential outputs of this algorithm described below.</dd></dl> <dl class="user" compact><dt><b></b></dt><dd>The first output is a labeled image of unsigned long integers. This is an initial segmentation and labeling that is fed into successive components of the watershed algorithm.</dd></dl> <dl class="user" compact><dt><b></b></dt><dd>The second output is a table of segment information, <a class="el" href="classitk_1_1watershed_1_1SegmentTable.html">itk::watershed::SegmentTable</a>. This table is a record of each segment numbered in the initial segmentation (output number one) with relevant information needed in successive stages of the algorithm.</dd></dl> <dl class="user" compact><dt><b></b></dt><dd>The third output is a data structure containing boundary pixel information, <a class="el" href="classitk_1_1watershed_1_1Boundary.html">itk::watershed::Boundary</a>. This data is only generated if the flag DoBoundaryAnalysis is set to true and is only useful in streaming applications.</dd></dl> <dl class="user" compact><dt><b>Parameters</b></dt><dd>Threshold is specified as a percentage (0.0 - 1.0) of the maximum height of the image. This filter thresholds the input image to remove all values below <img class="formulaInl" alt="$ L = min + T * (max - min) $" src="form_75.png">, where <img class="formulaInl" alt="$ max, min $" src="form_76.png"> are the maximum, minimum values in the image and <img class="formulaInl" alt="$ T $" src="form_77.png"> is the threshold parameter value. Values in the image less than <img class="formulaInl" alt="$ L $" src="form_67.png"> are raised to <img class="formulaInl" alt="$ L $" src="form_67.png">.</dd></dl> <dl class="user" compact><dt><b></b></dt><dd>Thresholding minimum values in the image decreases the number of local minima in the image and produces an initial segmentation with fewer segments. The assumption is that the ``shallow'' regions that this thresholding eliminates are generally not of interest.</dd></dl> <dl class="see" compact><dt><b>See also:</b></dt><dd>WatershedImageFilter </dd></dl> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="itkWatershedSegmenter_8h_source.html">itkWatershedSegmenter.h</a></ul> </div> <hr><address><small> Generated at Fri May 8 00:43:11 2009 for ITK by <a href="http://www.stack.nl/~dimitri/doxygen/index.html"> <img src="http://www.stack.nl/~dimitri/doxygen/doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53> </a> 1.5.9 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2000</small></address> </body> </html>