Sophie

Sophie

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

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: itkRGBPixel.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>itkRGBPixel.h</h1><a href="itkRGBPixel_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: itkRGBPixel.h,v $</span>
<a name="l00005"></a>00005 <span class="comment">  Language:  C++</span>
<a name="l00006"></a>00006 <span class="comment">  Date:      $Date: 2008-07-02 22:00:57 $</span>
<a name="l00007"></a>00007 <span class="comment">  Version:   $Revision: 1.41 $</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 __itkRGBPixel_h</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkRGBPixel_h</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="comment">// Undefine an eventual RGBPixel macro</span>
<a name="l00021"></a>00021 <span class="preprocessor">#ifdef RGBPixel</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#undef RGBPixel</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;<a class="code" href="itkIndent_8h.html">itkIndent.h</a>&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;<a class="code" href="itkFixedArray_8h.html">itkFixedArray.h</a>&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include "vnl/vnl_math.h"</span>
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 <span class="keyword">namespace </span>itk
<a name="l00030"></a>00030 {
<a name="l00031"></a>00031 
<a name="l00050"></a>00050 <span class="keyword">template</span> &lt; <span class="keyword">typename</span> TComponent = <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> &gt;
<a name="l00051"></a><a class="code" href="classitk_1_1RGBPixel.html">00051</a> <span class="keyword">class </span><a class="code" href="classitk_1_1RGBPixel.html" title="Represent Red, Green and Blue component for color images.">RGBPixel</a>: <span class="keyword">public</span> <a class="code" href="classitk_1_1FixedArray.html" title="Simulate a standard C array with copy semnatics.">FixedArray</a>&lt;TComponent,3&gt;
<a name="l00052"></a>00052 {
<a name="l00053"></a>00053 <span class="keyword">public</span>:
<a name="l00055"></a><a class="code" href="classitk_1_1RGBPixel.html#36fd0132f1d4852885b0e540a6686bdb">00055</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1RGBPixel.html" title="Represent Red, Green and Blue component for color images.">RGBPixel</a>  <a class="code" href="classitk_1_1RGBPixel.html" title="Represent Red, Green and Blue component for color images.">Self</a>;
<a name="l00056"></a><a class="code" href="classitk_1_1RGBPixel.html#2e6fb6121a2ba84616e21adbb29cb6f4">00056</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1FixedArray.html">FixedArray&lt;TComponent, 3&gt;</a> <a class="code" href="classitk_1_1FixedArray.html" title="Simulate a standard C array with copy semnatics.">Superclass</a>;
<a name="l00057"></a>00057 
<a name="l00059"></a>00059   <a class="code" href="classitk_1_1RGBPixel.html#daa23ef55c8dc8a46f721de802cbc2e1">itkStaticConstMacro</a>(Dimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, 3);
<a name="l00060"></a>00060   <a class="code" href="classitk_1_1RGBPixel.html#daa23ef55c8dc8a46f721de802cbc2e1">itkStaticConstMacro</a>(Length, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, 3);
<a name="l00062"></a>00062 
<a name="l00064"></a><a class="code" href="classitk_1_1RGBPixel.html#5fb182093629ce7feb8c0f21700f6a22">00064</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1FixedArray.html">FixedArray&lt;TComponent, 3&gt;</a> <a class="code" href="classitk_1_1FixedArray.html" title="Simulate a standard C array with copy semnatics.">BaseArray</a>;
<a name="l00065"></a>00065 
<a name="l00067"></a><a class="code" href="classitk_1_1RGBPixel.html#98aad6da6a722513f1c3d85bab9c7cd3">00067</a>   <span class="keyword">typedef</span> TComponent <a class="code" href="classitk_1_1RGBPixel.html#98aad6da6a722513f1c3d85bab9c7cd3">ComponentType</a>;
<a name="l00068"></a><a class="code" href="classitk_1_1RGBPixel.html#e66e2763468efd48ee8868a16049342b">00068</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1FixedArray.html#32aedef2892b6559798047b240973e0c">Superclass::ValueType</a> <a class="code" href="classitk_1_1RGBPixel.html#e66e2763468efd48ee8868a16049342b">ValueType</a>;
<a name="l00069"></a>00069 
<a name="l00071"></a><a class="code" href="classitk_1_1RGBPixel.html#a1a7ade76dc5237cb2aae82cba8d21df">00071</a>   <a class="code" href="classitk_1_1RGBPixel.html#a1a7ade76dc5237cb2aae82cba8d21df">RGBPixel</a>() {};
<a name="l00072"></a>00072 
<a name="l00074"></a><a class="code" href="classitk_1_1RGBPixel.html#3375b0433c8190818f0a328f824ce6bc">00074</a>   <a class="code" href="classitk_1_1RGBPixel.html#3375b0433c8190818f0a328f824ce6bc">RGBPixel</a> (<span class="keyword">const</span> <a class="code" href="classitk_1_1RGBPixel.html#98aad6da6a722513f1c3d85bab9c7cd3">ComponentType</a>&amp; r) { this-&gt;<a class="code" href="classitk_1_1FixedArray.html#df1a100a801b61138258203b0b89a5c0">Fill</a>(r); }
<a name="l00075"></a>00075 
<a name="l00077"></a>00077   <span class="keyword">template</span>&lt; <span class="keyword">class</span> TRGBPixelValueType &gt;
<a name="l00078"></a><a class="code" href="classitk_1_1RGBPixel.html#ca2c6ba60a685985412184b599afee78">00078</a>   <a class="code" href="classitk_1_1RGBPixel.html#ca2c6ba60a685985412184b599afee78">RGBPixel</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1RGBPixel.html" title="Represent Red, Green and Blue component for color images.">RGBPixel&lt; TRGBPixelValueType &gt;</a>&amp; r): <a class="code" href="classitk_1_1FixedArray.html" title="Simulate a standard C array with copy semnatics.">BaseArray</a>(r) {}
<a name="l00079"></a><a class="code" href="classitk_1_1RGBPixel.html#662915c14d629e55926c3932a597d4da">00079</a>   <a class="code" href="classitk_1_1RGBPixel.html#662915c14d629e55926c3932a597d4da">RGBPixel</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1RGBPixel.html#98aad6da6a722513f1c3d85bab9c7cd3">ComponentType</a>  r[3]): <a class="code" href="classitk_1_1FixedArray.html" title="Simulate a standard C array with copy semnatics.">BaseArray</a>(r) {}  
<a name="l00081"></a>00081 
<a name="l00083"></a>00083   <span class="keyword">template</span>&lt; <span class="keyword">class</span> TRGBPixelValueType &gt;
<a name="l00084"></a><a class="code" href="classitk_1_1RGBPixel.html#5507a5f3b65de93ff4df26a161455b87">00084</a>   <a class="code" href="classitk_1_1RGBPixel.html" title="Represent Red, Green and Blue component for color images.">Self</a>&amp; <a class="code" href="classitk_1_1RGBPixel.html#5507a5f3b65de93ff4df26a161455b87">operator= </a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1RGBPixel.html" title="Represent Red, Green and Blue component for color images.">RGBPixel&lt; TRGBPixelValueType &gt;</a> &amp; r)
<a name="l00085"></a>00085     {
<a name="l00086"></a>00086     <a class="code" href="classitk_1_1FixedArray.html#d16ed6955993844c65a5cf404c6e32d9">BaseArray::operator=</a>(r);
<a name="l00087"></a>00087     <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00088"></a>00088     }
<a name="l00090"></a>00090 
<a name="l00091"></a>00091   <a class="code" href="classitk_1_1RGBPixel.html#36fd0132f1d4852885b0e540a6686bdb">Self</a>&amp; <a class="code" href="classitk_1_1RGBPixel.html#5507a5f3b65de93ff4df26a161455b87">operator= </a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1RGBPixel.html#98aad6da6a722513f1c3d85bab9c7cd3">ComponentType</a> r[3]);
<a name="l00092"></a>00092 
<a name="l00094"></a>00094   <a class="code" href="classitk_1_1RGBPixel.html#36fd0132f1d4852885b0e540a6686bdb">Self</a> <a class="code" href="classitk_1_1RGBPixel.html#5613e13bbe71628115962062d8771997">operator+</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1RGBPixel.html#36fd0132f1d4852885b0e540a6686bdb">Self</a> &amp;vec) <span class="keyword">const</span>;
<a name="l00095"></a>00095   <a class="code" href="classitk_1_1RGBPixel.html#36fd0132f1d4852885b0e540a6686bdb">Self</a> <a class="code" href="classitk_1_1RGBPixel.html#04e14933ca69a94b77a7a9c8114b0c7b">operator-</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1RGBPixel.html#36fd0132f1d4852885b0e540a6686bdb">Self</a> &amp;vec) <span class="keyword">const</span>;
<a name="l00096"></a>00096   <span class="keyword">const</span> <a class="code" href="classitk_1_1RGBPixel.html#36fd0132f1d4852885b0e540a6686bdb">Self</a> &amp; <a class="code" href="classitk_1_1RGBPixel.html#83525482f535ae603cc79a9b5b6bc780">operator+=</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1RGBPixel.html#36fd0132f1d4852885b0e540a6686bdb">Self</a> &amp;vec);
<a name="l00097"></a>00097   <span class="keyword">const</span> <a class="code" href="classitk_1_1RGBPixel.html#36fd0132f1d4852885b0e540a6686bdb">Self</a> &amp; <a class="code" href="classitk_1_1RGBPixel.html#7533a1cb920837729fdf81e6cd7fb9cd">operator-=</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1RGBPixel.html#36fd0132f1d4852885b0e540a6686bdb">Self</a> &amp;vec);
<a name="l00098"></a>00098   <a class="code" href="classitk_1_1RGBPixel.html#36fd0132f1d4852885b0e540a6686bdb">Self</a> <a class="code" href="classitk_1_1RGBPixel.html#6e35e21d879ac7d904fa4b7ec61e9e37">operator*</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1RGBPixel.html#98aad6da6a722513f1c3d85bab9c7cd3">ComponentType</a> &amp;f) <span class="keyword">const</span>;
<a name="l00100"></a>00100 
<a name="l00101"></a>00101   <span class="keywordtype">bool</span> <a class="code" href="classitk_1_1RGBPixel.html#ef1f8036c1a37650eb549d574e1a71fa">operator&lt;</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1RGBPixel.html#36fd0132f1d4852885b0e540a6686bdb">Self</a> &amp;vec) <span class="keyword">const</span>;
<a name="l00102"></a>00102   <span class="keywordtype">bool</span> <a class="code" href="classitk_1_1RGBPixel.html#2c2f25d8395c8d52dc2ccae0d9720d3f">operator==</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1RGBPixel.html#36fd0132f1d4852885b0e540a6686bdb">Self</a> &amp;vec) <span class="keyword">const</span>;
<a name="l00103"></a>00103  
<a name="l00105"></a><a class="code" href="classitk_1_1RGBPixel.html#08b5a0faefe72b8417801eacd95e0da8">00105</a>   <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classitk_1_1RGBPixel.html#08b5a0faefe72b8417801eacd95e0da8">GetNumberOfComponents</a>(){ <span class="keywordflow">return</span> 3;}
<a name="l00106"></a>00106 
<a name="l00108"></a><a class="code" href="classitk_1_1RGBPixel.html#a33819884c2e8425fe73ba55eed0e294">00108</a>   <a class="code" href="classitk_1_1RGBPixel.html#98aad6da6a722513f1c3d85bab9c7cd3">ComponentType</a> <a class="code" href="classitk_1_1RGBPixel.html#a33819884c2e8425fe73ba55eed0e294">GetNthComponent</a>(<span class="keywordtype">int</span> c)<span class="keyword"> const</span>
<a name="l00109"></a>00109 <span class="keyword">    </span>{ <span class="keywordflow">return</span> this-&gt;<a class="code" href="classitk_1_1FixedArray.html#6266788e1529e419e5028c15780d53de">operator[]</a>(c); }
<a name="l00110"></a>00110 
<a name="l00112"></a><a class="code" href="classitk_1_1RGBPixel.html#fc1dbd2b60907e1ae77b9e343b3e05a6">00112</a>   <a class="code" href="classitk_1_1RGBPixel.html#98aad6da6a722513f1c3d85bab9c7cd3">ComponentType</a> <a class="code" href="classitk_1_1RGBPixel.html#fc1dbd2b60907e1ae77b9e343b3e05a6">GetScalarValue</a>()<span class="keyword"> const</span>
<a name="l00113"></a>00113 <span class="keyword">    </span>{
<a name="l00114"></a>00114       <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><a class="code" href="classitk_1_1RGBPixel.html#98aad6da6a722513f1c3d85bab9c7cd3">ComponentType</a><span class="keyword">&gt;</span> (vcl_sqrt(
<a name="l00115"></a>00115         static_cast&lt;double&gt;(this-&gt;<span class="keyword">operator</span>[](0)) * static_cast&lt;double&gt;(this-&gt;<span class="keyword">operator</span>[](0)) +
<a name="l00116"></a>00116         static_cast&lt;double&gt;(this-&gt;<span class="keyword">operator</span>[](1)) * static_cast&lt;double&gt;(this-&gt;<span class="keyword">operator</span>[](1)) +
<a name="l00117"></a>00117         static_cast&lt;double&gt;(this-&gt;<span class="keyword">operator</span>[](2)) * static_cast&lt;double&gt;(this-&gt;<span class="keyword">operator</span>[](2)))); 
<a name="l00118"></a>00118     }
<a name="l00119"></a>00119 
<a name="l00121"></a><a class="code" href="classitk_1_1RGBPixel.html#b5dd43606cb2d390a96e4baa8bb30063">00121</a>   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1RGBPixel.html#b5dd43606cb2d390a96e4baa8bb30063">SetNthComponent</a>(<span class="keywordtype">int</span> c, <span class="keyword">const</span> <a class="code" href="classitk_1_1RGBPixel.html#98aad6da6a722513f1c3d85bab9c7cd3">ComponentType</a>&amp; v)  
<a name="l00122"></a>00122     {  this-&gt;<a class="code" href="classitk_1_1FixedArray.html#6266788e1529e419e5028c15780d53de">operator[]</a>(c) = v; }
<a name="l00123"></a>00123 
<a name="l00125"></a><a class="code" href="classitk_1_1RGBPixel.html#3c2b4946a7154cd1625d4ca87b6fd3b1">00125</a>   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1RGBPixel.html#3c2b4946a7154cd1625d4ca87b6fd3b1">SetRed</a>( <a class="code" href="classitk_1_1RGBPixel.html#98aad6da6a722513f1c3d85bab9c7cd3">ComponentType</a> red ) { this-&gt;<a class="code" href="classitk_1_1FixedArray.html#6266788e1529e419e5028c15780d53de">operator[]</a>(0) = red;}
<a name="l00126"></a>00126 
<a name="l00128"></a><a class="code" href="classitk_1_1RGBPixel.html#a9f2ec8e99d954b961cacc1e43d89248">00128</a>   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1RGBPixel.html#a9f2ec8e99d954b961cacc1e43d89248">SetGreen</a>( <a class="code" href="classitk_1_1RGBPixel.html#98aad6da6a722513f1c3d85bab9c7cd3">ComponentType</a> green ) {this-&gt;<a class="code" href="classitk_1_1FixedArray.html#6266788e1529e419e5028c15780d53de">operator[]</a>(1) = green;}
<a name="l00129"></a>00129 
<a name="l00131"></a><a class="code" href="classitk_1_1RGBPixel.html#385387586966e7b5bb9219e116f16a35">00131</a>   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1RGBPixel.html#385387586966e7b5bb9219e116f16a35">SetBlue</a>( <a class="code" href="classitk_1_1RGBPixel.html#98aad6da6a722513f1c3d85bab9c7cd3">ComponentType</a> blue ) {this-&gt;<a class="code" href="classitk_1_1FixedArray.html#6266788e1529e419e5028c15780d53de">operator[]</a>(2) = blue;}
<a name="l00132"></a>00132 
<a name="l00134"></a><a class="code" href="classitk_1_1RGBPixel.html#137c282f9d5ed7329a54dfc501a97ad9">00134</a>   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1RGBPixel.html#137c282f9d5ed7329a54dfc501a97ad9">Set</a>( <a class="code" href="classitk_1_1RGBPixel.html#98aad6da6a722513f1c3d85bab9c7cd3">ComponentType</a> red, <a class="code" href="classitk_1_1RGBPixel.html#98aad6da6a722513f1c3d85bab9c7cd3">ComponentType</a> green, <a class="code" href="classitk_1_1RGBPixel.html#98aad6da6a722513f1c3d85bab9c7cd3">ComponentType</a> blue )
<a name="l00135"></a>00135     { this-&gt;<a class="code" href="classitk_1_1FixedArray.html#6266788e1529e419e5028c15780d53de">operator[]</a>(0) = red; this-&gt;<a class="code" href="classitk_1_1FixedArray.html#6266788e1529e419e5028c15780d53de">operator[]</a>(1) = green; this-&gt;<a class="code" href="classitk_1_1FixedArray.html#6266788e1529e419e5028c15780d53de">operator[]</a>(2) = blue;}
<a name="l00136"></a>00136 
<a name="l00138"></a><a class="code" href="classitk_1_1RGBPixel.html#4206b77a477fd545d884b33ce291f271">00138</a>   <span class="keyword">const</span> <a class="code" href="classitk_1_1RGBPixel.html#98aad6da6a722513f1c3d85bab9c7cd3">ComponentType</a> &amp; <a class="code" href="classitk_1_1RGBPixel.html#4206b77a477fd545d884b33ce291f271">GetRed</a>( <span class="keywordtype">void</span> )<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this-&gt;<a class="code" href="classitk_1_1FixedArray.html#6266788e1529e419e5028c15780d53de">operator[]</a>(0);}
<a name="l00139"></a>00139 
<a name="l00141"></a><a class="code" href="classitk_1_1RGBPixel.html#69dc230a1b6098b2cc2b46900e48a770">00141</a>   <span class="keyword">const</span> <a class="code" href="classitk_1_1RGBPixel.html#98aad6da6a722513f1c3d85bab9c7cd3">ComponentType</a> &amp; <a class="code" href="classitk_1_1RGBPixel.html#69dc230a1b6098b2cc2b46900e48a770">GetGreen</a>( <span class="keywordtype">void</span> )<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this-&gt;<a class="code" href="classitk_1_1FixedArray.html#6266788e1529e419e5028c15780d53de">operator[]</a>(1);}
<a name="l00142"></a>00142 
<a name="l00144"></a><a class="code" href="classitk_1_1RGBPixel.html#615d0ea0aeeba65e85c9125f6acdc02d">00144</a>   <span class="keyword">const</span> <a class="code" href="classitk_1_1RGBPixel.html#98aad6da6a722513f1c3d85bab9c7cd3">ComponentType</a> &amp; <a class="code" href="classitk_1_1RGBPixel.html#615d0ea0aeeba65e85c9125f6acdc02d">GetBlue</a>( <span class="keywordtype">void</span> )<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this-&gt;<a class="code" href="classitk_1_1FixedArray.html#6266788e1529e419e5028c15780d53de">operator[]</a>(2);}
<a name="l00145"></a>00145 
<a name="l00147"></a>00147   <a class="code" href="classitk_1_1RGBPixel.html#98aad6da6a722513f1c3d85bab9c7cd3">ComponentType</a> <a class="code" href="classitk_1_1RGBPixel.html#6175ba8f8ec7ae2116b73c90d004d458">GetLuminance</a>( <span class="keywordtype">void</span> ) <span class="keyword">const</span>;
<a name="l00148"></a>00148 };
<a name="l00149"></a>00149 
<a name="l00150"></a>00150 
<a name="l00151"></a>00151 <span class="keyword">template</span>&lt; <span class="keyword">typename</span> TComponent  &gt;  
<a name="l00152"></a>00152 <a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> std::ostream&amp; <a class="code" href="namespaceitk.html#1a9c40969bca6a50e9d688a35d3c4984">operator&lt;&lt;</a>(std::ostream&amp; os, 
<a name="l00153"></a>00153                                     <span class="keyword">const</span> RGBPixel&lt;TComponent&gt; &amp; c); 
<a name="l00154"></a>00154 <span class="keyword">template</span>&lt; <span class="keyword">typename</span> TComponent  &gt;  
<a name="l00155"></a>00155 <a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> std::istream&amp; <a class="code" href="namespaceitk.html#687a81e337cd6bd3a5de73c2e31e6d84">operator&gt;&gt;</a>(std::istream&amp; is, 
<a name="l00156"></a>00156                                           RGBPixel&lt;TComponent&gt; &amp; c); 
<a name="l00157"></a>00157 
<a name="l00158"></a>00158 } <span class="comment">// end namespace itk</span>
<a name="l00159"></a>00159 
<a name="l00160"></a>00160 <span class="comment">// Define instantiation macro for this template.</span>
<a name="l00161"></a><a class="code" href="itkRGBPixel_8h.html#da9970733ca45aa4d4c12eb69f0182e1">00161</a> <span class="preprocessor">#define ITK_TEMPLATE_RGBPixel(_, EXPORT, x, y) namespace itk { \</span>
<a name="l00162"></a>00162 <span class="preprocessor">  _(1(class EXPORT RGBPixel&lt; ITK_TEMPLATE_1 x &gt;)) \</span>
<a name="l00163"></a>00163 <span class="preprocessor">  namespace Templates { typedef RGBPixel&lt; ITK_TEMPLATE_1 x &gt; RGBPixel##y; } \</span>
<a name="l00164"></a>00164 <span class="preprocessor">  }</span>
<a name="l00165"></a>00165 <span class="preprocessor"></span>
<a name="l00166"></a>00166 <span class="preprocessor">#if ITK_TEMPLATE_EXPLICIT</span>
<a name="l00167"></a>00167 <span class="preprocessor"></span><span class="preprocessor"># include "Templates/itkRGBPixel+-.h"</span>
<a name="l00168"></a>00168 <span class="preprocessor">#endif</span>
<a name="l00169"></a>00169 <span class="preprocessor"></span>
<a name="l00170"></a>00170 <span class="comment">//</span>
<a name="l00171"></a>00171 <span class="comment">// Numeric traits must be included after (optionally) including the explicit</span>
<a name="l00172"></a>00172 <span class="comment">// instantiations control of this class, in case the implicit instantiation</span>
<a name="l00173"></a>00173 <span class="comment">// needs to be disabled. </span>
<a name="l00174"></a>00174 <span class="comment">//</span>
<a name="l00175"></a>00175 <span class="comment">// NumericTraits must be included before (optionally) including the .txx file,</span>
<a name="l00176"></a>00176 <span class="comment">// in case the .txx requires to use NumericTraits.</span>
<a name="l00177"></a>00177 <span class="comment">//</span>
<a name="l00178"></a>00178 <span class="preprocessor">#include "<a class="code" href="itkNumericTraitsRGBPixel_8h.html">itkNumericTraitsRGBPixel.h</a>"</span>
<a name="l00179"></a>00179 
<a name="l00180"></a>00180 <span class="preprocessor">#if ITK_TEMPLATE_TXX</span>
<a name="l00181"></a>00181 <span class="preprocessor"></span><span class="preprocessor"># include "itkRGBPixel.txx"</span>
<a name="l00182"></a>00182 <span class="preprocessor">#endif</span>
<a name="l00183"></a>00183 <span class="preprocessor"></span>
<a name="l00184"></a>00184 <span class="preprocessor">#endif</span>
<a name="l00185"></a>00185 <span class="preprocessor"></span>
</pre></div></div>
<hr><address><small>
Generated at Fri May 8 00:05: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>,
 &copy;&nbsp;1997-2000</small></address>
</body>
</html>