NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
itkScalarToRGBOBIFPixelFunctor.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef itkScalarToRGBOBIFPixelFunctor_h
16 #define itkScalarToRGBOBIFPixelFunctor_h
17 
18 #include <itkRGBPixel.h>
19 
20 namespace itk {
21 
22 namespace Functor {
23 
31 template< class TScalar, int TNumberOfOrientations >
33 {
34 
35 public:
36 
39 
40  typedef unsigned char RGBComponentType;
41  typedef RGBPixel<RGBComponentType> RGBPixelType;
42  typedef TScalar ScalarType;
43 
44  RGBPixelType operator()( const TScalar &) const;
45 
46  void InterpolateRGB( const int c1[3], const int c2[3],
47  double fraction,
48  RGBPixelType &ans ) const;
49 
50 private:
51 
52  static const int OBIFcolors[23][3];
53 
54 };
55 
56 } // end namespace functor
57 
58 } // end namespace itk
59 
60 #ifndef ITK_MANUAL_INSTANTIATION
61 #include "itkScalarToRGBOBIFPixelFunctor.txx"
62 #endif
63 
64 #endif
TScalar ScalarType
Definition: itkScalarToRGBOBIFPixelFunctor.h:42
RGBPixel< RGBComponentType > RGBPixelType
Definition: itkScalarToRGBOBIFPixelFunctor.h:41
Definition: niftkITKAffineResampleImage.cxx:74
~ScalarToRGBOBIFPixelFunctor()
Definition: itkScalarToRGBOBIFPixelFunctor.h:38
Function object which maps a scalar value into an RGB pixel value for basic image feature images acco...
Definition: itkScalarToRGBOBIFPixelFunctor.h:32