Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
itkBrainMaskExtractionImageFilter.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef __itkBrainMaskExtractionImageFilter_h_
18 #define __itkBrainMaskExtractionImageFilter_h_
19 
20 #include "itkImageToImageFilter.h"
21 
22 namespace itk{
28 template< class TOutputImagePixelType >
30  public ImageToImageFilter< Image< unsigned short, 3 >,
31  Image< TOutputImagePixelType, 3 > >
32 {
33 
34 public:
35 
39  typedef ImageToImageFilter< Image< unsigned short, 3 >,
40  Image< TOutputImagePixelType, 3 > >
42 
44  itkFactorylessNewMacro(Self)
45  itkCloneMacro(Self)
46 
48  itkTypeMacro(BrainMaskExtractionImageFilter,
49  ImageToImageFilter);
50 
51  typedef unsigned short InputPixelType;
52 
53  typedef TOutputImagePixelType OutputPixelType;
54 
57 
58  typedef typename Superclass::OutputImageRegionType
60 
61  itkSetMacro( MaxNumIterations, int )
62  itkGetMacro( MaxNumIterations, int )
63 
64 protected:
65  BrainMaskExtractionImageFilter();
66  ~BrainMaskExtractionImageFilter() {};
67 
68  void GenerateData();
69 
70  bool CompareImages( typename OutputImageType::Pointer im1, typename OutputImageType::Pointer im2);
71  int ComputeHistogram( typename InputImageType::Pointer image);
72  void CopyImage( typename OutputImageType::Pointer target, typename OutputImageType::Pointer source);
73 
75 };
76 
77 }
78 
79 #ifndef ITK_MANUAL_INSTANTIATION
81 #endif
82 
83 #endif //__itkBrainMaskExtractionImageFilter_h_
84 
itk::SmartPointer< Self > Pointer
Superclass::OutputImageRegionType OutputImageRegionType
ImageToImageFilter< Image< unsigned short, 3 >, Image< TOutputImagePixelType, 3 > > Superclass
This class takes as input a T2-weighted image and computes a brainmask.
void CopyImage(typename OutputImageType::Pointer target, typename OutputImageType::Pointer source)
int ComputeHistogram(typename InputImageType::Pointer image)
bool CompareImages(typename OutputImageType::Pointer im1, typename OutputImageType::Pointer im2)