Sophie

Sophie

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

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: itkRigid3DTransform.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>itkRigid3DTransform.h</h1><a href="itkRigid3DTransform_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: itkRigid3DTransform.h,v $</span>
<a name="l00005"></a>00005 <span class="comment">  Language:  C++</span>
<a name="l00006"></a>00006 <span class="comment">  Date:      $Date: 2007-02-13 21:46:04 $</span>
<a name="l00007"></a>00007 <span class="comment">  Version:   $Revision: 1.38 $</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 __itkRigid3DTransform_h</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkRigid3DTransform_h</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkMatrixOffsetTransformBase_8h.html">itkMatrixOffsetTransformBase.h</a>"</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkExceptionObject_8h.html">itkExceptionObject.h</a>"</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="itkMatrix_8h.html">itkMatrix.h</a>"</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">// type for scalars (float or double)</span>
<a name="l00049"></a><a class="code" href="classitk_1_1Rigid3DTransform.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_1Rigid3DTransform.html" title="Rigid3DTransform of a vector space (e.g. space coordinates).">Rigid3DTransform</a> :
<a name="l00050"></a>00050    <span class="keyword">public</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html">MatrixOffsetTransformBase</a>&lt; TScalarType, 3, 3&gt; 
<a name="l00051"></a>00051 {
<a name="l00052"></a>00052 <span class="keyword">public</span>:
<a name="l00054"></a><a class="code" href="classitk_1_1Rigid3DTransform.html#0289909c2903823cfd4c44b44cfc979f">00054</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</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_1Rigid3DTransform.html#5acd3811b4f67371fbebdef8a63dfa0d">00055</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html">MatrixOffsetTransformBase&lt; TScalarType, 3, 3 &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_1Rigid3DTransform.html#92d9b739ebabe5711c7f660d2093cc0c">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_1Rigid3DTransform.html#fb34ffa786a38a6d218a0f22f0244750">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_1Rigid3DTransform.html" title="Rigid3DTransform of a vector space (e.g. space coordinates).">Rigid3DTransform</a>, <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html">MatrixOffsetTransformBase</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>, 12);
<a name="l00071"></a>00071 
<a name="l00072"></a><a class="code" href="classitk_1_1Rigid3DTransform.html#056e6de492afc65fbf96a931ab93919b">00072</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::ParametersType             ParametersType;
<a name="l00073"></a><a class="code" href="classitk_1_1Rigid3DTransform.html#e11fc77710ff3918e26d5732f0555ef3">00073</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::JacobianType               JacobianType;
<a name="l00074"></a><a class="code" href="classitk_1_1Rigid3DTransform.html#45183227b4bedc581b1e6afb773fd61a">00074</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::ScalarType                 ScalarType;
<a name="l00075"></a><a class="code" href="classitk_1_1Rigid3DTransform.html#011070f7013f1496cf9f33257bf8242c">00075</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::InputVectorType            InputVectorType;
<a name="l00076"></a><a class="code" href="classitk_1_1Rigid3DTransform.html#14a3614880436ada9d25e54c91acaec9">00076</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::OutputVectorType           OutputVectorType;
<a name="l00077"></a>00077   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::InputCovariantVectorType  
<a name="l00078"></a><a class="code" href="classitk_1_1Rigid3DTransform.html#6d9359eac67d30a6074b10a1cd9a1422">00078</a>                                                      InputCovariantVectorType;
<a name="l00079"></a>00079   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::OutputCovariantVectorType  
<a name="l00080"></a><a class="code" href="classitk_1_1Rigid3DTransform.html#5db156c97143cf063da63aa9ce66b504">00080</a>                                                      OutputCovariantVectorType;
<a name="l00081"></a><a class="code" href="classitk_1_1Rigid3DTransform.html#7cbd0651cd0efe19418368b6b8f676ec">00081</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::InputVnlVectorType         InputVnlVectorType;
<a name="l00082"></a><a class="code" href="classitk_1_1Rigid3DTransform.html#08df65c199840ffa033ee733b99f2b9d">00082</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::OutputVnlVectorType        OutputVnlVectorType;
<a name="l00083"></a><a class="code" href="classitk_1_1Rigid3DTransform.html#734f2ace568b713f3656b809b873ad6c">00083</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::InputPointType             InputPointType;
<a name="l00084"></a><a class="code" href="classitk_1_1Rigid3DTransform.html#20b633f7dc7040201e39661ac26ee30a">00084</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::OutputPointType            OutputPointType;
<a name="l00085"></a><a class="code" href="classitk_1_1Rigid3DTransform.html#9a460813b77e9f158ea6765fd5c46377">00085</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::MatrixType                 MatrixType;
<a name="l00086"></a><a class="code" href="classitk_1_1Rigid3DTransform.html#f4be172c84960cf91f23ac64f1e96f64">00086</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::InverseMatrixType          InverseMatrixType;
<a name="l00087"></a><a class="code" href="classitk_1_1Rigid3DTransform.html#f424eb5814e8c15c9e9f5a0ed7a11634">00087</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::CenterType                 CenterType;
<a name="l00088"></a><a class="code" href="classitk_1_1Rigid3DTransform.html#9a28a3b6e95e9786c9fe9b2bacb4e1ed">00088</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::TranslationType            TranslationType;
<a name="l00089"></a><a class="code" href="classitk_1_1Rigid3DTransform.html#512fac1f47cdefe06dbf5fc7c770b3d5">00089</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::OffsetType                 OffsetType;
<a name="l00090"></a>00090 
<a name="l00101"></a>00101    <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetParameters( <span class="keyword">const</span> ParametersType &amp; parameters );
<a name="l00102"></a>00102 
<a name="l00108"></a>00108   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetMatrix(<span class="keyword">const</span> MatrixType &amp;matrix);
<a name="l00109"></a>00109 
<a name="l00118"></a><a class="code" href="classitk_1_1Rigid3DTransform.html#1db794b6b7db339b0233c94da4ce3f59">00118</a>    <span class="keyword">const</span> MatrixType &amp; GetRotationMatrix()
<a name="l00119"></a>00119      { <span class="keywordflow">return</span> this-&gt;GetMatrix(); }
<a name="l00120"></a>00120 
<a name="l00131"></a><a class="code" href="classitk_1_1Rigid3DTransform.html#3c1be4c15020b846a2a4c42d2a86a4ff">00131</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetRotationMatrix(<span class="keyword">const</span> MatrixType &amp; matrix)
<a name="l00132"></a>00132       { this-&gt;SetMatrix(matrix); }
<a name="l00133"></a>00133 
<a name="l00141"></a>00141   <span class="keywordtype">void</span> Translate(<span class="keyword">const</span> OffsetType &amp; offset, <span class="keywordtype">bool</span> pre=<span class="keyword">false</span>);
<a name="l00142"></a>00142 
<a name="l00154"></a>00154   InputPointType      BackTransform(<span class="keyword">const</span> OutputPointType 
<a name="l00155"></a>00155                                                    &amp;point ) <span class="keyword">const</span>;
<a name="l00156"></a>00156   InputVectorType     BackTransform(<span class="keyword">const</span> OutputVectorType 
<a name="l00157"></a>00157                                                    &amp;<a class="code" href="classstd_1_1vector.html">vector</a>) <span class="keyword">const</span>;
<a name="l00158"></a>00158   InputVnlVectorType  BackTransform( <span class="keyword">const</span> OutputVnlVectorType
<a name="l00159"></a>00159                                                    &amp;<a class="code" href="classstd_1_1vector.html">vector</a>) <span class="keyword">const</span>;
<a name="l00160"></a>00160   InputCovariantVectorType BackTransform(<span class="keyword">const</span> OutputCovariantVectorType
<a name="l00161"></a>00161                                                    &amp;<a class="code" href="classstd_1_1vector.html">vector</a>) <span class="keyword">const</span>;
<a name="l00163"></a>00163 
<a name="l00168"></a>00168   <span class="keywordtype">bool</span> MatrixIsOrthogonal( <span class="keyword">const</span> MatrixType &amp; matrix, <span class="keywordtype">double</span> tol = 1e-10 );
<a name="l00169"></a>00169 
<a name="l00170"></a>00170 <span class="keyword">protected</span>:
<a name="l00171"></a>00171   <a class="code" href="classitk_1_1Rigid3DTransform.html" title="Rigid3DTransform of a vector space (e.g. space coordinates).">Rigid3DTransform</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> spaceDim,
<a name="l00172"></a>00172                    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> paramDim);
<a name="l00173"></a>00173   <a class="code" href="classitk_1_1Rigid3DTransform.html" title="Rigid3DTransform of a vector space (e.g. space coordinates).">Rigid3DTransform</a>(<span class="keyword">const</span> MatrixType &amp; matrix,
<a name="l00174"></a>00174                    <span class="keyword">const</span> OutputVectorType &amp; offset);
<a name="l00175"></a>00175   <a class="code" href="classitk_1_1Rigid3DTransform.html" title="Rigid3DTransform of a vector space (e.g. space coordinates).">Rigid3DTransform</a>();
<a name="l00176"></a>00176   ~<a class="code" href="classitk_1_1Rigid3DTransform.html" title="Rigid3DTransform of a vector space (e.g. space coordinates).">Rigid3DTransform</a>();
<a name="l00177"></a>00177   
<a name="l00181"></a>00181   <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="l00182"></a>00182 
<a name="l00183"></a>00183 <span class="keyword">private</span>:
<a name="l00184"></a>00184   <a class="code" href="classitk_1_1Rigid3DTransform.html" title="Rigid3DTransform of a vector space (e.g. space coordinates).">Rigid3DTransform</a>(<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a>&amp;); <span class="comment">//purposely not implemented</span>
<a name="l00185"></a>00185   <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="l00186"></a>00186   
<a name="l00187"></a>00187 }; <span class="comment">//class Rigid3DTransform</span>
<a name="l00188"></a>00188 
<a name="l00189"></a>00189 
<a name="l00190"></a>00190 }  <span class="comment">// namespace itk</span>
<a name="l00191"></a>00191 
<a name="l00192"></a>00192 <span class="comment">// Define instantiation macro for this template.</span>
<a name="l00193"></a><a class="code" href="itkRigid3DTransform_8h.html#023a6a50b5aeea72b03a3dd0cb42e9b1">00193</a> <span class="preprocessor">#define ITK_TEMPLATE_Rigid3DTransform(_, EXPORT, x, y) namespace itk { \</span>
<a name="l00194"></a>00194 <span class="preprocessor">  _(1(class EXPORT Rigid3DTransform&lt; ITK_TEMPLATE_1 x &gt;)) \</span>
<a name="l00195"></a>00195 <span class="preprocessor">  namespace Templates { typedef Rigid3DTransform&lt; ITK_TEMPLATE_1 x &gt; Rigid3DTransform##y; } \</span>
<a name="l00196"></a>00196 <span class="preprocessor">  }</span>
<a name="l00197"></a>00197 <span class="preprocessor"></span>
<a name="l00198"></a>00198 <span class="preprocessor">#if ITK_TEMPLATE_EXPLICIT</span>
<a name="l00199"></a>00199 <span class="preprocessor"></span><span class="preprocessor"># include "Templates/itkRigid3DTransform+-.h"</span>
<a name="l00200"></a>00200 <span class="preprocessor">#endif</span>
<a name="l00201"></a>00201 <span class="preprocessor"></span>
<a name="l00202"></a>00202 <span class="preprocessor">#if ITK_TEMPLATE_TXX</span>
<a name="l00203"></a>00203 <span class="preprocessor"></span><span class="preprocessor"># include "itkRigid3DTransform.txx"</span>
<a name="l00204"></a>00204 <span class="preprocessor">#endif</span>
<a name="l00205"></a>00205 <span class="preprocessor"></span>
<a name="l00206"></a>00206 <span class="preprocessor">#endif </span><span class="comment">/* __itkRigid3DTransform_h */</span>
<a name="l00207"></a>00207 
</pre></div></div>
<hr><address><small>
Generated at Fri May 8 00:05:10 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>