<!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: itk::PixelAccessor< TInternalType, TExternalType > Class Template Reference</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="namespaceitk.html">itk</a>::<a class="el" href="classitk_1_1PixelAccessor.html">PixelAccessor</a> </div> <div class="contents"> <h1>itk::PixelAccessor< TInternalType, TExternalType > Class Template Reference<br> <small> [<a class="el" href="group__ImageAdaptors.html">Image Adaptors</a>]</small> </h1><!-- doxytag: class="itk::PixelAccessor" -->Give access to partial aspects of a type. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="itkPixelAccessor_8h_source.html">itkPixelAccessor.h</a>></code> <p> <p> <a href="classitk_1_1PixelAccessor-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Types</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">typedef TExternalType </td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1PixelAccessor.html#db175ac6f11e3c6251720b7ba055c7e6">ExternalType</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">typedef TInternalType </td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1PixelAccessor.html#8aaaf70e47fd13940ddb6e5cd143cd72">InternalType</a></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">TExternalType </td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1PixelAccessor.html#18c56f7ff456f50abc1f7042f5aa7f39">Get</a> (const TInternalType &input) const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classitk_1_1PixelAccessor.html#737ca1ed6f9460bcd67054da6d61e84b">Set</a> (TInternalType &output, const TExternalType &input) const </td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> <h3>template<class TInternalType, class TExternalType><br> class itk::PixelAccessor< TInternalType, TExternalType ></h3> Give access to partial aspects of a type. <p> <a class="el" href="classitk_1_1PixelAccessor.html" title="Give access to partial aspects of a type.">PixelAccessor</a> is templated over an internal type and an external type representation. This class encapsulates a customized convertion between the internal and external type representations.<p> <a class="el" href="classitk_1_1PixelAccessor.html" title="Give access to partial aspects of a type.">PixelAccessor</a> is designed to be used in conjuntion with ImageAdaptors. An <a class="el" href="classitk_1_1ImageAdaptor.html" title="Give access to partial aspects of voxels from an Image.">ImageAdaptor</a> take an image and present it as another image in which the pixels are a pixel-to-pixel modification of the original image.<p> ImageAdaptors are intended to perform task similar to ImageFilters, but reducing the overhead in memory allocation, at the price of some reduction in performance.<p> ImageAdaptors are templated over a <a class="el" href="classitk_1_1PixelAccessor.html" title="Give access to partial aspects of a type.">PixelAccessor</a> class that will define what kind of transformation is applied to the pixel data. Typical uses of <a class="el" href="classitk_1_1PixelAccessor.html" title="Give access to partial aspects of a type.">PixelAccessor</a> include basic type casting, (e.g. make a float image looks like a unsigned int image).<p> Every <a class="el" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">Image</a> has a default <a class="el" href="classitk_1_1PixelAccessor.html" title="Give access to partial aspects of a type.">PixelAccessor</a> that performs an identity operation. ImageIterators use the <a class="el" href="classitk_1_1PixelAccessor.html" title="Give access to partial aspects of a type.">PixelAccessor</a> defined by the image in order to get and set the values of pixels. <p>Definition at line <a class="el" href="itkPixelAccessor_8h_source.html#l00053">53</a> of file <a class="el" href="itkPixelAccessor_8h_source.html">itkPixelAccessor.h</a>.</p> <hr><h2>Member Typedef Documentation</h2> <a class="anchor" name="db175ac6f11e3c6251720b7ba055c7e6"></a><!-- doxytag: member="itk::PixelAccessor::ExternalType" ref="db175ac6f11e3c6251720b7ba055c7e6" args="" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class TInternalType , class TExternalType > </div> <table class="memname"> <tr> <td class="memname">typedef TExternalType <a class="el" href="classitk_1_1PixelAccessor.html">itk::PixelAccessor</a>< TInternalType, TExternalType >::<a class="el" href="classitk_1_1PixelAccessor.html#db175ac6f11e3c6251720b7ba055c7e6">ExternalType</a> </td> </tr> </table> </div> <div class="memdoc"> <p> External typedef. It defines the external aspect that this class will exhibit. <p>Definition at line <a class="el" href="itkPixelAccessor_8h_source.html#l00058">58</a> of file <a class="el" href="itkPixelAccessor_8h_source.html">itkPixelAccessor.h</a>.</p> </div> </div><p> <a class="anchor" name="8aaaf70e47fd13940ddb6e5cd143cd72"></a><!-- doxytag: member="itk::PixelAccessor::InternalType" ref="8aaaf70e47fd13940ddb6e5cd143cd72" args="" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class TInternalType , class TExternalType > </div> <table class="memname"> <tr> <td class="memname">typedef TInternalType <a class="el" href="classitk_1_1PixelAccessor.html">itk::PixelAccessor</a>< TInternalType, TExternalType >::<a class="el" href="classitk_1_1PixelAccessor.html#8aaaf70e47fd13940ddb6e5cd143cd72">InternalType</a> </td> </tr> </table> </div> <div class="memdoc"> <p> Internal typedef. It defines the internal real representation of data. <p>Definition at line <a class="el" href="itkPixelAccessor_8h_source.html#l00062">62</a> of file <a class="el" href="itkPixelAccessor_8h_source.html">itkPixelAccessor.h</a>.</p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="18c56f7ff456f50abc1f7042f5aa7f39"></a><!-- doxytag: member="itk::PixelAccessor::Get" ref="18c56f7ff456f50abc1f7042f5aa7f39" args="(const TInternalType &input) const " --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class TInternalType , class TExternalType > </div> <table class="memname"> <tr> <td class="memname">TExternalType <a class="el" href="classitk_1_1PixelAccessor.html">itk::PixelAccessor</a>< TInternalType, TExternalType >::Get </td> <td>(</td> <td class="paramtype">const TInternalType & </td> <td class="paramname"> <em>input</em> </td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="itkPixelAccessor_8h_source.html#l00067">67</a> of file <a class="el" href="itkPixelAccessor_8h_source.html">itkPixelAccessor.h</a>.</p> </div> </div><p> <a class="anchor" name="737ca1ed6f9460bcd67054da6d61e84b"></a><!-- doxytag: member="itk::PixelAccessor::Set" ref="737ca1ed6f9460bcd67054da6d61e84b" args="(TInternalType &output, const TExternalType &input) const " --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class TInternalType , class TExternalType > </div> <table class="memname"> <tr> <td class="memname">void <a class="el" href="classitk_1_1PixelAccessor.html">itk::PixelAccessor</a>< TInternalType, TExternalType >::Set </td> <td>(</td> <td class="paramtype">TInternalType & </td> <td class="paramname"> <em>output</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const TExternalType & </td> <td class="paramname"> <em>input</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="itkPixelAccessor_8h_source.html#l00064">64</a> of file <a class="el" href="itkPixelAccessor_8h_source.html">itkPixelAccessor.h</a>.</p> </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="itkPixelAccessor_8h_source.html">itkPixelAccessor.h</a></ul> </div> <hr><address><small> Generated at Fri May 8 06:11:03 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>