Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > d5e74628f0e673bb8680aebce32b2c04 > files > 17641

itk-doc-3.12.0-1mdv2010.0.i586.rpm

<!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: itkVectorImage.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>&nbsp;&nbsp; 
<a href="modules.html" class="qindex">Groups</a>&nbsp;&nbsp;
<a href="namespaces.html" class="qindex">Namespace List</a>&nbsp;&nbsp;
<a href="hierarchy.html" class="qindex">Class Hierarchy</a>&nbsp;&nbsp;
<a href="classes.html" class="qindex">Alphabetical List</a>&nbsp;&nbsp;
<a href="annotated.html" class="qindex">Compound List</a>&nbsp;&nbsp; 
<a href="files.html" class="qindex">File
List</a>&nbsp;&nbsp; 
<a href="namespacemembers.html" class="qindex">Namespace Members</a>&nbsp;&nbsp; 
<a href="functions.html" class="qindex">Compound Members</a>&nbsp;&nbsp; 
<a href="globals.html" class="qindex">File Members</a>&nbsp;&nbsp;
<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>&nbsp;&raquo&nbsp;<a class="el" href="dir_ea7fc529ede9a38b0438cf13831ae873.html">Common</a>
  </div>
<div class="contents">
<h1>itkVectorImage.h</h1><a href="itkVectorImage_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 &amp; Registration Toolkit</span>
<a name="l00004"></a>00004 <span class="comment">  Module:    $RCSfile: itkVectorImage.h,v $</span>
<a name="l00005"></a>00005 <span class="comment">  Language:  C++</span>
<a name="l00006"></a>00006 <span class="comment">  Date:      $Date: 2008-10-19 20:27:36 $</span>
<a name="l00007"></a>00007 <span class="comment">  Version:   $Revision: 1.21 $</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 __itkVectorImage_h</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkVectorImage_h</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="itkImageBase_8h.html">itkImageBase.h</a>"</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkImageRegion_8h.html">itkImageRegion.h</a>"</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkImportImageContainer_8h.html">itkImportImageContainer.h</a>"</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="itkDefaultVectorPixelAccessor_8h.html">itkDefaultVectorPixelAccessor.h</a>"</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include "<a class="code" href="itkDefaultVectorPixelAccessorFunctor_8h.html">itkDefaultVectorPixelAccessorFunctor.h</a>"</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include "<a class="code" href="itkVectorImageNeighborhoodAccessorFunctor_8h.html">itkVectorImageNeighborhoodAccessorFunctor.h</a>"</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include "<a class="code" href="itkPoint_8h.html">itkPoint.h</a>"</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include "<a class="code" href="itkContinuousIndex_8h.html">itkContinuousIndex.h</a>"</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include "<a class="code" href="itkVariableLengthVector_8h.html">itkVariableLengthVector.h</a>"</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include "<a class="code" href="itkWeakPointer_8h.html">itkWeakPointer.h</a>"</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="keyword">namespace </span>itk
<a name="l00032"></a>00032 {
<a name="l00033"></a>00033 
<a name="l00078"></a>00078 <span class="keyword">template</span> &lt;<span class="keyword">class</span> TPixel, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> VImageDimension=3 &gt;
<a name="l00079"></a><a class="code" href="classitk_1_1VectorImage.html">00079</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1VectorImage.html" title="Templated n-dimensional vector image class.">VectorImage</a> : 
<a name="l00080"></a>00080     <span class="keyword">public</span> <a class="code" href="classitk_1_1ImageBase.html" title="Base class for templated image classes.">ImageBase</a>&lt; VImageDimension &gt;
<a name="l00081"></a>00081 {
<a name="l00082"></a>00082 <span class="keyword">public</span>:
<a name="l00084"></a><a class="code" href="classitk_1_1VectorImage.html#1eef7bd1748fafc8febf72ea3c45333b">00084</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1VectorImage.html" title="Templated n-dimensional vector image class.">VectorImage</a>                  <a class="code" href="classitk_1_1DataObject.html" title="Base class for all data objects in ITK.">Self</a>;
<a name="l00085"></a><a class="code" href="classitk_1_1VectorImage.html#8dad72e765c6b213195b8ac0555f1c9b">00085</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ImageBase.html">ImageBase&lt; VImageDimension &gt;</a> <a class="code" href="classitk_1_1Object.html" title="Base class for most itk classes.">Superclass</a>;
<a name="l00086"></a><a class="code" href="classitk_1_1VectorImage.html#424937a665f321be087b39863e1e3f57">00086</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SmartPointer.html">SmartPointer&lt;Self&gt;</a>           <a class="code" href="classitk_1_1SmartPointer.html">Pointer</a>;
<a name="l00087"></a><a class="code" href="classitk_1_1VectorImage.html#447c644c51b5922047eaaf6e375504c9">00087</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SmartPointer.html">SmartPointer&lt;const Self&gt;</a>     <a class="code" href="classitk_1_1SmartPointer.html">ConstPointer</a>;
<a name="l00088"></a><a class="code" href="classitk_1_1VectorImage.html#b0751859fbc525f02f9b72ca36231e89">00088</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1WeakPointer.html" title="Implements a weak reference to an object.">WeakPointer&lt;const Self&gt;</a>      <a class="code" href="classitk_1_1WeakPointer.html" title="Implements a weak reference to an object.">ConstWeakPointer</a>;
<a name="l00089"></a>00089 
<a name="l00091"></a>00091   <a class="code" href="itkMacro_8h.html#0fdc15685afa271857c57e7cd482f30c">itkNewMacro</a>(<a class="code" href="classitk_1_1DataObject.html" title="Base class for all data objects in ITK.">Self</a>);
<a name="l00092"></a>00092 
<a name="l00094"></a><a class="code" href="classitk_1_1VectorImage.html#55d9028359cb01e498628eed3cce24b6">00094</a>   <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1VectorImage.html" title="Templated n-dimensional vector image class.">VectorImage</a>, <a class="code" href="classitk_1_1ImageBase.html" title="Base class for templated image classes.">ImageBase</a>);
<a name="l00095"></a>00095 
<a name="l00100"></a>00100   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">VariableLengthVector&lt; TPixel &gt;</a> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">PixelType</a>;
<a name="l00101"></a>00101 
<a name="l00105"></a><a class="code" href="classitk_1_1VectorImage.html#0dc1a4c546a16e47b86f472dd4915bca">00105</a>   <span class="keyword">typedef</span> TPixel InternalPixelType;
<a name="l00106"></a>00106 
<a name="l00108"></a><a class="code" href="classitk_1_1VectorImage.html#e5e073b6d75c153fea42d6108b264334">00108</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">PixelType</a> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">ValueType</a>;
<a name="l00109"></a>00109 
<a name="l00110"></a><a class="code" href="classitk_1_1VectorImage.html#2fedd91ae40cd3c6b711093d0fc37538">00110</a>   <span class="keyword">typedef</span> InternalPixelType  IOPixelType;
<a name="l00111"></a>00111 
<a name="l00114"></a><a class="code" href="classitk_1_1VectorImage.html#379775603b4cf22e570e12d298858c39">00114</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1DefaultVectorPixelAccessor.html" title="Give access to partial aspects of a type.">DefaultVectorPixelAccessor&lt; InternalPixelType &gt;</a> <a class="code" href="classitk_1_1DefaultVectorPixelAccessor.html" title="Give access to partial aspects of a type.">AccessorType</a>;
<a name="l00115"></a>00115 
<a name="l00118"></a><a class="code" href="classitk_1_1VectorImage.html#28da3bd43ddc75965e9eb7a74536fcb3">00118</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1DefaultVectorPixelAccessorFunctor.html" title="This class provides a common API for pixel accessors for Image and VectorImage. (between...">DefaultVectorPixelAccessorFunctor&lt; Self &gt;</a>       <a class="code" href="classitk_1_1DefaultVectorPixelAccessorFunctor.html" title="This class provides a common API for pixel accessors for Image and VectorImage. (between...">AccessorFunctorType</a>;
<a name="l00119"></a>00119 
<a name="l00121"></a>00121   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1VectorImageNeighborhoodAccessorFunctor.html" title="Provides accessor interfaces to Access pixels and is meant to be used on pointers...">VectorImageNeighborhoodAccessorFunctor</a>&lt; 
<a name="l00122"></a><a class="code" href="classitk_1_1VectorImage.html#c30106a80035b69d6d834f445c0d479e">00122</a>                           <a class="code" href="classitk_1_1DataObject.html" title="Base class for all data objects in ITK.">Self</a> &gt;              <a class="code" href="classitk_1_1VectorImageNeighborhoodAccessorFunctor.html" title="Provides accessor interfaces to Access pixels and is meant to be used on pointers...">NeighborhoodAccessorFunctorType</a>;
<a name="l00123"></a>00123 
<a name="l00128"></a>00128   <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(ImageDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, VImageDimension);
<a name="l00129"></a>00129 
<a name="l00131"></a><a class="code" href="classitk_1_1VectorImage.html#9bb09a61c24818fc602069f7d416f3fa">00131</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ImportImageContainer.html">ImportImageContainer&lt;unsigned long, InternalPixelType&gt;</a> <a class="code" href="classitk_1_1ImportImageContainer.html">PixelContainer</a>;
<a name="l00132"></a>00132 
<a name="l00134"></a><a class="code" href="classitk_1_1VectorImage.html#036c997876c434627b3d7dc19ad6e9f4">00134</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">Superclass::IndexType</a>       <a class="code" href="classitk_1_1Index.html">IndexType</a>;
<a name="l00135"></a><a class="code" href="classitk_1_1VectorImage.html#f76b17676bee632793deb02a720e29f9">00135</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::IndexValueType  IndexValueType;
<a name="l00136"></a>00136 
<a name="l00138"></a><a class="code" href="classitk_1_1VectorImage.html#e029e3d1283ab1fbdf9d5524598592e4">00138</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::OffsetType <a class="code" href="classitk_1_1Offset.html" title="Represent the offset between two n-dimensional indexes in a n-dimensional image.">OffsetType</a>;
<a name="l00139"></a>00139 
<a name="l00141"></a><a class="code" href="classitk_1_1VectorImage.html#029af9f6c003bb9cfb8214a01a3e55ab">00141</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#5bf82236e1e50e653de84c8ead448599">Superclass::SizeType</a>  <a class="code" href="classitk_1_1Size.html">SizeType</a>;
<a name="l00142"></a>00142 
<a name="l00144"></a><a class="code" href="classitk_1_1VectorImage.html#bdba1056fe37168c2b4809ee9c8d139b">00144</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::DirectionType  <a class="code" href="classitk_1_1Matrix.html">DirectionType</a>;
<a name="l00145"></a>00145 
<a name="l00147"></a><a class="code" href="classitk_1_1VectorImage.html#b6affde6ec4fd1782629658776664fec">00147</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ed8c4a40607d317c666eb96ea265e126">Superclass::RegionType</a>  <a class="code" href="classitk_1_1ImageRegion.html" title="An image region represents a structured region of data.">RegionType</a>;
<a name="l00148"></a>00148 
<a name="l00151"></a><a class="code" href="classitk_1_1VectorImage.html#5c60480d7b794c3fa43691de6ab86af8">00151</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::SpacingType <a class="code" href="classitk_1_1Vector.html">SpacingType</a>;
<a name="l00152"></a>00152 
<a name="l00155"></a><a class="code" href="classitk_1_1VectorImage.html#d1739e0f35ac29d391d420851eec3b06">00155</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::PointType <a class="code" href="classitk_1_1Point.html">PointType</a>;
<a name="l00156"></a>00156 
<a name="l00158"></a><a class="code" href="classitk_1_1VectorImage.html#b3f1725bbd34b337ba164e8c91d59b22">00158</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">PixelContainer::Pointer</a> <a class="code" href="classitk_1_1SmartPointer.html">PixelContainerPointer</a>;
<a name="l00159"></a><a class="code" href="classitk_1_1VectorImage.html#e139efa20e935d4f209925461f0d9b1d">00159</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">PixelContainer::ConstPointer</a> <a class="code" href="classitk_1_1SmartPointer.html">PixelContainerConstPointer</a>;
<a name="l00160"></a>00160 
<a name="l00162"></a><a class="code" href="classitk_1_1VectorImage.html#5c67fb1eee0b06c3acb8071c0b1187b2">00162</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::OffsetValueType OffsetValueType;
<a name="l00163"></a>00163 
<a name="l00164"></a><a class="code" href="classitk_1_1VectorImage.html#4e4e8478f2137fa2821a486074084c9f">00164</a>   <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> VectorLengthType;
<a name="l00165"></a>00165 
<a name="l00168"></a>00168   <span class="keywordtype">void</span> Allocate();
<a name="l00169"></a>00169 
<a name="l00173"></a><a class="code" href="classitk_1_1VectorImage.html#d2bea4a834e7963cd1903d99286dbad6">00173</a>   <span class="keywordtype">void</span> SetRegions(<a class="code" href="classitk_1_1ImageRegion.html" title="An image region represents a structured region of data.">RegionType</a> region)
<a name="l00174"></a>00174     {
<a name="l00175"></a>00175     this-&gt;SetLargestPossibleRegion(region);
<a name="l00176"></a>00176     this-&gt;SetBufferedRegion(region);
<a name="l00177"></a>00177     this-&gt;SetRequestedRegion(region);
<a name="l00178"></a>00178     };
<a name="l00180"></a>00180 
<a name="l00181"></a><a class="code" href="classitk_1_1VectorImage.html#eee04c5b9a98d58fee42dd66b481c846">00181</a>   <span class="keywordtype">void</span> SetRegions(<a class="code" href="classitk_1_1Size.html">SizeType</a> size)
<a name="l00182"></a>00182     {
<a name="l00183"></a>00183     <a class="code" href="classitk_1_1ImageRegion.html" title="An image region represents a structured region of data.">RegionType</a> region; region.<a class="code" href="classitk_1_1ImageRegion.html#5c86511415de7c7d1cd9cdce03ea0ead">SetSize</a>(size);
<a name="l00184"></a>00184     this-&gt;SetLargestPossibleRegion(region);
<a name="l00185"></a>00185     this-&gt;SetBufferedRegion(region);
<a name="l00186"></a>00186     this-&gt;SetRequestedRegion(region);
<a name="l00187"></a>00187     };
<a name="l00188"></a>00188 
<a name="l00191"></a>00191   <span class="keyword">virtual</span> <span class="keywordtype">void</span> Initialize();
<a name="l00192"></a>00192 
<a name="l00195"></a>00195   <span class="keywordtype">void</span> FillBuffer(<span class="keyword">const</span> PixelType&amp; value);
<a name="l00196"></a>00196 
<a name="l00202"></a><a class="code" href="classitk_1_1VectorImage.html#cfdb869d68aee22ac1cc266cc142c693">00202</a>    <span class="keywordtype">void</span> SetPixel( <span class="keyword">const</span> <a class="code" href="classitk_1_1Index.html">IndexType</a> &amp;index, <span class="keyword">const</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">PixelType</a>&amp; value )
<a name="l00203"></a>00203     {
<a name="l00204"></a>00204     OffsetValueType offset = m_VectorLength * this-&gt;ComputeOffset(index);
<a name="l00205"></a>00205     <span class="keywordflow">for</span>( VectorLengthType i = 0; i &lt; m_VectorLength; i++ )
<a name="l00206"></a>00206       {
<a name="l00207"></a>00207       (*m_Buffer)[offset + i] = value[i];
<a name="l00208"></a>00208       }
<a name="l00209"></a>00209     }
<a name="l00210"></a>00210 
<a name="l00216"></a><a class="code" href="classitk_1_1VectorImage.html#9a6f54eb3e334f9f5a358a91c070340f">00216</a>   <span class="keyword">const</span> <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">PixelType</a> GetPixel(<span class="keyword">const</span> <a class="code" href="classitk_1_1Index.html">IndexType</a> &amp;index)<span class="keyword"> const</span>
<a name="l00217"></a>00217 <span class="keyword">    </span>{
<a name="l00218"></a>00218     OffsetValueType offset = m_VectorLength * this-&gt;ComputeOffset(index);
<a name="l00219"></a>00219     <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">PixelType</a> p( &amp;((*m_Buffer)[offset]), m_VectorLength ); 
<a name="l00220"></a>00220     <span class="keywordflow">return</span> p;
<a name="l00221"></a>00221     }
<a name="l00222"></a>00222 
<a name="l00227"></a><a class="code" href="classitk_1_1VectorImage.html#964b7ba2772d8127448c5101d2a04792">00227</a>   <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">PixelType</a>  GetPixel(<span class="keyword">const</span> <a class="code" href="classitk_1_1Index.html">IndexType</a> &amp;index )
<a name="l00228"></a>00228     {
<a name="l00229"></a>00229     OffsetValueType offset = m_VectorLength * this-&gt;ComputeOffset(index);
<a name="l00230"></a>00230     <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">PixelType</a> p( &amp;((*m_Buffer)[offset]), m_VectorLength ); 
<a name="l00231"></a>00231     <span class="keywordflow">return</span> p;
<a name="l00232"></a>00232     }
<a name="l00233"></a>00233 
<a name="l00239"></a><a class="code" href="classitk_1_1VectorImage.html#dfa6d032b497a1817c11fa84706df61d">00239</a>   <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">PixelType</a> operator[](<span class="keyword">const</span> <a class="code" href="classitk_1_1Index.html">IndexType</a> &amp;index)
<a name="l00240"></a>00240      { <span class="keywordflow">return</span> this-&gt;GetPixel(index); }
<a name="l00241"></a>00241 
<a name="l00247"></a><a class="code" href="classitk_1_1VectorImage.html#5ea70af632dffd48ddfd7e43891343da">00247</a>   <a class="code" href="classitk_1_1VariableLengthVector.html" title="VariableLengthVector is intended to represent an array whose length can be defined...">PixelType</a> operator[](<span class="keyword">const</span> <a class="code" href="classitk_1_1Index.html">IndexType</a> &amp;index)<span class="keyword"> const</span>
<a name="l00248"></a>00248 <span class="keyword">     </span>{ <span class="keywordflow">return</span> this-&gt;GetPixel(index); }
<a name="l00249"></a>00249 
<a name="l00252"></a><a class="code" href="classitk_1_1VectorImage.html#46c42b6a93313be525911663a13dd2bc">00252</a>   InternalPixelType * GetBufferPointer()
<a name="l00253"></a>00253     { <span class="keywordflow">return</span> m_Buffer ? m_Buffer-&gt;GetBufferPointer() : 0; }
<a name="l00254"></a><a class="code" href="classitk_1_1VectorImage.html#68452ff69b23b553ceabed6f324827c8">00254</a>   <span class="keyword">const</span> InternalPixelType *GetBufferPointer()<span class="keyword"> const</span>
<a name="l00255"></a>00255 <span class="keyword">    </span>{ <span class="keywordflow">return</span> m_Buffer ? m_Buffer-&gt;GetBufferPointer() : 0; }
<a name="l00257"></a>00257 
<a name="l00259"></a><a class="code" href="classitk_1_1VectorImage.html#4aa0475e916a3b1fbaee5edc089f8c08">00259</a>   <a class="code" href="classitk_1_1ImportImageContainer.html">PixelContainer</a>* GetPixelContainer()
<a name="l00260"></a>00260     { <span class="keywordflow">return</span> m_Buffer.GetPointer(); }
<a name="l00261"></a>00261 
<a name="l00263"></a><a class="code" href="classitk_1_1VectorImage.html#d0788f0418fbf6950b7b83f4e30e5d23">00263</a>   <span class="keyword">const</span> <a class="code" href="classitk_1_1ImportImageContainer.html">PixelContainer</a>* GetPixelContainer()<span class="keyword"> const</span>
<a name="l00264"></a>00264 <span class="keyword">    </span>{ <span class="keywordflow">return</span> m_Buffer.GetPointer(); }
<a name="l00265"></a>00265 
<a name="l00268"></a>00268   <span class="keywordtype">void</span> SetPixelContainer( PixelContainer *container );
<a name="l00269"></a>00269 
<a name="l00280"></a>00280   <span class="keyword">virtual</span> <span class="keywordtype">void</span> Graft(<span class="keyword">const</span> <a class="code" href="classitk_1_1DataObject.html" title="Base class for all data objects in ITK.">DataObject</a> *data);
<a name="l00281"></a>00281 
<a name="l00283"></a><a class="code" href="classitk_1_1VectorImage.html#9d14ee7e051397511111c5b75646e489">00283</a>   <a class="code" href="classitk_1_1DefaultVectorPixelAccessor.html" title="Give access to partial aspects of a type.">AccessorType</a> GetPixelAccessor( <span class="keywordtype">void</span> ) 
<a name="l00284"></a>00284     { <span class="keywordflow">return</span> <a class="code" href="classitk_1_1DefaultVectorPixelAccessor.html" title="Give access to partial aspects of a type.">AccessorType</a>( m_VectorLength ); }
<a name="l00285"></a>00285 
<a name="l00287"></a><a class="code" href="classitk_1_1VectorImage.html#e6e7006c44b6641a6141f9052f398a90">00287</a>   <span class="keyword">const</span> <a class="code" href="classitk_1_1DefaultVectorPixelAccessor.html" title="Give access to partial aspects of a type.">AccessorType</a> GetPixelAccessor( <span class="keywordtype">void</span> )<span class="keyword"> const</span>
<a name="l00288"></a>00288 <span class="keyword">    </span>{ <span class="keywordflow">return</span> <a class="code" href="classitk_1_1DefaultVectorPixelAccessor.html" title="Give access to partial aspects of a type.">AccessorType</a>( m_VectorLength ); }
<a name="l00289"></a>00289 
<a name="l00291"></a><a class="code" href="classitk_1_1VectorImage.html#7922d3d02bb18b52b08188a576e7c32a">00291</a>   <a class="code" href="classitk_1_1VectorImageNeighborhoodAccessorFunctor.html" title="Provides accessor interfaces to Access pixels and is meant to be used on pointers...">NeighborhoodAccessorFunctorType</a> GetNeighborhoodAccessor() 
<a name="l00292"></a>00292     { <span class="keywordflow">return</span> <a class="code" href="classitk_1_1VectorImageNeighborhoodAccessorFunctor.html" title="Provides accessor interfaces to Access pixels and is meant to be used on pointers...">NeighborhoodAccessorFunctorType</a>( m_VectorLength ); }
<a name="l00293"></a>00293 
<a name="l00295"></a><a class="code" href="classitk_1_1VectorImage.html#6bef2aa6c7be4aa3cc81eb014a09c31b">00295</a>   <span class="keyword">const</span> <a class="code" href="classitk_1_1VectorImageNeighborhoodAccessorFunctor.html" title="Provides accessor interfaces to Access pixels and is meant to be used on pointers...">NeighborhoodAccessorFunctorType</a> GetNeighborhoodAccessor()<span class="keyword"> const</span>
<a name="l00296"></a>00296 <span class="keyword">    </span>{ <span class="keywordflow">return</span> <a class="code" href="classitk_1_1VectorImageNeighborhoodAccessorFunctor.html" title="Provides accessor interfaces to Access pixels and is meant to be used on pointers...">NeighborhoodAccessorFunctorType</a>(m_VectorLength); }
<a name="l00297"></a>00297 
<a name="l00298"></a>00298   
<a name="l00300"></a>00300   <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( VectorLength, VectorLengthType );
<a name="l00301"></a>00301   <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( VectorLength, VectorLengthType );
<a name="l00303"></a>00303 
<a name="l00305"></a>00305   <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> GetNumberOfComponentsPerPixel() <span class="keyword">const</span>;
<a name="l00306"></a>00306   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetNumberOfComponentsPerPixel( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>  n );
<a name="l00308"></a>00308 
<a name="l00309"></a>00309 <span class="keyword">protected</span>:
<a name="l00310"></a>00310   <a class="code" href="classitk_1_1VectorImage.html" title="Templated n-dimensional vector image class.">VectorImage</a>();
<a name="l00311"></a>00311   <span class="keywordtype">void</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#920ae03048a5ad715d803ca2e92b52de">PrintSelf</a>( std::ostream&amp; 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="l00312"></a><a class="code" href="classitk_1_1VectorImage.html#ecc79d8a218db9214142933fa83d4a64">00312</a>   <span class="keyword">virtual</span> <a class="code" href="classitk_1_1VectorImage.html#ecc79d8a218db9214142933fa83d4a64">~VectorImage</a>() {};
<a name="l00313"></a>00313   
<a name="l00314"></a>00314 <span class="keyword">private</span>:
<a name="l00315"></a>00315   <a class="code" href="classitk_1_1VectorImage.html" title="Templated n-dimensional vector image class.">VectorImage</a>( <span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a> &amp; ); <span class="comment">// purposely not implementated</span>
<a name="l00316"></a>00316   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a>&amp;); <span class="comment">//purposely not implemented</span>
<a name="l00317"></a>00317  
<a name="l00319"></a>00319   VectorLengthType m_VectorLength;
<a name="l00320"></a>00320 
<a name="l00322"></a>00322   PixelContainerPointer m_Buffer;
<a name="l00323"></a>00323 }; 
<a name="l00324"></a>00324 
<a name="l00325"></a>00325 
<a name="l00326"></a>00326 } <span class="comment">// end namespace itk</span>
<a name="l00327"></a>00327 
<a name="l00328"></a>00328 <span class="comment">// Define instantiation macro for this template.</span>
<a name="l00329"></a><a class="code" href="itkVectorImage_8h.html#15840f8f4fcd51f91f7fe1a65c825156">00329</a> <span class="preprocessor">#define ITK_TEMPLATE_VectorImage(_, EXPORT, x, y) namespace itk { \</span>
<a name="l00330"></a>00330 <span class="preprocessor">  _(2(class EXPORT VectorImage&lt; ITK_TEMPLATE_2 x &gt;)) \</span>
<a name="l00331"></a>00331 <span class="preprocessor">  namespace Templates { typedef VectorImage&lt; ITK_TEMPLATE_2 x &gt; VectorImage##y; } \</span>
<a name="l00332"></a>00332 <span class="preprocessor">  }</span>
<a name="l00333"></a>00333 <span class="preprocessor"></span>
<a name="l00334"></a>00334 <span class="preprocessor">#if ITK_TEMPLATE_EXPLICIT</span>
<a name="l00335"></a>00335 <span class="preprocessor"></span><span class="preprocessor"># include "Templates/itkVectorImage+-.h"</span>
<a name="l00336"></a>00336 <span class="preprocessor">#endif</span>
<a name="l00337"></a>00337 <span class="preprocessor"></span>
<a name="l00338"></a>00338 <span class="preprocessor">#if ITK_TEMPLATE_TXX</span>
<a name="l00339"></a>00339 <span class="preprocessor"></span><span class="preprocessor"># include "itkVectorImage.txx"</span>
<a name="l00340"></a>00340 <span class="preprocessor">#endif</span>
<a name="l00341"></a>00341 <span class="preprocessor"></span>
<a name="l00342"></a>00342 <span class="preprocessor">#endif</span>
<a name="l00343"></a>00343 <span class="preprocessor"></span>
</pre></div></div>
<hr><address><small>
Generated at Fri May 8 00:30:28 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>,
 &copy;&nbsp;1997-2000</small></address>
</body>
</html>