go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkVectorMeanDiffusionImageFilter.h
Go to the documentation of this file.
1 /*======================================================================
2 
3  This file is part of the elastix software.
4 
5  Copyright (c) University Medical Center Utrecht. All rights reserved.
6  See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
7  details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notices for more information.
12 
13 ======================================================================*/
14 
15 #ifndef __itkVectorMeanDiffusionImageFilter_H__
16 #define __itkVectorMeanDiffusionImageFilter_H__
17 
18 #include "itkImageToImageFilter.h"
19 #include "itkImage.h"
20 #include "itkVector.h"
21 #include "itkNumericTraits.h"
22 
23 #include "itkRescaleIntensityImageFilter.h"
24 
25 namespace itk
26 {
44 template< class TInputImage, class TGrayValueImage >
46  public ImageToImageFilter< TInputImage, TInputImage >
47 {
48 public:
49 
51  typedef TInputImage InputImageType;
52  typedef TGrayValueImage GrayValueImageType;
53  typedef typename GrayValueImageType::Pointer GrayValueImagePointer;
54 
57  typedef ImageToImageFilter<
59  typedef SmartPointer< Self > Pointer;
60  typedef SmartPointer< const Self > ConstPointer;
61 
63  itkStaticConstMacro( InputImageDimension, unsigned int,
64  TInputImage::ImageDimension );
65 
67  itkNewMacro( Self );
68 
70  itkTypeMacro( VectorMeanDiffusionImageFilter, ImageToImageFilter );
71 
73  typedef typename InputImageType::PixelType InputPixelType;
74  typedef typename InputPixelType::ValueType ValueType;
75  //typedef typename NumericTraits<InputPixelType>::RealType InputRealType;
76  typedef typename InputImageType::RegionType InputImageRegionType;
77  typedef typename InputImageType::SizeType InputSizeType;
78  typedef typename InputImageType::IndexType IndexType;
79  typedef Vector< double,
80  itkGetStaticConstMacro( InputImageDimension ) > VectorRealType;
81  typedef Image< double,
82  itkGetStaticConstMacro( InputImageDimension ) > DoubleImageType;
83  typedef typename DoubleImageType::Pointer DoubleImagePointer;
84  typedef typename GrayValueImageType::PixelType GrayValuePixelType;
85 
87  typedef RescaleIntensityImageFilter<
89  typedef typename RescaleImageFilterType::Pointer RescaleImageFilterPointer;
90 
92  itkSetMacro( Radius, InputSizeType );
93 
95  itkGetConstReferenceMacro( Radius, InputSizeType );
96 
104  virtual void GenerateInputRequestedRegion() throw( InvalidRequestedRegionError );
105 
107  itkSetMacro( NumberOfIterations, unsigned int );
108  itkGetConstMacro( NumberOfIterations, unsigned int );
109 
111  void SetGrayValueImage( GrayValueImageType * _arg );
112 
114  {
115  return this->m_GrayValueImage.GetPointer();
116  }
117 
118 
119 protected:
120 
123 
124  void PrintSelf( std::ostream & os, Indent indent ) const;
125 
137  void GenerateData( void );
138 
139 private:
140 
141  VectorMeanDiffusionImageFilter( const Self & ); // purposely not implemented
142  void operator=( const Self & ); // purposely not implemented
143 
146  unsigned int m_NumberOfIterations;
147 
151 
153 
155  void FilterGrayValueImage( void );
156 
157 };
158 
159 } // end namespace itk
160 
161 #ifndef ITK_MANUAL_INSTANTIATION
162 #include "itkVectorMeanDiffusionImageFilter.hxx"
163 #endif
164 
165 #endif // end #ifndef __itkVectorMeanDiffusionImageFilter_H__
void SetGrayValueImage(GrayValueImageType *_arg)
GrayValueImageType::Pointer GetGrayValueImage(void)
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension)
Vector< double, itkGetStaticConstMacro(InputImageDimension) > VectorRealType
void PrintSelf(std::ostream &os, Indent indent) const
Applies an averaging filter to an image.
RescaleImageFilterType::Pointer RescaleImageFilterPointer
Image< double, itkGetStaticConstMacro(InputImageDimension) > DoubleImageType
ImageToImageFilter< InputImageType, InputImageType > Superclass
RescaleIntensityImageFilter< GrayValueImageType, DoubleImageType > RescaleImageFilterType


Generated on 11-03-2014 for elastix by doxygen 1.8.6 elastix logo