00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
#ifndef _itkRegionGrowImageFilter_h
00018
#define _itkRegionGrowImageFilter_h
00019
00020
#include "itkObject.h"
00021
#include "itkImageToImageFilter.h"
00022
00023
namespace itk
00024 {
00025
00075
template <
class TInputImage,
class TOutputImage>
00076 class ITK_EXPORT RegionGrowImageFilter :
00077
public ImageToImageFilter<TInputImage,TOutputImage>
00078 {
00079
public:
00081 typedef RegionGrowImageFilter
Self;
00082 typedef Object Superclass;
00083 typedef SmartPointer<Self> Pointer;
00084 typedef SmartPointer<const Self> ConstPointer;
00085
00087
itkNewMacro(
Self);
00088
00090
itkTypeMacro(RegionGrowImageFilter,
Object);
00091
00093 typedef TInputImage
InputImageType;
00094 typedef typename TInputImage::Pointer
InputImagePointer;
00095 typedef typename TInputImage::ConstPointer
InputImageConstPointer;
00096
00098 typedef typename TInputImage::PixelType
InputImagePixelType;
00099
00101 typedef TOutputImage
OutputImageType;
00102 typedef typename TOutputImage::Pointer
OutputImagePointer;
00103
00105 typedef typename TOutputImage::PixelType
OutputImagePixelType;
00106
00108
itkSetMacro(MaximumNumberOfRegions,
unsigned int);
00109
itkGetMacro(MaximumNumberOfRegions,
unsigned int);
00110
00112
itkSetMacro(RowGridSize,
unsigned int);
00113
itkGetMacro(RowGridSize,
unsigned int);
00114
00116
itkSetMacro(ColGridSize,
unsigned int);
00117
itkGetMacro(ColGridSize,
unsigned int);
00118
00120
itkSetMacro(SliceGridSize,
unsigned int);
00121
itkGetMacro(SliceGridSize,
unsigned int);
00122
00124
virtual void ApplyRegionGrowImageFilter(){};
00125
00127
virtual void MergeRegions(){};
00128
00129
protected:
00130 RegionGrowImageFilter();
00131 ~RegionGrowImageFilter();
00132
void PrintSelf(std::ostream& os,
Indent indent)
const;
00133
00134
private:
00135 RegionGrowImageFilter(
const Self&);
00136
void operator=(
const Self&);
00137
00138
unsigned int m_MaximumNumberOfRegions;
00139
unsigned int m_RowGridSize;
00140
unsigned int m_ColGridSize;
00141
unsigned int m_SliceGridSize;
00142
00143 };
00144
00145 }
00146
00147
#ifndef ITK_MANUAL_INSTANTIATION
00148
#include "itkRegionGrowImageFilter.txx"
00149
#endif
00150
00151
00152
00153
#endif
00154
00155
00156
00157
00158
00159
00160
00161
00162