Sophie

Sophie

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

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: itkMatrixOffsetTransformBase.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>itkMatrixOffsetTransformBase.h</h1><a href="itkMatrixOffsetTransformBase_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: itkMatrixOffsetTransformBase.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-02-05 22:04:02 $</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 __itkMatrixOffsetTransformBase_h</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkMatrixOffsetTransformBase_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 
<a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkMatrix_8h.html">itkMatrix.h</a>"</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="itkTransform_8h.html">itkTransform.h</a>"</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include "<a class="code" href="itkExceptionObject_8h.html">itkExceptionObject.h</a>"</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include "<a class="code" href="itkMacro_8h.html">itkMacro.h</a>"</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="keyword">namespace </span>itk
<a name="l00028"></a>00028 {
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 
<a name="l00075"></a>00075 <span class="keyword">template</span> &lt;
<a name="l00076"></a>00076   <span class="keyword">class </span>TScalarType=double,         <span class="comment">// Data type for scalars </span>
<a name="l00077"></a>00077   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> NInputDimensions=3,  <span class="comment">// Number of dimensions in the input space</span>
<a name="l00078"></a>00078   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> NOutputDimensions=3&gt; <span class="comment">// Number of dimensions in the output space</span>
<a name="l00079"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html">00079</a> <span class="keyword">class </span><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html">MatrixOffsetTransformBase</a> 
<a name="l00080"></a>00080   : <span class="keyword">public</span> <a class="code" href="classitk_1_1Transform.html" title="Transform points and vector from an input space to an output space.">Transform</a>&lt; TScalarType, NInputDimensions, NOutputDimensions &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_1MatrixOffsetTransformBase.html#ef51e370654bc2a8b4b0051a6757f9d0">00084</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html">MatrixOffsetTransformBase</a>             <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Self</a>;
<a name="l00085"></a>00085   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Transform.html" title="Transform points and vector from an input space to an output space.">Transform</a>&lt; TScalarType,
<a name="l00086"></a>00086                      NInputDimensions,
<a name="l00087"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#3ce2fb8921c3c51d0b82a9d5ac12386f">00087</a>                      NOutputDimensions &gt;        <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Superclass</a>;
<a name="l00088"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#918f1c95041478a06842af9fdbdb0d48">00088</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="l00089"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#8ed3b9971f776cf1b1a8cc75c962b835">00089</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="l00090"></a>00090 
<a name="l00092"></a>00092   <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>( <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html">MatrixOffsetTransformBase</a>, <a class="code" href="classitk_1_1Transform.html" title="Transform points and vector from an input space to an output space.">Transform</a> );
<a name="l00093"></a>00093 
<a name="l00095"></a>00095   <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="l00096"></a>00096 
<a name="l00098"></a>00098   <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#bb7432b9fa9ab65ef0982f60ccae9213">itkStaticConstMacro</a>(InputSpaceDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, NInputDimensions);
<a name="l00099"></a>00099   <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#bb7432b9fa9ab65ef0982f60ccae9213">itkStaticConstMacro</a>(OutputSpaceDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, NOutputDimensions);
<a name="l00100"></a>00100   <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#bb7432b9fa9ab65ef0982f60ccae9213">itkStaticConstMacro</a>(ParametersDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>,
<a name="l00101"></a>00101                       NOutputDimensions*(NInputDimensions+1));
<a name="l00103"></a>00103 
<a name="l00104"></a>00104   
<a name="l00106"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#1f9190ea07a38579df2a451a47d171e3">00106</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Transform.html#462e180bab3f683d8f31ea94aab47194">Superclass::ParametersType</a>                  <a class="code" href="classitk_1_1Array.html">ParametersType</a>;
<a name="l00107"></a>00107 
<a name="l00109"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#9fb2ca287b41ee9535727cef4a591359">00109</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Transform.html#1a2ab316358496c5bd2eadcf22af937a">Superclass::JacobianType</a>                    <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#9fb2ca287b41ee9535727cef4a591359">JacobianType</a>;
<a name="l00110"></a>00110 
<a name="l00112"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#48ea486858b11578c573ed2ae5049a02">00112</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Transform.html#f1203b407ccc3d3f15dac7ea1ead659f">Superclass::ScalarType</a>                      <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#48ea486858b11578c573ed2ae5049a02">ScalarType</a>;
<a name="l00113"></a>00113 
<a name="l00115"></a>00115   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Vector.html" title="A templated class holding a n-Dimensional vector.">Vector</a>&lt;TScalarType,
<a name="l00116"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#504251843664800e6dd12d7f0b3ab419">00116</a>                  <a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>(InputSpaceDimension)&gt;  <a class="code" href="classitk_1_1Vector.html">InputVectorType</a>;
<a name="l00117"></a>00117   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Vector.html" title="A templated class holding a n-Dimensional vector.">Vector</a>&lt;TScalarType,
<a name="l00118"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#da03f7f44e69fb08b09c5f43c5005cdc">00118</a>                  <a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>(OutputSpaceDimension)&gt; <a class="code" href="classitk_1_1Vector.html">OutputVectorType</a>;
<a name="l00120"></a>00120 
<a name="l00122"></a>00122   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1CovariantVector.html" title="A templated class holding a n-Dimensional covariant vector.">CovariantVector</a>&lt;TScalarType,
<a name="l00123"></a>00123                           <a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>(InputSpaceDimension)&gt;  
<a name="l00124"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#228c20f921e6e5abf6ab8bf3133a16ea">00124</a>                                                     <a class="code" href="classitk_1_1CovariantVector.html" title="A templated class holding a n-Dimensional covariant vector.">InputCovariantVectorType</a>;
<a name="l00125"></a>00125   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1CovariantVector.html" title="A templated class holding a n-Dimensional covariant vector.">CovariantVector</a>&lt;TScalarType,
<a name="l00126"></a>00126                           <a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>(OutputSpaceDimension)&gt;  
<a name="l00127"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#9a9331c1f3782d4c26ef6b2f994915b7">00127</a>                                                     <a class="code" href="classitk_1_1CovariantVector.html" title="A templated class holding a n-Dimensional covariant vector.">OutputCovariantVectorType</a>;
<a name="l00129"></a>00129 
<a name="l00131"></a>00131   <span class="keyword">typedef</span> vnl_vector_fixed&lt;TScalarType,
<a name="l00132"></a>00132                            <a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>(InputSpaceDimension)&gt; 
<a name="l00133"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#b702d697470ff52439290fa74340df57">00133</a>                                                     <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#b702d697470ff52439290fa74340df57">InputVnlVectorType</a>;
<a name="l00134"></a>00134   <span class="keyword">typedef</span> vnl_vector_fixed&lt;TScalarType,
<a name="l00135"></a>00135                            <a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>(OutputSpaceDimension)&gt; 
<a name="l00136"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#3834e12b5eba107f009c1b9dd9b183dd">00136</a>                                                     <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#3834e12b5eba107f009c1b9dd9b183dd">OutputVnlVectorType</a>;
<a name="l00138"></a>00138 
<a name="l00140"></a>00140   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Point.html" title="A templated class holding a geometric point in n-Dimensional space.">Point</a>&lt;TScalarType,
<a name="l00141"></a>00141                 <a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>(InputSpaceDimension)&gt;   
<a name="l00142"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#036342ec4959a2d01a30526f1f2a461a">00142</a>                                                     <a class="code" href="classitk_1_1Point.html">InputPointType</a>;
<a name="l00143"></a>00143   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Point.html" title="A templated class holding a geometric point in n-Dimensional space.">Point</a>&lt;TScalarType,
<a name="l00144"></a>00144                 <a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>(OutputSpaceDimension)&gt;  
<a name="l00145"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#d577d445ff8dce2083ba2d7bb6cbbbe3">00145</a>                                                     <a class="code" href="classitk_1_1Point.html" title="A templated class holding a geometric point in n-Dimensional space.">OutputPointType</a>;
<a name="l00147"></a>00147 
<a name="l00149"></a>00149   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Matrix.html" title="A templated class holding a M x N size Matrix This class contains a vnl_matrix_fixed...">Matrix</a>&lt;TScalarType, <a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>(OutputSpaceDimension),
<a name="l00150"></a>00150                  <a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>(InputSpaceDimension)&gt;  
<a name="l00151"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#0682c35922833bf878471c0d2d4c3b86">00151</a>                                                     <a class="code" href="classitk_1_1Matrix.html">MatrixType</a>;
<a name="l00152"></a>00152 
<a name="l00154"></a>00154   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Matrix.html" title="A templated class holding a M x N size Matrix This class contains a vnl_matrix_fixed...">Matrix</a>&lt;TScalarType, <a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>(InputSpaceDimension),
<a name="l00155"></a>00155                  <a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>(OutputSpaceDimension)&gt; 
<a name="l00156"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#c2130be0bff99d7b35457e4a45e3069a">00156</a>                                                     <a class="code" href="classitk_1_1Matrix.html">InverseMatrixType</a>;
<a name="l00157"></a>00157 
<a name="l00158"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#aff6f95698049eab98a8e033966d8b35">00158</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Point.html">InputPointType</a>                            <a class="code" href="classitk_1_1Point.html">CenterType</a>;
<a name="l00159"></a>00159 
<a name="l00160"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#fe2f1d4bf2520b3fb9e8bbb1870a0096">00160</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Vector.html">OutputVectorType</a>                          <a class="code" href="classitk_1_1Vector.html">OffsetType</a>;
<a name="l00161"></a>00161 
<a name="l00162"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#55045cdc1c850422404649b363e859e0">00162</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Vector.html">OutputVectorType</a>                          <a class="code" href="classitk_1_1Vector.html">TranslationType</a>;
<a name="l00163"></a>00163 
<a name="l00167"></a>00167   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#ef38e4ab1d84ac3275a6ae8303554f23">SetIdentity</a>( <span class="keywordtype">void</span> );
<a name="l00168"></a>00168 
<a name="l00180"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#a0adea27a287803d6d724fc379e106cc">00180</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#a0adea27a287803d6d724fc379e106cc">SetMatrix</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1Matrix.html">MatrixType</a> &amp;matrix)
<a name="l00181"></a>00181     {
<a name="l00182"></a>00182     m_Matrix = matrix; this-&gt;<a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#d3047758e091e82923e01dbf95a0dceb">ComputeOffset</a>();
<a name="l00183"></a>00183     this-&gt;<a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#bf3080864eb9ae38eff5367ec9e87d89">ComputeMatrixParameters</a>();
<a name="l00184"></a>00184     m_MatrixMTime.<a class="code" href="classitk_1_1TimeStamp.html#b6c6a4041a98583713f2198401e06bd2">Modified</a>(); this-&gt;<a class="code" href="classitk_1_1Object.html#33101e349626ac58ced6682b061d8277">Modified</a>(); <span class="keywordflow">return</span>;
<a name="l00185"></a>00185     }
<a name="l00187"></a>00187 
<a name="l00194"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#078ec7913b57c25da7d9054ae87fd553">00194</a>   <span class="keyword">const</span> <a class="code" href="classitk_1_1Matrix.html">MatrixType</a> &amp; <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#078ec7913b57c25da7d9054ae87fd553">GetMatrix</a>()<span class="keyword"> const</span>
<a name="l00195"></a>00195 <span class="keyword">    </span>{ <span class="keywordflow">return</span> m_Matrix; }
<a name="l00196"></a>00196 
<a name="l00205"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#8e892b459a3b03f08d5b1e0c3a1e7c3a">00205</a>   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#8e892b459a3b03f08d5b1e0c3a1e7c3a">SetOffset</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1Vector.html">OutputVectorType</a> &amp;offset)
<a name="l00206"></a>00206     {
<a name="l00207"></a>00207     m_Offset = offset; this-&gt;<a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#8bf727428cda62ca6e4e16b55c1ddb2e">ComputeTranslation</a>();
<a name="l00208"></a>00208     this-&gt;<a class="code" href="classitk_1_1Object.html#33101e349626ac58ced6682b061d8277">Modified</a>(); <span class="keywordflow">return</span>;
<a name="l00209"></a>00209     }
<a name="l00211"></a>00211 
<a name="l00217"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#254e2cbfddb6e349e904720377559d27">00217</a>   <span class="keyword">const</span> <a class="code" href="classitk_1_1Vector.html">OutputVectorType</a> &amp; <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#254e2cbfddb6e349e904720377559d27">GetOffset</a>(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00218"></a>00218 <span class="keyword">    </span>{ <span class="keywordflow">return</span> m_Offset; }
<a name="l00219"></a>00219 
<a name="l00242"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#66847494b74e20583dc4f1041e66594a">00242</a>   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#66847494b74e20583dc4f1041e66594a">SetCenter</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1Point.html">InputPointType</a> &amp; center)
<a name="l00243"></a>00243     {
<a name="l00244"></a>00244     m_Center = center; this-&gt;<a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#d3047758e091e82923e01dbf95a0dceb">ComputeOffset</a>();
<a name="l00245"></a>00245     this-&gt;<a class="code" href="classitk_1_1Object.html#33101e349626ac58ced6682b061d8277">Modified</a>(); <span class="keywordflow">return</span>;
<a name="l00246"></a>00246     }
<a name="l00248"></a>00248 
<a name="l00255"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#dbafaf9635750c1b0e204c52deb1de46">00255</a>   <span class="keyword">const</span> <a class="code" href="classitk_1_1Point.html">InputPointType</a> &amp; <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#dbafaf9635750c1b0e204c52deb1de46">GetCenter</a>()<span class="keyword"> const</span>
<a name="l00256"></a>00256 <span class="keyword">    </span>{ <span class="keywordflow">return</span> m_Center; }
<a name="l00257"></a>00257 
<a name="l00264"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#467b1458a97955a5c10808ffb05bfe86">00264</a>   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#467b1458a97955a5c10808ffb05bfe86">SetTranslation</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1Vector.html">OutputVectorType</a> &amp; translation)
<a name="l00265"></a>00265     {
<a name="l00266"></a>00266     m_Translation = translation; this-&gt;<a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#d3047758e091e82923e01dbf95a0dceb">ComputeOffset</a>();
<a name="l00267"></a>00267     this-&gt;<a class="code" href="classitk_1_1Object.html#33101e349626ac58ced6682b061d8277">Modified</a>(); <span class="keywordflow">return</span>;
<a name="l00268"></a>00268     }
<a name="l00270"></a>00270 
<a name="l00277"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#504f15415b1f3d43f5bf58ce822dba3d">00277</a>   <span class="keyword">const</span> <a class="code" href="classitk_1_1Vector.html">OutputVectorType</a> &amp; <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#504f15415b1f3d43f5bf58ce822dba3d">GetTranslation</a>(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00278"></a>00278 <span class="keyword">    </span>{
<a name="l00279"></a>00279     <span class="keywordflow">return</span> m_Translation;
<a name="l00280"></a>00280     }
<a name="l00281"></a>00281 
<a name="l00286"></a>00286   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#bf83241327bf50ec852c186b7ca8d941">SetParameters</a>( <span class="keyword">const</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#1f9190ea07a38579df2a451a47d171e3">ParametersType</a> &amp; parameters );
<a name="l00287"></a>00287 
<a name="l00289"></a>00289   <span class="keyword">const</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#1f9190ea07a38579df2a451a47d171e3">ParametersType</a>&amp; <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#3a2fc7c0a9d2a6772b75c1b3cd998001">GetParameters</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00290"></a>00290 
<a name="l00292"></a>00292   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#bab57111fda06e69309c80fdf6fbee38">SetFixedParameters</a>( <span class="keyword">const</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#1f9190ea07a38579df2a451a47d171e3">ParametersType</a> &amp; );
<a name="l00293"></a>00293 
<a name="l00295"></a>00295   <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#1f9190ea07a38579df2a451a47d171e3">ParametersType</a>&amp; <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#9cb1e05084038cf0a98cd986d3929cc8">GetFixedParameters</a>(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
<a name="l00296"></a>00296 
<a name="l00297"></a>00297 
<a name="l00309"></a>00309   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#3844f3618ebdcd3dfe9206775b70607e">Compose</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#ef51e370654bc2a8b4b0051a6757f9d0">Self</a> * other, <span class="keywordtype">bool</span> pre=0);
<a name="l00310"></a>00310 
<a name="l00318"></a>00318   <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#d577d445ff8dce2083ba2d7bb6cbbbe3">OutputPointType</a>     <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#78920a11555532db4290756371975642">TransformPoint</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#036342ec4959a2d01a30526f1f2a461a">InputPointType</a> &amp; point) <span class="keyword">const</span>;
<a name="l00319"></a>00319   <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#da03f7f44e69fb08b09c5f43c5005cdc">OutputVectorType</a>    <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#9bf4c311261aec387212102ceb100e94">TransformVector</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#504251843664800e6dd12d7f0b3ab419">InputVectorType</a> &amp; <a class="code" href="classstd_1_1vector.html">vector</a>) <span class="keyword">const</span>;
<a name="l00320"></a>00320   <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#3834e12b5eba107f009c1b9dd9b183dd">OutputVnlVectorType</a> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#9bf4c311261aec387212102ceb100e94">TransformVector</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#b702d697470ff52439290fa74340df57">InputVnlVectorType</a> &amp; <a class="code" href="classstd_1_1vector.html">vector</a>) <span class="keyword">const</span>;
<a name="l00321"></a>00321   <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#9a9331c1f3782d4c26ef6b2f994915b7">OutputCovariantVectorType</a> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#8f95797f252c776d68e869bc9b061cc3">TransformCovariantVector</a>(
<a name="l00322"></a>00322                                 <span class="keyword">const</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#228c20f921e6e5abf6ab8bf3133a16ea">InputCovariantVectorType</a> &amp;<a class="code" href="classstd_1_1vector.html">vector</a>) <span class="keyword">const</span>;
<a name="l00324"></a>00324 
<a name="l00331"></a>00331   <span class="keyword">const</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#9fb2ca287b41ee9535727cef4a591359">JacobianType</a> &amp; <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#1307a0a16d5b7b322b41dabb9d9e63c1">GetJacobian</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#036342ec4959a2d01a30526f1f2a461a">InputPointType</a> &amp; point ) <span class="keyword">const</span>;
<a name="l00332"></a>00332 
<a name="l00351"></a>00351   <span class="keywordtype">bool</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#dea5d39670b3686c377fdac9980a3dca">GetInverse</a>(<a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#ef51e370654bc2a8b4b0051a6757f9d0">Self</a> * inverse) <span class="keyword">const</span>;
<a name="l00353"></a>00353 
<a name="l00354"></a>00354 
<a name="l00358"></a>00358   <span class="keyword">const</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#c2130be0bff99d7b35457e4a45e3069a">InverseMatrixType</a> &amp; <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#a27a65671af6ff20929ba5ac5c9773cd">GetInverseMatrix</a>( <span class="keywordtype">void</span> ) <span class="keyword">const</span>;
<a name="l00359"></a>00359 
<a name="l00365"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#3ef4c0babc3ba144a3fa54fbe1834961">00365</a>   <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#3ef4c0babc3ba144a3fa54fbe1834961">IsLinear</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">true</span>; }
<a name="l00366"></a>00366 
<a name="l00367"></a>00367 <span class="keyword">protected</span>:
<a name="l00375"></a>00375   <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#2026c89a48c5f71d44deac4f9aa6bde8">MatrixOffsetTransformBase</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#0682c35922833bf878471c0d2d4c3b86">MatrixType</a> &amp;matrix,
<a name="l00376"></a>00376                             <span class="keyword">const</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#da03f7f44e69fb08b09c5f43c5005cdc">OutputVectorType</a> &amp;offset);
<a name="l00377"></a>00377   <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#2026c89a48c5f71d44deac4f9aa6bde8">MatrixOffsetTransformBase</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputDims,
<a name="l00378"></a>00378                             <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> paramDims);
<a name="l00379"></a>00379   <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#2026c89a48c5f71d44deac4f9aa6bde8">MatrixOffsetTransformBase</a>();
<a name="l00381"></a>00381 
<a name="l00383"></a>00383   <span class="keyword">virtual</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#da0dbfb34a9ba0e2b4502a305d7e7322">~MatrixOffsetTransformBase</a>();
<a name="l00384"></a>00384 
<a name="l00386"></a>00386   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#fb7b2dc04c47bd813f35fa1ce93ed3c9">PrintSelf</a>(std::ostream &amp;s, <a class="code" href="classitk_1_1Indent.html" title="Control indentation during Print() invocation.">Indent</a> indent) <span class="keyword">const</span>;
<a name="l00387"></a>00387 
<a name="l00388"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#7d1ab613aa8004a0e05b8b13fba622c4">00388</a>   <span class="keyword">const</span> <a class="code" href="classitk_1_1Matrix.html">InverseMatrixType</a> &amp; <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#7d1ab613aa8004a0e05b8b13fba622c4">GetVarInverseMatrix</a>( <span class="keywordtype">void</span> )<span class="keyword"> const</span>
<a name="l00389"></a>00389 <span class="keyword">    </span>{ <span class="keywordflow">return</span> m_InverseMatrix; }
<a name="l00390"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#3460cd252102a51ae2837ec0553b113d">00390</a>   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#3460cd252102a51ae2837ec0553b113d">SetVarInverseMatrix</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1Matrix.html">InverseMatrixType</a> &amp; matrix)<span class="keyword"> const</span>
<a name="l00391"></a>00391 <span class="keyword">    </span>{ m_InverseMatrix = matrix; m_InverseMatrixMTime.<a class="code" href="classitk_1_1TimeStamp.html#b6c6a4041a98583713f2198401e06bd2">Modified</a>(); }
<a name="l00392"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#84d3b820cc05355dae25087b37c6361f">00392</a>   <span class="keywordtype">bool</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#84d3b820cc05355dae25087b37c6361f">InverseMatrixIsOld</a>(<span class="keywordtype">void</span>)<span class="keyword"> const</span>
<a name="l00393"></a>00393 <span class="keyword">    </span>{
<a name="l00394"></a>00394     <span class="keywordflow">if</span>(m_MatrixMTime != m_InverseMatrixMTime)
<a name="l00395"></a>00395       {
<a name="l00396"></a>00396       <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00397"></a>00397       }
<a name="l00398"></a>00398     <span class="keywordflow">else</span>
<a name="l00399"></a>00399       {
<a name="l00400"></a>00400       <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00401"></a>00401       }
<a name="l00402"></a>00402     }
<a name="l00403"></a>00403 
<a name="l00404"></a>00404   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#bf3080864eb9ae38eff5367ec9e87d89">ComputeMatrixParameters</a>(<span class="keywordtype">void</span>);
<a name="l00405"></a>00405 
<a name="l00406"></a>00406   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#9e90eb56ea92a8d2e9e23a56e4ee2c20">ComputeMatrix</a>(<span class="keywordtype">void</span>);
<a name="l00407"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#de89e34fbebede6a64a6c560c7ec1cd0">00407</a>   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#de89e34fbebede6a64a6c560c7ec1cd0">SetVarMatrix</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1Matrix.html">MatrixType</a> &amp; matrix)
<a name="l00408"></a>00408     { m_Matrix = matrix; m_MatrixMTime.<a class="code" href="classitk_1_1TimeStamp.html#b6c6a4041a98583713f2198401e06bd2">Modified</a>(); }
<a name="l00409"></a>00409 
<a name="l00410"></a>00410   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#8bf727428cda62ca6e4e16b55c1ddb2e">ComputeTranslation</a>(<span class="keywordtype">void</span>);
<a name="l00411"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#668dbdb54e82d00ff6fc14a0e2a80a92">00411</a>   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#668dbdb54e82d00ff6fc14a0e2a80a92">SetVarTranslation</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1Vector.html">OutputVectorType</a> &amp; translation)
<a name="l00412"></a>00412     { m_Translation = translation; }
<a name="l00413"></a>00413 
<a name="l00414"></a>00414   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#d3047758e091e82923e01dbf95a0dceb">ComputeOffset</a>(<span class="keywordtype">void</span>);
<a name="l00415"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#b3ec3c822001532331c10c3b3a2c573a">00415</a>   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#b3ec3c822001532331c10c3b3a2c573a">SetVarOffset</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1Vector.html">OutputVectorType</a> &amp; offset)
<a name="l00416"></a>00416     { m_Offset = offset; }
<a name="l00417"></a>00417 
<a name="l00418"></a><a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#ea5177c72d616dcd490fa3cde3e545d2">00418</a>   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#ea5177c72d616dcd490fa3cde3e545d2">SetVarCenter</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1Point.html">InputPointType</a> &amp; center)
<a name="l00419"></a>00419     { m_Center = center; }
<a name="l00420"></a>00420 
<a name="l00421"></a>00421 <span class="keyword">private</span>:
<a name="l00422"></a>00422 
<a name="l00423"></a>00423   <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#2026c89a48c5f71d44deac4f9aa6bde8">MatrixOffsetTransformBase</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#ef51e370654bc2a8b4b0051a6757f9d0">Self</a> &amp; other);
<a name="l00424"></a>00424   <span class="keyword">const</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#ef51e370654bc2a8b4b0051a6757f9d0">Self</a> &amp; operator=( <span class="keyword">const</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#ef51e370654bc2a8b4b0051a6757f9d0">Self</a> &amp; );
<a name="l00425"></a>00425 
<a name="l00426"></a>00426  
<a name="l00427"></a>00427   <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#0682c35922833bf878471c0d2d4c3b86">MatrixType</a>                  m_Matrix;         <span class="comment">// Matrix of the transformation</span>
<a name="l00428"></a>00428   <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#da03f7f44e69fb08b09c5f43c5005cdc">OutputVectorType</a>            m_Offset;         <span class="comment">// Offset of the transformation</span>
<a name="l00429"></a>00429   <span class="keyword">mutable</span> <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#c2130be0bff99d7b35457e4a45e3069a">InverseMatrixType</a>   m_InverseMatrix;  <span class="comment">// Inverse of the matrix</span>
<a name="l00430"></a>00430   <span class="keyword">mutable</span> <span class="keywordtype">bool</span>                m_Singular;       <span class="comment">// Is m_Inverse singular?</span>
<a name="l00431"></a>00431 
<a name="l00432"></a>00432   <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#036342ec4959a2d01a30526f1f2a461a">InputPointType</a>              m_Center;
<a name="l00433"></a>00433   <a class="code" href="classitk_1_1MatrixOffsetTransformBase.html#da03f7f44e69fb08b09c5f43c5005cdc">OutputVectorType</a>            m_Translation;
<a name="l00434"></a>00434 
<a name="l00436"></a>00436   <a class="code" href="classitk_1_1TimeStamp.html" title="Generate a unique, increasing time value.">TimeStamp</a>                   m_MatrixMTime;
<a name="l00437"></a>00437   <span class="keyword">mutable</span> <a class="code" href="classitk_1_1TimeStamp.html" title="Generate a unique, increasing time value.">TimeStamp</a>           m_InverseMatrixMTime;
<a name="l00438"></a>00438 
<a name="l00439"></a>00439 }; <span class="comment">//class MatrixOffsetTransformBase</span>
<a name="l00440"></a>00440 
<a name="l00441"></a>00441 }  <span class="comment">// namespace itk</span>
<a name="l00442"></a>00442 
<a name="l00443"></a>00443 <span class="comment">// Define instantiation macro for this template.</span>
<a name="l00444"></a><a class="code" href="itkMatrixOffsetTransformBase_8h.html#afeb0765ea33b1023626297e95da3d75">00444</a> <span class="preprocessor">#define ITK_TEMPLATE_MatrixOffsetTransformBase(_, EXPORT, x, y) namespace itk { \</span>
<a name="l00445"></a>00445 <span class="preprocessor">  _(3(class EXPORT MatrixOffsetTransformBase&lt; ITK_TEMPLATE_3 x &gt;)) \</span>
<a name="l00446"></a>00446 <span class="preprocessor">  namespace Templates { typedef MatrixOffsetTransformBase&lt; ITK_TEMPLATE_3 x &gt; MatrixOffsetTransformBase##y; } \</span>
<a name="l00447"></a>00447 <span class="preprocessor">  }</span>
<a name="l00448"></a>00448 <span class="preprocessor"></span>
<a name="l00449"></a>00449 <span class="preprocessor">#if ITK_TEMPLATE_EXPLICIT</span>
<a name="l00450"></a>00450 <span class="preprocessor"></span><span class="preprocessor"># include "Templates/itkMatrixOffsetTransformBase+-.h"</span>
<a name="l00451"></a>00451 <span class="preprocessor">#endif</span>
<a name="l00452"></a>00452 <span class="preprocessor"></span>
<a name="l00453"></a>00453 <span class="preprocessor">#if ITK_TEMPLATE_TXX</span>
<a name="l00454"></a>00454 <span class="preprocessor"></span><span class="preprocessor"># include "itkMatrixOffsetTransformBase.txx"</span>
<a name="l00455"></a>00455 <span class="preprocessor">#endif</span>
<a name="l00456"></a>00456 <span class="preprocessor"></span>
<a name="l00457"></a>00457 <span class="preprocessor">#endif </span><span class="comment">/* __itkMatrixOffsetTransformBase_h */</span>
<a name="l00458"></a>00458 
</pre></div></div>
<hr><address><small>
Generated at Thu May 7 23:28: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>