Sophie

Sophie

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

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: itkVersorTransform.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>itkVersorTransform.h</h1><a href="itkVersorTransform_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: itkVersorTransform.h,v $</span>
<a name="l00005"></a>00005 <span class="comment">  Language:  C++</span>
<a name="l00006"></a>00006 <span class="comment">  Date:      $Date: 2006-08-09 04:35:32 $</span>
<a name="l00007"></a>00007 <span class="comment">  Version:   $Revision: 1.17 $</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 
<a name="l00018"></a>00018 <span class="preprocessor">#ifndef __itkVersorTransform_h</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define __itkVersorTransform_h</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkRigid3DTransform_8h.html">itkRigid3DTransform.h</a>"</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include "vnl/vnl_quaternion.h"</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include "<a class="code" href="itkVersor_8h.html">itkVersor.h</a>"</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="keyword">namespace </span>itk
<a name="l00027"></a>00027 {
<a name="l00028"></a>00028 
<a name="l00048"></a>00048 <span class="keyword">template</span> &lt; <span class="keyword">class</span> TScalarType=<span class="keywordtype">double</span> &gt;<span class="comment">//Data type for scalars (float or double)</span>
<a name="l00049"></a><a class="code" href="classitk_1_1VersorTransform.html">00049</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1VersorTransform.html">VersorTransform</a> : <span class="keyword">public</span> <a class="code" href="classitk_1_1Rigid3DTransform.html" title="Rigid3DTransform of a vector space (e.g. space coordinates).">Rigid3DTransform</a>&lt; TScalarType &gt; 
<a name="l00050"></a>00050 {
<a name="l00051"></a>00051 <span class="keyword">public</span>:
<a name="l00052"></a>00052 
<a name="l00054"></a><a class="code" href="classitk_1_1VersorTransform.html#dba23ea329daaa95b7d4e64278f33acb">00054</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1VersorTransform.html">VersorTransform</a>                   <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Self</a>;
<a name="l00055"></a><a class="code" href="classitk_1_1VersorTransform.html#79d1ca1d636af6190ef1dc09551d35aa">00055</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Rigid3DTransform.html" title="Rigid3DTransform of a vector space (e.g. space coordinates).">Rigid3DTransform&lt; TScalarType &gt;</a>   <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Superclass</a>;
<a name="l00056"></a><a class="code" href="classitk_1_1VersorTransform.html#603ba0208fd530ba4051fc68255705ac">00056</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="l00057"></a><a class="code" href="classitk_1_1VersorTransform.html#74f44697ad1fcd3e0024d26eacfed917">00057</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="l00058"></a>00058 
<a name="l00060"></a>00060   <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>( <a class="code" href="classitk_1_1VersorTransform.html">VersorTransform</a>, <a class="code" href="classitk_1_1Rigid3DTransform.html" title="Rigid3DTransform of a vector space (e.g. space coordinates).">Rigid3DTransform</a> );
<a name="l00061"></a>00061 
<a name="l00063"></a>00063   <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="l00064"></a>00064 
<a name="l00066"></a>00066   <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(SpaceDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, 3);
<a name="l00067"></a>00067   <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(InputSpaceDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, 3);
<a name="l00068"></a>00068   <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(OutputSpaceDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, 3);
<a name="l00069"></a>00069   <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(ParametersDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, 3);
<a name="l00071"></a>00071 
<a name="l00073"></a><a class="code" href="classitk_1_1VersorTransform.html#4b42808f5e27f1626341d3dfca01f51a">00073</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::ParametersType         ParametersType;
<a name="l00074"></a><a class="code" href="classitk_1_1VersorTransform.html#b121944b4a6e00d8e2877d8aea9f5c2d">00074</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::JacobianType           JacobianType;
<a name="l00075"></a><a class="code" href="classitk_1_1VersorTransform.html#5b0970d474beb33b080c2a26aef41abe">00075</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::ScalarType             ScalarType;
<a name="l00076"></a><a class="code" href="classitk_1_1VersorTransform.html#c02d5c53e351f0d79da0f12a3fc17941">00076</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::InputPointType         InputPointType;
<a name="l00077"></a><a class="code" href="classitk_1_1VersorTransform.html#31a04e7e4d892af700846f05fa274d42">00077</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::OutputPointType        OutputPointType;
<a name="l00078"></a><a class="code" href="classitk_1_1VersorTransform.html#d332b26fa0fdc739543733a6b6ea41bf">00078</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::InputVectorType        InputVectorType;
<a name="l00079"></a><a class="code" href="classitk_1_1VersorTransform.html#419930e33af54e1940a1b2631c25fcbc">00079</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::OutputVectorType       OutputVectorType;
<a name="l00080"></a><a class="code" href="classitk_1_1VersorTransform.html#e9fe654ba5f6af2ea67a4968c1f52668">00080</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::InputVnlVectorType     InputVnlVectorType;
<a name="l00081"></a><a class="code" href="classitk_1_1VersorTransform.html#62d853122fea46b75435949b88d24f93">00081</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::OutputVnlVectorType    OutputVnlVectorType;
<a name="l00082"></a>00082   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::InputCovariantVectorType 
<a name="l00083"></a><a class="code" href="classitk_1_1VersorTransform.html#224d0903d49aeeb7380f43e4be532618">00083</a>                                                       InputCovariantVectorType;
<a name="l00084"></a>00084   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::OutputCovariantVectorType
<a name="l00085"></a><a class="code" href="classitk_1_1VersorTransform.html#e18a51ae4fad9e61fc2391dddcc8f092">00085</a>                                                       OutputCovariantVectorType;
<a name="l00086"></a><a class="code" href="classitk_1_1VersorTransform.html#358bf57ae3e44e5dbca5202168ecdac6">00086</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::MatrixType             MatrixType;
<a name="l00087"></a><a class="code" href="classitk_1_1VersorTransform.html#32885e974d2d7cefcd7131ce81da6bf9">00087</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::InverseMatrixType      InverseMatrixType;
<a name="l00088"></a><a class="code" href="classitk_1_1VersorTransform.html#df5377100594268de01c3de3ea5abbea">00088</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::CenterType             CenterType;
<a name="l00089"></a><a class="code" href="classitk_1_1VersorTransform.html#637efb78a12b8732d0c44430a48d6f07">00089</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::OffsetType             OffsetType;
<a name="l00090"></a>00090 
<a name="l00092"></a><a class="code" href="classitk_1_1VersorTransform.html#2e555dbee73917c1395b3edcd708f388">00092</a>   <span class="keyword">typedef</span> vnl_quaternion&lt;TScalarType&gt;                 VnlQuaternionType;
<a name="l00093"></a>00093 
<a name="l00095"></a><a class="code" href="classitk_1_1VersorTransform.html#7d0cb0973aa50847db608d3bebd33bfb">00095</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Versor.html">Versor&lt;TScalarType&gt;</a>                   <a class="code" href="classitk_1_1Versor.html">VersorType</a>;
<a name="l00096"></a><a class="code" href="classitk_1_1VersorTransform.html#237a62b336e3cfcaae7ca7b4d54132a4">00096</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Vector.html">VersorType::VectorType</a>       <a class="code" href="classitk_1_1Vector.html">AxisType</a>;
<a name="l00097"></a><a class="code" href="classitk_1_1VersorTransform.html#3f3c86304fc43f05a8f3a5f088187842">00097</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> VersorType::ValueType        AngleType;
<a name="l00098"></a>00098 
<a name="l00107"></a>00107   <span class="keywordtype">void</span> SetParameters( <span class="keyword">const</span> ParametersType &amp; parameters );
<a name="l00108"></a>00108 
<a name="l00110"></a>00110   <span class="keyword">const</span> ParametersType&amp; GetParameters(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00111"></a>00111 
<a name="l00113"></a>00113   <span class="keywordtype">void</span> SetRotation( <span class="keyword">const</span> <a class="code" href="classitk_1_1Versor.html">VersorType</a> &amp; versor );
<a name="l00114"></a>00114   <span class="keywordtype">void</span> SetRotation( <span class="keyword">const</span> <a class="code" href="classitk_1_1Vector.html">AxisType</a> &amp; axis, AngleType angle );
<a name="l00115"></a>00115   <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>(<a class="code" href="classitk_1_1Versor.html" title="A templated class holding a unit quaternion.">Versor</a>, <a class="code" href="classitk_1_1Versor.html">VersorType</a>);
<a name="l00117"></a>00117 
<a name="l00119"></a>00119   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetIdentity(<span class="keywordtype">void</span>);
<a name="l00120"></a>00120 
<a name="l00126"></a>00126   <span class="keyword">const</span> JacobianType &amp; GetJacobian(<span class="keyword">const</span> InputPointType  &amp;point ) <span class="keyword">const</span>;
<a name="l00127"></a>00127 
<a name="l00128"></a>00128 <span class="keyword">protected</span>:
<a name="l00129"></a>00129 
<a name="l00131"></a>00131   <a class="code" href="classitk_1_1VersorTransform.html">VersorTransform</a>(<span class="keyword">const</span> MatrixType &amp;matrix,
<a name="l00132"></a>00132                   <span class="keyword">const</span> OutputVectorType &amp;offset);
<a name="l00133"></a>00133   <a class="code" href="classitk_1_1VersorTransform.html">VersorTransform</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputDims,
<a name="l00134"></a>00134                   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> paramDims);
<a name="l00135"></a>00135   <a class="code" href="classitk_1_1VersorTransform.html">VersorTransform</a>();
<a name="l00137"></a>00137 
<a name="l00139"></a><a class="code" href="classitk_1_1VersorTransform.html#94edcc916ae12e895c94534781dab8fc">00139</a>   <a class="code" href="classitk_1_1VersorTransform.html#94edcc916ae12e895c94534781dab8fc">~VersorTransform</a>(){};
<a name="l00140"></a>00140 
<a name="l00143"></a><a class="code" href="classitk_1_1VersorTransform.html#7f471c964e94b27067215c373e784328">00143</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetRotationMatrix(<span class="keyword">const</span> MatrixType &amp; matrix)
<a name="l00144"></a>00144     { this-&gt;Superclass::SetRotationMatrix( matrix ); }
<a name="l00145"></a>00145 
<a name="l00146"></a><a class="code" href="classitk_1_1VersorTransform.html#3ca0f6bdc6b474e1af681641fb10a60c">00146</a>   <span class="keywordtype">void</span> SetVarVersor(<span class="keyword">const</span> <a class="code" href="classitk_1_1Versor.html">VersorType</a> &amp; newVersor)
<a name="l00147"></a>00147     { m_Versor = newVersor; }
<a name="l00148"></a>00148 
<a name="l00150"></a>00150   <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="l00151"></a>00151 
<a name="l00154"></a>00154   <span class="keywordtype">void</span> ComputeMatrix(<span class="keywordtype">void</span>);
<a name="l00155"></a>00155   <span class="keywordtype">void</span> ComputeMatrixParameters(<span class="keywordtype">void</span>);
<a name="l00157"></a>00157 
<a name="l00158"></a>00158 <span class="keyword">private</span>:
<a name="l00160"></a>00160   <a class="code" href="classitk_1_1VersorTransform.html">VersorTransform</a>(<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a> &amp; other); <span class="comment">// Not implemented</span>
<a name="l00161"></a>00161 
<a name="l00163"></a>00163   <span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a> &amp; operator=( <span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a> &amp; ); <span class="comment">// Not implemented</span>
<a name="l00164"></a>00164 
<a name="l00166"></a>00166   VersorType    m_Versor;
<a name="l00167"></a>00167 
<a name="l00168"></a>00168 }; <span class="comment">//class VersorTransform</span>
<a name="l00169"></a>00169 
<a name="l00170"></a>00170 
<a name="l00171"></a>00171 }  <span class="comment">// namespace itk</span>
<a name="l00172"></a>00172 
<a name="l00173"></a>00173 <span class="comment">// Define instantiation macro for this template.</span>
<a name="l00174"></a><a class="code" href="itkVersorTransform_8h.html#8586ddf961adb1c96fcbecd1d50fbbcf">00174</a> <span class="preprocessor">#define ITK_TEMPLATE_VersorTransform(_, EXPORT, x, y) namespace itk { \</span>
<a name="l00175"></a>00175 <span class="preprocessor">  _(1(class EXPORT VersorTransform&lt; ITK_TEMPLATE_1 x &gt;)) \</span>
<a name="l00176"></a>00176 <span class="preprocessor">  namespace Templates { typedef VersorTransform&lt; ITK_TEMPLATE_1 x &gt; VersorTransform##y; } \</span>
<a name="l00177"></a>00177 <span class="preprocessor">  }</span>
<a name="l00178"></a>00178 <span class="preprocessor"></span>
<a name="l00179"></a>00179 <span class="preprocessor">#if ITK_TEMPLATE_EXPLICIT</span>
<a name="l00180"></a>00180 <span class="preprocessor"></span><span class="preprocessor"># include "Templates/itkVersorTransform+-.h"</span>
<a name="l00181"></a>00181 <span class="preprocessor">#endif</span>
<a name="l00182"></a>00182 <span class="preprocessor"></span>
<a name="l00183"></a>00183 <span class="preprocessor">#if ITK_TEMPLATE_TXX</span>
<a name="l00184"></a>00184 <span class="preprocessor"></span><span class="preprocessor"># include "itkVersorTransform.txx"</span>
<a name="l00185"></a>00185 <span class="preprocessor">#endif</span>
<a name="l00186"></a>00186 <span class="preprocessor"></span>
<a name="l00187"></a>00187 <span class="preprocessor">#endif </span><span class="comment">/* __itkVersorTransform_h */</span>
<a name="l00188"></a>00188 
</pre></div></div>
<hr><address><small>
Generated at Fri May 8 00:35:29 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>