<!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: itkVoronoiSegmentationImageFilterBase.h Source File</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="navpath"><a class="el" href="dir_02e23d841c198393a6e961e9a0678fff.html">Code</a> » <a class="el" href="dir_16b0d2d22c345042f35cebae66b36010.html">Algorithms</a> </div> <div class="contents"> <h1>itkVoronoiSegmentationImageFilterBase.h</h1><a href="itkVoronoiSegmentationImageFilterBase_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*=========================================================================</span> <a name="l00002"></a>00002 <span class="comment"></span> <a name="l00003"></a>00003 <span class="comment"> Program: Insight Segmentation & Registration Toolkit</span> <a name="l00004"></a>00004 <span class="comment"> Module: $RCSfile: itkVoronoiSegmentationImageFilterBase.h,v $</span> <a name="l00005"></a>00005 <span class="comment"> Language: C++</span> <a name="l00006"></a>00006 <span class="comment"> Date: $Date: 2009-01-27 19:30:17 $</span> <a name="l00007"></a>00007 <span class="comment"> Version: $Revision: 1.29 $</span> <a name="l00008"></a>00008 <span class="comment"></span> <a name="l00009"></a>00009 <span class="comment"> Copyright (c) Insight Software Consortium. All rights reserved.</span> <a name="l00010"></a>00010 <span class="comment"> See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.</span> <a name="l00011"></a>00011 <span class="comment"></span> <a name="l00012"></a>00012 <span class="comment"> This software is distributed WITHOUT ANY WARRANTY; without even </span> <a name="l00013"></a>00013 <span class="comment"> the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR </span> <a name="l00014"></a>00014 <span class="comment"> PURPOSE. See the above copyright notices for more information.</span> <a name="l00015"></a>00015 <span class="comment"></span> <a name="l00016"></a>00016 <span class="comment">=========================================================================*/</span> <a name="l00017"></a>00017 <span class="preprocessor">#ifndef __itkVoronoiSegmentationImageFilterBase_h</span> <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkVoronoiSegmentationImageFilterBase_h</span> <a name="l00019"></a>00019 <span class="preprocessor"></span> <a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="itkImageToImageFilter_8h.html">itkImageToImageFilter.h</a>"</span> <a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkVoronoiDiagram2D_8h.html">itkVoronoiDiagram2D.h</a>"</span> <a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkVoronoiDiagram2DGenerator_8h.html">itkVoronoiDiagram2DGenerator.h</a>"</span> <a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="itkImage_8h.html">itkImage.h</a>"</span> <a name="l00024"></a>00024 <a name="l00025"></a>00025 <span class="keyword">namespace </span>itk <a name="l00026"></a>00026 { <a name="l00027"></a>00027 <a name="l00058"></a>00058 <span class="keyword">template</span> <<span class="keyword">class</span> TInputImage, <span class="keyword">class</span> TOutputImage,<span class="keyword">class</span> TBinaryPriorImage=Image<<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>,2> > <a name="l00059"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html">00059</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html">VoronoiSegmentationImageFilterBase</a>: <a name="l00060"></a>00060 <span class="keyword">public</span> <a class="code" href="classitk_1_1ImageToImageFilter.html" title="Base class for filters that take an image as input and produce an image as output...">ImageToImageFilter</a><TInputImage,TOutputImage> <a name="l00061"></a>00061 { <a name="l00062"></a>00062 <span class="keyword">public</span>: <a name="l00064"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#da058a22bb6aea284fb4d7b649b98bd6">00064</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html">VoronoiSegmentationImageFilterBase</a> <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Self</a>; <a name="l00065"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#aa59a52370fa301a03b6d5ed2eff5faa">00065</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ImageToImageFilter.html">ImageToImageFilter<TInputImage,TOutputImage></a> <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Superclass</a>; <a name="l00066"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#ba73cc8e86bde4b552ebc4645f5ab0d9">00066</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SmartPointer.html">SmartPointer <Self></a> <a class="code" href="classitk_1_1SmartPointer.html">Pointer</a>; <a name="l00067"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#14262a056b1ab5472cbd1b71b6612026">00067</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SmartPointer.html">SmartPointer<const Self></a> <a class="code" href="classitk_1_1SmartPointer.html">ConstPointer</a>; <a name="l00068"></a>00068 <a name="l00070"></a>00070 <a class="code" href="itkMacro_8h.html#0fdc15685afa271857c57e7cd482f30c">itkNewMacro</a>(<a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Self</a>); <a name="l00071"></a>00071 <a name="l00073"></a>00073 <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html">VoronoiSegmentationImageFilterBase</a>,<a class="code" href="classitk_1_1ImageToImageFilter.html" title="Base class for filters that take an image as input and produce an image as output...">ImageToImageFilter</a>); <a name="l00074"></a>00074 <a name="l00076"></a>00076 <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(ImageDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, <a name="l00077"></a>00077 TInputImage::ImageDimension); <a name="l00078"></a>00078 <a name="l00080"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#753cf717244fd62ecab2f9846b46bf2e">00080</a> <span class="keyword">typedef</span> TInputImage <a class="code" href="namespaceHardConnectedComponentImageFilter.html#3742cbac150bee74daa9aab85ed80623">InputImageType</a>; <a name="l00081"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#ac2da3764a30a7e3e0b27edb08af524b">00081</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">TInputImage::Pointer</a> InputImagePointer; <a name="l00082"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#ed5c951c0a84825a3a169d7c51cbd28c">00082</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#68fafcc6909430ccd70cbc4aeee0107c">TInputImage::ConstPointer</a> InputImageConstPointer; <a name="l00083"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#96959066979fe497347730c864ef2282">00083</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">TInputImage::IndexType</a> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">IndexType</a>; <a name="l00084"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#10a20aa577f56307ef524321fb171181">00084</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#5bf82236e1e50e653de84c8ead448599">TInputImage::SizeType</a> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#5bf82236e1e50e653de84c8ead448599">SizeType</a>; <a name="l00085"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#0f64279ec4037ccdb6d60eb4cba59ce8">00085</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ed8c4a40607d317c666eb96ea265e126">TInputImage::RegionType</a> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ed8c4a40607d317c666eb96ea265e126">RegionType</a>; <a name="l00086"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#616c10d6fb456165a18af355c1a79aaa">00086</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> TInputImage::PixelType PixelType; <a name="l00087"></a>00087 <a name="l00088"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#8a647441c5add105b511ae8cdd86a435">00088</a> <span class="keyword">typedef</span> TOutputImage <a class="code" href="namespaceHardConnectedComponentImageFilter.html#386ea018cab3835dcdff2603f4d2280e">OutputImageType</a>; <a name="l00089"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#f8a1089264765a5ed665762814cee491">00089</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> TOutputImage::PixelType <a class="code" href="namespaceHardConnectedComponentImageFilter.html#73549c9066bb62470db248f27cde10d2">OutputPixelType</a>; <a name="l00090"></a>00090 <a name="l00091"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#0c26b61aa32ae70e35eef00e1dd000ad">00091</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1VoronoiDiagram2D.html" title="Implements the 2-Dimensional Voronoi Diagram.">VoronoiDiagram2D<double></a> <a class="code" href="classitk_1_1VoronoiDiagram2D.html" title="Implements the 2-Dimensional Voronoi Diagram.">VoronoiDiagram</a>; <a name="l00092"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#72e90d96e0de6bc4092b2a62fcc364c6">00092</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1VoronoiDiagram2DGenerator.html" title="Implement the Sweep Line Algorithm for the construction of the 2D Voronoi Diagram...">VoronoiDiagram2DGenerator<double></a> <a class="code" href="classitk_1_1VoronoiDiagram2DGenerator.html" title="Implement the Sweep Line Algorithm for the construction of the 2D Voronoi Diagram...">VoronoiDiagramGenerator</a>; <a name="l00093"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#9a192a73bb3a88462841aab570a78d2d">00093</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Point.html" title="A templated class holding a geometric point in n-Dimensional space.">VoronoiDiagram::PointType</a> <a class="code" href="classitk_1_1Point.html" title="A templated class holding a geometric point in n-Dimensional space.">PointType</a>; <a name="l00094"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#858676da3873277a2cde9086c0a68327">00094</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1PolygonCell.html">VoronoiDiagram::CellType</a> <a class="code" href="classitk_1_1PolygonCell.html">CellType</a>; <a name="l00095"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#daa412474711137245a9a17848f10420">00095</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> VoronoiDiagram::CellAutoPointer CellAutoPointer; <a name="l00096"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#130de76de5b35f9f3a732e1ad2e27546">00096</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">VoronoiDiagram::Pointer</a> <a class="code" href="classitk_1_1SmartPointer.html">VoronoiPointer</a>; <a name="l00097"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#9006a8eb8ed656be481f107191fc68b4">00097</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> CellType::PointIdIterator PointIdIterator; <a name="l00098"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#dd442b0c4b497c5f91c727b66402c81e">00098</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> VoronoiDiagram::SeedsType SeedsType; <a name="l00099"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#fc09d216ad634737169a9e314e0dfb66">00099</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> VoronoiDiagram::SeedsIterator SeedsIterator; <a name="l00100"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#8d13a496b547f97e297ad3b4899e9f75">00100</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> VoronoiDiagram::NeighborIdIterator NeighborIdIterator; <a name="l00101"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#7b494effeb705a2aa77ee07689dc56e3">00101</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> VoronoiDiagram::VoronoiEdgeIterator EdgeIterator; <a name="l00102"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#49128592b44df2cd23ede3bc72b30a4d">00102</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1VoronoiDiagram2D_1_1VoronoiEdge.html">VoronoiDiagram::VoronoiEdge</a> <a class="code" href="classitk_1_1VoronoiDiagram2D_1_1VoronoiEdge.html">EdgeInfo</a>; <a name="l00103"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#fbb030687be3add6775ee97a340c0aa5">00103</a> <span class="keyword">typedef</span> std::vector<PointType> PointTypeVector; <a name="l00104"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#0bf6d9e589be2ed4067a702c9bb26f99">00104</a> <span class="keyword">typedef</span> std::deque<PointType> PointTypeDeque; <a name="l00105"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#7b0ab51fc1f2644447ed1298da1eecac">00105</a> <span class="keyword">typedef</span> TBinaryPriorImage <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">BinaryObjectImage</a>; <a name="l00106"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#c3455e6862f43f0b3384480e9c1241ee">00106</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">BinaryObjectImage::Pointer</a> <a class="code" href="classitk_1_1SmartPointer.html">BinaryObjectImagePointer</a>; <a name="l00107"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#97ca55c16797239cee76d28e7112d015">00107</a> <span class="keyword">typedef</span> std::vector<IndexType> IndexList; <a name="l00108"></a>00108 <a name="l00110"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#8b30dd3ac2644e696296ffcd898db61e">00110</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">Image<unsigned char,2></a> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">VDImage</a>; <a name="l00111"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#d5ff423b86b38fbb9530dd1bfa31ffde">00111</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">VDImage::Pointer</a> <a class="code" href="classitk_1_1SmartPointer.html">VDImagePointer</a>; <a name="l00112"></a>00112 <a name="l00114"></a>00114 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(NumberOfSeeds, <span class="keywordtype">int</span>); <a name="l00115"></a>00115 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(NumberOfSeeds, <span class="keywordtype">int</span>); <a name="l00117"></a>00117 <a name="l00119"></a>00119 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(MinRegion, <span class="keywordtype">int</span>); <a name="l00120"></a>00120 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(MinRegion, <span class="keywordtype">int</span>); <a name="l00122"></a>00122 <a name="l00125"></a>00125 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(Steps, <span class="keywordtype">int</span>); <a name="l00126"></a>00126 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(Steps, <span class="keywordtype">int</span>); <a name="l00128"></a>00128 <a name="l00130"></a>00130 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(LastStepSeeds, <span class="keywordtype">int</span>); <a name="l00131"></a>00131 <a name="l00133"></a>00133 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(NumberOfSeedsToAdded, <span class="keywordtype">int</span>); <a name="l00134"></a>00134 <a name="l00136"></a>00136 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(UseBackgroundInAPrior, <span class="keywordtype">bool</span>); <a name="l00137"></a>00137 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(UseBackgroundInAPrior, <span class="keywordtype">bool</span>); <a name="l00139"></a>00139 <a name="l00141"></a>00141 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(OutputBoundary, <span class="keywordtype">bool</span>); <a name="l00142"></a>00142 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(OutputBoundary, <span class="keywordtype">bool</span>); <a name="l00144"></a>00144 <a name="l00147"></a>00147 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(InteractiveSegmentation, <span class="keywordtype">bool</span>); <a name="l00148"></a>00148 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(InteractiveSegmentation, <span class="keywordtype">bool</span>); <a name="l00149"></a>00149 <a class="code" href="itkMacro_8h.html#9e7d129ffebb09fd28bc213e02d87248">itkBooleanMacro</a>(InteractiveSegmentation); <a name="l00151"></a>00151 <a name="l00153"></a>00153 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(MeanDeviation, <span class="keywordtype">double</span>); <a name="l00154"></a>00154 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(MeanDeviation, <span class="keywordtype">double</span>); <a name="l00156"></a>00156 <a name="l00158"></a>00158 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(<a class="code" href="classitk_1_1Size.html" title="Represent the size (bounds) of a n-dimensional image.">Size</a>,<a class="code" href="namespaceHardConnectedComponentImageFilter.html#5bf82236e1e50e653de84c8ead448599">SizeType</a>); <a name="l00159"></a>00159 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(<a class="code" href="classitk_1_1Size.html" title="Represent the size (bounds) of a n-dimensional image.">Size</a>,<a class="code" href="namespaceHardConnectedComponentImageFilter.html#5bf82236e1e50e653de84c8ead448599">SizeType</a>); <a name="l00161"></a>00161 <a name="l00164"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#93840e17818ec44f2ef12e8c2a97efdc">00164</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#93840e17818ec44f2ef12e8c2a97efdc">TakeAPrior</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">BinaryObjectImage</a>*){} <a name="l00165"></a>00165 <a name="l00167"></a>00167 <span class="keywordtype">void</span> RunSegment(<span class="keywordtype">void</span>); <a name="l00168"></a>00168 <a name="l00170"></a>00170 <span class="keywordtype">void</span> RunSegmentOneStep(<span class="keywordtype">void</span>); <a name="l00171"></a>00171 <a name="l00173"></a>00173 <span class="keyword">virtual</span> <span class="keywordtype">void</span> MakeSegmentBoundary(<span class="keywordtype">void</span>); <a name="l00174"></a>00174 <span class="keyword">virtual</span> <span class="keywordtype">void</span> MakeSegmentObject(<span class="keywordtype">void</span>); <a name="l00176"></a>00176 <a name="l00178"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#1d7cf2cbca9b04a125f1fed770502e1f">00178</a> <a class="code" href="classitk_1_1SmartPointer.html">VoronoiPointer</a> GetVoronoiDiagram(<span class="keywordtype">void</span>) <a name="l00179"></a>00179 { <span class="keywordflow">return</span> m_WorkingVD; } <a name="l00180"></a>00180 <a name="l00184"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#1cfaf14c440b8a18b61238fa2642471a">00184</a> <span class="keywordtype">void</span> SetSeeds(<span class="keywordtype">int</span> num, SeedsIterator begin) <a name="l00185"></a>00185 { <a name="l00186"></a>00186 m_NumberOfSeeds = num; <a name="l00187"></a>00187 m_WorkingVD->SetSeeds(num,begin); <a name="l00188"></a>00188 } <a name="l00190"></a>00190 <a name="l00192"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#aeec3376a947a642ab8236e643433c9c">00192</a> <a class="code" href="classitk_1_1Point.html" title="A templated class holding a geometric point in n-Dimensional space.">PointType</a> GetSeed(<span class="keywordtype">int</span> SeedID) <a name="l00193"></a>00193 { <span class="keywordflow">return</span> m_WorkingVD->GetSeed(SeedID); } <a name="l00194"></a>00194 <a name="l00196"></a>00196 <span class="keywordtype">void</span> DrawDiagram(VDImagePointer result,<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> incolor, <a name="l00197"></a>00197 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> outcolor,<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> boundcolor); <a name="l00198"></a>00198 <a name="l00199"></a>00199 <span class="keywordtype">void</span> BeforeNextStep(<span class="keywordtype">void</span>); <a name="l00200"></a>00200 <a name="l00203"></a>00203 <span class="keyword">virtual</span> <span class="keywordtype">void</span> GenerateInputRequestedRegion(); <a name="l00204"></a>00204 <a name="l00207"></a>00207 <span class="keyword">virtual</span> <span class="keywordtype">void</span> EnlargeOutputRequestedRegion(<a class="code" href="classitk_1_1DataObject.html" title="Base class for all data objects in ITK.">DataObject</a> *output); <a name="l00208"></a>00208 <a name="l00209"></a>00209 <span class="keyword">protected</span>: <a name="l00210"></a>00210 <a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html">VoronoiSegmentationImageFilterBase</a>(); <a name="l00211"></a>00211 ~<a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html">VoronoiSegmentationImageFilterBase</a>(); <a name="l00212"></a>00212 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#920ae03048a5ad715d803ca2e92b52de">PrintSelf</a>(std::ostream& os, <a class="code" href="classitk_1_1Indent.html" title="Control indentation during Print() invocation.">Indent</a> indent) <span class="keyword">const</span>; <a name="l00213"></a>00213 <a name="l00214"></a>00214 <span class="keywordtype">void</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#f75a5945cdd8315676941024a0b8c1e9">GenerateData</a>(<span class="keywordtype">void</span>); <span class="comment">//general pipeline function.</span> <a name="l00215"></a>00215 <a name="l00216"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#be30ffd6ea01b6f3f62568744919ce95">00216</a> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#5bf82236e1e50e653de84c8ead448599">SizeType</a> m_Size; <a name="l00217"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#c15dc37d26af92ecc1f6fd37e0d17b7b">00217</a> <span class="keywordtype">int</span> m_NumberOfSeeds; <a name="l00218"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#24aa0d0d4913e8ac2c867a242fe399a4">00218</a> <span class="keywordtype">int</span> m_MinRegion; <a name="l00219"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#2a81d599d5c92aaa6f4a7cca5910aa43">00219</a> <span class="keywordtype">int</span> m_Steps; <a name="l00220"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#481fde7f5e2e4f452a42d41386b036c5">00220</a> <span class="keywordtype">int</span> m_LastStepSeeds; <a name="l00221"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#93faf5463c77d1d5d1f5493e3eec5c56">00221</a> <span class="keywordtype">int</span> m_NumberOfSeedsToAdded; <a name="l00222"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#58bfdf8da754d87cd600fdbc83ffee1c">00222</a> <span class="keywordtype">int</span> m_NumberOfBoundary; <a name="l00223"></a>00223 <a name="l00224"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#5f64b43bf3084f949d16486c7712328a">00224</a> std::vector<int> m_NumberOfPixels; <a name="l00225"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#67d9ed8a3dc1d124994cb1fa5eec8da0">00225</a> std::vector<unsigned char> m_Label; <a name="l00226"></a>00226 <a name="l00227"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#b5f4650e8db25c802f183ddd805d7039">00227</a> <span class="keywordtype">double</span> m_MeanDeviation; <a name="l00228"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#4224beb388f01ea138863ccd26d090dd">00228</a> <span class="keywordtype">bool</span> m_UseBackgroundInAPrior; <a name="l00229"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#c3e67571f872e7960b7e37265f44c658">00229</a> <span class="keywordtype">bool</span> m_OutputBoundary; <span class="comment">//if =1 then output the boundaries, if = 0 then output the object.</span> <a name="l00230"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#c636c29d8733b4ee83b0b39183c9537c">00230</a> <span class="keywordtype">bool</span> m_InteractiveSegmentation; <a name="l00231"></a>00231 <a name="l00232"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#bb2d24abbae396e1c4108833868e2fae">00232</a> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">VoronoiDiagram::Pointer</a> m_WorkingVD; <a name="l00233"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#cf5c5759d2a3da5a162eeb402627ee37">00233</a> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">VoronoiDiagramGenerator::Pointer</a> m_VDGenerator; <a name="l00234"></a>00234 <a name="l00235"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#2fc71a748fe33596ce74c1ebadab7a76">00235</a> std::vector<PointType> m_SeedsToAdded; <a name="l00236"></a>00236 <a name="l00237"></a>00237 <span class="comment">// private methods:</span> <a name="l00238"></a>00238 <span class="comment">// Classify all the voronoi cells as interior , exterior or boundary.</span> <a name="l00239"></a>00239 <span class="keyword">virtual</span> <span class="keywordtype">void</span> ClassifyDiagram(<span class="keywordtype">void</span>); <a name="l00240"></a>00240 <a name="l00241"></a>00241 <span class="comment">// Generate the seeds to be added by dividing the boundary cells.</span> <a name="l00242"></a>00242 <span class="keyword">virtual</span> <span class="keywordtype">void</span> GenerateAddingSeeds(<span class="keywordtype">void</span>); <a name="l00243"></a>00243 <a name="l00244"></a>00244 <span class="comment">// Compute the statistics of the pixels inside the cell.</span> <a name="l00245"></a>00245 <span class="keywordtype">void</span> GetPixelIndexFromPolygon(PointTypeDeque VertList, IndexList *PixelPool); <a name="l00246"></a><a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html#d22eb7968c19b9dff7053fd6de4224ef">00246</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> TestHomogeneity(IndexList&) <a name="l00247"></a>00247 {<span class="keywordflow">return</span> 1;} <a name="l00248"></a>00248 <a name="l00249"></a>00249 <span class="keywordtype">void</span> FillPolygon(PointTypeDeque vertlist, <a class="code" href="namespaceHardConnectedComponentImageFilter.html#73549c9066bb62470db248f27cde10d2">OutputPixelType</a> color=1); <a name="l00250"></a>00250 <a name="l00251"></a>00251 <span class="comment">// Draw a straight line to the output image.</span> <a name="l00252"></a>00252 <span class="keywordtype">void</span> drawLine(PointType p1,PointType p2); <a name="l00253"></a>00253 <a name="l00254"></a>00254 <span class="comment">// Draw the intermedia Voronoi Diagram structure. </span> <a name="l00255"></a>00255 <span class="keywordtype">void</span> drawVDline(VDImagePointer result,PointType p1,PointType p2, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> color); <a name="l00256"></a>00256 <a name="l00257"></a>00257 <span class="keyword">private</span>: <a name="l00258"></a>00258 <a class="code" href="classitk_1_1VoronoiSegmentationImageFilterBase.html">VoronoiSegmentationImageFilterBase</a>(<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a>&); <span class="comment">//purposely not implemented</span> <a name="l00259"></a>00259 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a>&); <span class="comment">//purposely not implemented</span> <a name="l00260"></a>00260 <a name="l00261"></a>00261 }; <a name="l00262"></a>00262 <a name="l00263"></a>00263 }<span class="comment">//end namespace</span> <a name="l00264"></a>00264 <a name="l00265"></a>00265 <a name="l00266"></a>00266 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span> <a name="l00267"></a>00267 <span class="preprocessor"></span><span class="preprocessor">#include "itkVoronoiSegmentationImageFilterBase.txx"</span> <a name="l00268"></a>00268 <span class="preprocessor">#endif</span> <a name="l00269"></a>00269 <span class="preprocessor"></span> <a name="l00270"></a>00270 <span class="preprocessor">#endif</span> <a name="l00271"></a>00271 <span class="preprocessor"></span> </pre></div></div> <hr><address><small> Generated at Fri May 8 00:37:13 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>