NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
itkSetOutputVectorToCurrentPositionFilter.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 itkSetOutputVectorToCurrentPositionFilter_h
16 #define itkSetOutputVectorToCurrentPositionFilter_h
17 
18 #include <itkInPlaceImageFilter.h>
19 #include <itkVector.h>
20 #include <itkImage.h>
21 
22 namespace itk {
33 template < typename TScalarType, unsigned int NDimensions = 3>
35 public InPlaceImageFilter<
36  Image< Vector<TScalarType, NDimensions>, NDimensions>, // Input image
37  Image< Vector<TScalarType, NDimensions>, NDimensions> // Output image
38  >
39 {
40  public:
41 
44  typedef InPlaceImageFilter<Image< Vector<TScalarType, NDimensions>, NDimensions>,
47  typedef SmartPointer<Self> Pointer;
48  typedef SmartPointer<const Self> ConstPointer;
49 
51  typedef Vector< TScalarType, NDimensions > InputPixelType;
55  typedef InputPixelType OutputPixelType;
56  typedef InputImageType OutputImageType;
57  typedef typename OutputImageType::PointType OutputImagePointType;
58 
60  itkNewMacro(Self);
61 
63  itkTypeMacro(SetOutputVectorToCurrentPositionFilter, InPlaceImageFilter);
64 
66  itkStaticConstMacro(Dimension, unsigned int, NDimensions);
67 
69  itkSetMacro(OutputIsInMillimetres, bool);
70  itkGetMacro(OutputIsInMillimetres, bool);
71 
72  protected:
75  void PrintSelf(std::ostream& os, Indent indent) const;
76 
77  // Check before we start.
78  virtual void BeforeThreadedGenerateData();
79 
80  // The main method to implement in derived classes, note, its threaded.
81  virtual void ThreadedGenerateData( const InputImageRegionType &outputRegionForThread, ThreadIdType threadId);
82 
83  private:
84 
89  void operator=(const Self&);
90 
92  bool m_OutputIsInMillimetres;
93 
94 }; // end class
95 
96 } // end namespace
97 
98 #ifndef ITK_MANUAL_INSTANTIATION
99 #include "itkSetOutputVectorToCurrentPositionFilter.txx"
100 #endif
101 
102 #endif
InputImageType::IndexType InputImageIndexType
Definition: itkSetOutputVectorToCurrentPositionFilter.h:53
Image< InputPixelType, NDimensions > InputImageType
Definition: itkSetOutputVectorToCurrentPositionFilter.h:52
InputImageType::RegionType InputImageRegionType
Definition: itkSetOutputVectorToCurrentPositionFilter.h:54
~SetOutputVectorToCurrentPositionFilter()
Definition: itkSetOutputVectorToCurrentPositionFilter.h:74
OutputImageType::PointType OutputImagePointType
Definition: itkSetOutputVectorToCurrentPositionFilter.h:57
Definition: niftkITKAffineResampleImage.cxx:74
ImageType::IndexType IndexType
Definition: niftkMakeLapUSProbeBasicModel.cxx:32
SmartPointer< Self > Pointer
Definition: itkSetOutputVectorToCurrentPositionFilter.h:47
InputPixelType OutputPixelType
Definition: itkSetOutputVectorToCurrentPositionFilter.h:55
InputImageType OutputImageType
Definition: itkSetOutputVectorToCurrentPositionFilter.h:56
ImageType::RegionType RegionType
Definition: niftkMakeLapUSProbeBasicModel.cxx:30
InPlaceImageFilter< Image< Vector< TScalarType, NDimensions >, NDimensions >, Image< Vector< TScalarType, NDimensions >, NDimensions > > Superclass
Definition: itkSetOutputVectorToCurrentPositionFilter.h:46
Simultaneous itk::Image and itk::Array (and hence vnl_vector) class.
SetOutputVectorToCurrentPositionFilter Self
Definition: itkSetOutputVectorToCurrentPositionFilter.h:43
const unsigned int Dimension
Definition: niftkBreastDCEandADC.cxx:89
This class takes a vector image as input, and outputs a vector image, where the vector data value at ...
Definition: itkSetOutputVectorToCurrentPositionFilter.h:34
SmartPointer< const Self > ConstPointer
Definition: itkSetOutputVectorToCurrentPositionFilter.h:48
Vector< TScalarType, NDimensions > InputPixelType
Definition: itkSetOutputVectorToCurrentPositionFilter.h:51