<!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: itkSimilarity2DTransform.h Source File</title> <link href="DoxygenStyle.css" rel="stylesheet" type="text/css"> </head><body bgcolor="#ffffff"> <!-- Section customized for INSIGHT : Tue Jul 17 01:02:45 2001 --> <center> <a href="index.html" class="qindex">Main Page</a> <a href="modules.html" class="qindex">Groups</a> <a href="namespaces.html" class="qindex">Namespace List</a> <a href="hierarchy.html" class="qindex">Class Hierarchy</a> <a href="classes.html" class="qindex">Alphabetical List</a> <a href="annotated.html" class="qindex">Compound List</a> <a href="files.html" class="qindex">File List</a> <a href="namespacemembers.html" class="qindex">Namespace Members</a> <a href="functions.html" class="qindex">Compound Members</a> <a href="globals.html" class="qindex">File Members</a> <a href="pages.html" class="qindex">Concepts</a></center> <!-- Generated by Doxygen 1.5.9 --> <div class="navpath"><a class="el" href="dir_02e23d841c198393a6e961e9a0678fff.html">Code</a> » <a class="el" href="dir_ea7fc529ede9a38b0438cf13831ae873.html">Common</a> </div> <div class="contents"> <h1>itkSimilarity2DTransform.h</h1><a href="itkSimilarity2DTransform_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*=========================================================================</span> <a name="l00002"></a>00002 <span class="comment"></span> <a name="l00003"></a>00003 <span class="comment"> Program: Insight Segmentation & Registration Toolkit</span> <a name="l00004"></a>00004 <span class="comment"> Module: $RCSfile: itkSimilarity2DTransform.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-06-07 16:06:32 $</span> <a name="l00007"></a>00007 <span class="comment"> Version: $Revision: 1.11 $</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 __itkSimilarity2DTransform_h</span> <a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define __itkSimilarity2DTransform_h</span> <a name="l00020"></a>00020 <span class="preprocessor"></span> <a name="l00021"></a>00021 <span class="preprocessor">#include <iostream></span> <a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkRigid2DTransform_8h.html">itkRigid2DTransform.h</a>"</span> <a name="l00023"></a>00023 <a name="l00024"></a>00024 <span class="keyword">namespace </span>itk <a name="l00025"></a>00025 { <a name="l00026"></a>00026 <a name="l00061"></a>00061 <span class="keyword">template</span> < <span class="keyword">class</span> TScalarType=<span class="keywordtype">double</span> > <span class="comment">// Data type for scalars (float or double)</span> <a name="l00062"></a><a class="code" href="classitk_1_1Similarity2DTransform.html">00062</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1Similarity2DTransform.html" title="Similarity2DTransform of a vector space (e.g. space coordinates).">Similarity2DTransform</a> : <a name="l00063"></a>00063 <span class="keyword">public</span> <a class="code" href="classitk_1_1Rigid2DTransform.html" title="Rigid2DTransform of a vector space (e.g. space coordinates).">Rigid2DTransform</a>< TScalarType > <a name="l00064"></a>00064 { <a name="l00065"></a>00065 <span class="keyword">public</span>: <a name="l00067"></a><a class="code" href="classitk_1_1Similarity2DTransform.html#224faf58b747332e4bc07384634e83fa">00067</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Similarity2DTransform.html" title="Similarity2DTransform of a vector space (e.g. space coordinates).">Similarity2DTransform</a> <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Self</a>; <a name="l00068"></a><a class="code" href="classitk_1_1Similarity2DTransform.html#1acafa97ed15bf87d7e4bd453aadbf63">00068</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Rigid2DTransform.html" title="Rigid2DTransform of a vector space (e.g. space coordinates).">Rigid2DTransform< TScalarType ></a> <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Superclass</a>; <a name="l00069"></a><a class="code" href="classitk_1_1Similarity2DTransform.html#752141bb2b774488096392a43b4ff002">00069</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SmartPointer.html">SmartPointer<Self></a> <a class="code" href="classitk_1_1SmartPointer.html">Pointer</a>; <a name="l00070"></a><a class="code" href="classitk_1_1Similarity2DTransform.html#385b04340435102ee3dd93f822b6bf11">00070</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SmartPointer.html">SmartPointer<const Self></a> <a class="code" href="classitk_1_1SmartPointer.html">ConstPointer</a>; <a name="l00071"></a>00071 <a name="l00073"></a>00073 <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="l00074"></a>00074 <a name="l00076"></a>00076 <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>( <a class="code" href="classitk_1_1Similarity2DTransform.html" title="Similarity2DTransform of a vector space (e.g. space coordinates).">Similarity2DTransform</a>, <a class="code" href="classitk_1_1Rigid2DTransform.html" title="Rigid2DTransform of a vector space (e.g. space coordinates).">Rigid2DTransform</a> ); <a name="l00077"></a>00077 <a name="l00079"></a>00079 <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(SpaceDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, 2); <a name="l00080"></a>00080 <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(InputSpaceDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, 2); <a name="l00081"></a>00081 <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(OutputSpaceDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, 2); <a name="l00082"></a>00082 <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(ParametersDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, 4); <a name="l00084"></a>00084 <a name="l00086"></a><a class="code" href="classitk_1_1Similarity2DTransform.html#2cfe2ff75295e487451c5e89a3239fbe">00086</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::ScalarType ScalarType; <a name="l00087"></a><a class="code" href="classitk_1_1Similarity2DTransform.html#7e0f7434cd3520812cb1047dc70b85d3">00087</a> <span class="keyword">typedef</span> TScalarType ScaleType; <a name="l00088"></a>00088 <a name="l00090"></a><a class="code" href="classitk_1_1Similarity2DTransform.html#c227750675cf53517409a2f47a5700ed">00090</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::ParametersType ParametersType; <a name="l00091"></a>00091 <a name="l00093"></a><a class="code" href="classitk_1_1Similarity2DTransform.html#c79e8fbb6243b488ad5ace9a094273c2">00093</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::JacobianType JacobianType; <a name="l00094"></a>00094 <a name="l00096"></a><a class="code" href="classitk_1_1Similarity2DTransform.html#8cfcad46b569ec84d6327438c5f4110e">00096</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::OffsetType OffsetType; <a name="l00097"></a>00097 <a name="l00099"></a><a class="code" href="classitk_1_1Similarity2DTransform.html#c04e21111bc9d556de219467b2cf1e71">00099</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::MatrixType MatrixType; <a name="l00100"></a>00100 <a name="l00102"></a><a class="code" href="classitk_1_1Similarity2DTransform.html#7a24290a773b8978008e4d7a56e84667">00102</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::InputPointType InputPointType; <a name="l00103"></a><a class="code" href="classitk_1_1Similarity2DTransform.html#0590c041b91502cbfd1cfb33f5fd5e20">00103</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::OutputPointType OutputPointType; <a name="l00104"></a>00104 <a name="l00106"></a><a class="code" href="classitk_1_1Similarity2DTransform.html#fc976e79cdb66bdd0761f7cb4e918f65">00106</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::InputVectorType InputVectorType; <a name="l00107"></a><a class="code" href="classitk_1_1Similarity2DTransform.html#faf3a1fdf0cc502c53497f729a56a944">00107</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::OutputVectorType OutputVectorType; <a name="l00108"></a>00108 <a name="l00110"></a><a class="code" href="classitk_1_1Similarity2DTransform.html#3d7fb9532ac0c7975ad3f50b7b49eac5">00110</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::InputCovariantVectorType InputCovariantVectorType; <a name="l00111"></a><a class="code" href="classitk_1_1Similarity2DTransform.html#c39c6caadc08aeecc505be990db27318">00111</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::OutputCovariantVectorType OutputCovariantVectorType; <a name="l00112"></a>00112 <a name="l00114"></a><a class="code" href="classitk_1_1Similarity2DTransform.html#7f7cbda1b3c1666e6d87745b52f0faf0">00114</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::InputVnlVectorType InputVnlVectorType; <a name="l00115"></a><a class="code" href="classitk_1_1Similarity2DTransform.html#058ad217519318eb75e193e5c6c95968">00115</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::OutputVnlVectorType OutputVnlVectorType; <a name="l00116"></a>00116 <a name="l00118"></a>00118 <span class="keywordtype">void</span> SetScale( ScaleType scale ); <a name="l00119"></a>00119 <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( Scale, ScaleType ); <a name="l00121"></a>00121 <a name="l00131"></a>00131 <span class="keywordtype">void</span> SetParameters( <span class="keyword">const</span> ParametersType & parameters ); <a name="l00132"></a>00132 <a name="l00142"></a>00142 <span class="keyword">const</span> ParametersType & GetParameters( <span class="keywordtype">void</span> ) <span class="keyword">const</span>; <a name="l00143"></a>00143 <a name="l00148"></a>00148 <span class="keyword">const</span> JacobianType & GetJacobian(<span class="keyword">const</span> InputPointType &point ) <span class="keyword">const</span>; <a name="l00149"></a>00149 <a name="l00151"></a>00151 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetIdentity( <span class="keywordtype">void</span> ); <a name="l00152"></a>00152 <a name="l00157"></a>00157 <span class="keywordtype">void</span> CloneInverseTo( <a class="code" href="classitk_1_1SmartPointer.html">Pointer</a> & newinverse ) <span class="keyword">const</span>; <a name="l00158"></a>00158 <a name="l00163"></a>00163 <span class="keywordtype">void</span> CloneTo( <a class="code" href="classitk_1_1SmartPointer.html">Pointer</a> & clone ) <span class="keyword">const</span>; <a name="l00164"></a>00164 <a name="l00178"></a>00178 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetMatrix( <span class="keyword">const</span> MatrixType & matrix ); <a name="l00179"></a>00179 <a name="l00180"></a>00180 <span class="keyword">protected</span>: <a name="l00181"></a>00181 <a class="code" href="classitk_1_1Similarity2DTransform.html" title="Similarity2DTransform of a vector space (e.g. space coordinates).">Similarity2DTransform</a>(); <a name="l00182"></a>00182 <a class="code" href="classitk_1_1Similarity2DTransform.html" title="Similarity2DTransform of a vector space (e.g. space coordinates).">Similarity2DTransform</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> spaceDimension, <a name="l00183"></a>00183 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> parametersDimension); <a name="l00184"></a>00184 <a name="l00185"></a><a class="code" href="classitk_1_1Similarity2DTransform.html#896db7c4f2f197240700458024c0c970">00185</a> <a class="code" href="classitk_1_1Similarity2DTransform.html#896db7c4f2f197240700458024c0c970">~Similarity2DTransform</a>(){}; <a name="l00186"></a>00186 <span class="keywordtype">void</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#920ae03048a5ad715d803ca2e92b52de">PrintSelf</a>(std::ostream &os, <a class="code" href="classitk_1_1Indent.html" title="Control indentation during Print() invocation.">Indent</a> indent) <span class="keyword">const</span>; <a name="l00187"></a>00187 <a name="l00191"></a>00191 <span class="keyword">virtual</span> <span class="keywordtype">void</span> ComputeMatrix(<span class="keywordtype">void</span>); <a name="l00192"></a>00192 <a name="l00197"></a>00197 <span class="keyword">virtual</span> <span class="keywordtype">void</span> ComputeMatrixParameters(<span class="keywordtype">void</span>); <a name="l00198"></a>00198 <a name="l00200"></a><a class="code" href="classitk_1_1Similarity2DTransform.html#7ea25f47e30cb62292e7dd50198266f1">00200</a> <span class="keywordtype">void</span> SetVarScale( ScaleType scale ) <a name="l00201"></a>00201 { m_Scale = scale; } <a name="l00202"></a>00202 <a name="l00203"></a>00203 <span class="keyword">private</span>: <a name="l00204"></a>00204 <a class="code" href="classitk_1_1Similarity2DTransform.html" title="Similarity2DTransform of a vector space (e.g. space coordinates).">Similarity2DTransform</a>(<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a>&); <span class="comment">//purposely not implemented</span> <a name="l00205"></a>00205 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a>&); <span class="comment">//purposely not implemented</span> <a name="l00206"></a>00206 <a name="l00207"></a>00207 ScaleType m_Scale; <a name="l00208"></a>00208 <a name="l00209"></a>00209 }; <span class="comment">//class Similarity2DTransform</span> <a name="l00210"></a>00210 <a name="l00211"></a>00211 <a name="l00212"></a>00212 } <span class="comment">// namespace itk</span> <a name="l00213"></a>00213 <a name="l00214"></a>00214 <span class="comment">// Define instantiation macro for this template.</span> <a name="l00215"></a><a class="code" href="itkSimilarity2DTransform_8h.html#460cdd91ba9799f8f41bb01ccb34f2b5">00215</a> <span class="preprocessor">#define ITK_TEMPLATE_Similarity2DTransform(_, EXPORT, x, y) namespace itk { \</span> <a name="l00216"></a>00216 <span class="preprocessor"> _(1(class EXPORT Similarity2DTransform< ITK_TEMPLATE_1 x >)) \</span> <a name="l00217"></a>00217 <span class="preprocessor"> namespace Templates { typedef Similarity2DTransform< ITK_TEMPLATE_1 x > Similarity2DTransform##y; } \</span> <a name="l00218"></a>00218 <span class="preprocessor"> }</span> <a name="l00219"></a>00219 <span class="preprocessor"></span> <a name="l00220"></a>00220 <span class="preprocessor">#if ITK_TEMPLATE_EXPLICIT</span> <a name="l00221"></a>00221 <span class="preprocessor"></span><span class="preprocessor"># include "Templates/itkSimilarity2DTransform+-.h"</span> <a name="l00222"></a>00222 <span class="preprocessor">#endif</span> <a name="l00223"></a>00223 <span class="preprocessor"></span> <a name="l00224"></a>00224 <span class="preprocessor">#if ITK_TEMPLATE_TXX</span> <a name="l00225"></a>00225 <span class="preprocessor"></span><span class="preprocessor"># include "itkSimilarity2DTransform.txx"</span> <a name="l00226"></a>00226 <span class="preprocessor">#endif</span> <a name="l00227"></a>00227 <span class="preprocessor"></span> <a name="l00228"></a>00228 <span class="preprocessor">#endif </span><span class="comment">/* __itkSimilarity2DTransform_h */</span> <a name="l00229"></a>00229 </pre></div></div> <hr><address><small> Generated at Fri May 8 00:13:45 2009 for ITK by <a href="http://www.stack.nl/~dimitri/doxygen/index.html"> <img src="http://www.stack.nl/~dimitri/doxygen/doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53> </a> 1.5.9 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2000</small></address> </body> </html>