00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
#ifndef __itkFillholeImageFilter_h
00018
#define __itkFillholeImageFilter_h
00019
00020
#include "itkImageToImageFilter.h"
00021
00022
namespace itk {
00023
00053
template<
class TInputImage,
class TOutputImage>
00054 class ITK_EXPORT GrayscaleFillholeImageFilter :
00055
public ImageToImageFilter<TInputImage, TOutputImage>
00056 {
00057
public:
00059 typedef GrayscaleFillholeImageFilter
Self;
00060
typedef ImageToImageFilter<TInputImage, TOutputImage>
00061 Superclass;
00062 typedef SmartPointer<Self> Pointer;
00063 typedef SmartPointer<const Self> ConstPointer;
00064
00066 typedef TInputImage
InputImageType;
00067 typedef TOutputImage
OutputImageType;
00068 typedef typename InputImageType::Pointer
InputImagePointer;
00069 typedef typename InputImageType::ConstPointer
InputImageConstPointer;
00070 typedef typename InputImageType::RegionType
InputImageRegionType;
00071 typedef typename InputImageType::PixelType
InputImagePixelType;
00072 typedef typename OutputImageType::Pointer
OutputImagePointer;
00073 typedef typename OutputImageType::ConstPointer
OutputImageConstPointer;
00074 typedef typename OutputImageType::RegionType
OutputImageRegionType;
00075 typedef typename OutputImageType::PixelType
OutputImagePixelType;
00076
00078
itkStaticConstMacro(InputImageDimension,
unsigned int,
00079 TInputImage::ImageDimension);
00080
itkStaticConstMacro(OutputImageDimension,
unsigned int,
00081 TOutputImage::ImageDimension);
00082
00084
itkNewMacro(
Self);
00085
00087
itkTypeMacro(GrayscaleFillholeImageFilter,
00088
ImageToImageFilter);
00089
00092
itkGetMacro(NumberOfIterationsUsed,
unsigned long);
00093
00094
protected:
00095 GrayscaleFillholeImageFilter();
00096 ~GrayscaleFillholeImageFilter() {};
00097 void PrintSelf(std::ostream& os,
Indent indent)
const;
00098
00102
void GenerateInputRequestedRegion() ;
00103
00105
void EnlargeOutputRequestedRegion(
DataObject *
itkNotUsed(output));
00106
00109
void GenerateData();
00110
00111
00112
private:
00113 GrayscaleFillholeImageFilter(
const Self&);
00114
void operator=(
const Self&);
00115
00116
unsigned long m_NumberOfIterationsUsed;
00117 } ;
00118
00119 }
00120
00121
#ifndef ITK_MANUAL_INSTANTIATION
00122
#include "itkGrayscaleFillholeImageFilter.txx"
00123
#endif
00124
00125
#endif
00126
00127