00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
#ifndef __itkDerivativeImageFilter_h
00018
#define __itkDerivativeImageFilter_h
00019
00020
#include "itkImageToImageFilter.h"
00021
#include "itkImage.h"
00022
00023
namespace itk
00024 {
00042
template <
class TInputImage,
class TOutputImage>
00043 class ITK_EXPORT DerivativeImageFilter :
00044
public ImageToImageFilter< TInputImage, TOutputImage >
00045 {
00046
public:
00048 typedef DerivativeImageFilter
Self;
00049 typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
00050 typedef SmartPointer<Self> Pointer;
00051 typedef SmartPointer<const Self> ConstPointer;
00052
00055 typedef typename TOutputImage::PixelType
OutputPixelType;
00056 typedef typename TOutputImage::InternalPixelType
OutputInternalPixelType;
00057 typedef typename TInputImage::PixelType
InputPixelType;
00058 typedef typename TInputImage::InternalPixelType
InputInternalPixelType;
00059
00062
itkStaticConstMacro(ImageDimension,
unsigned int,
00063 TOutputImage::ImageDimension);
00064
00066 typedef TInputImage
InputImageType;
00067 typedef TOutputImage
OutputImageType;
00068
00070
itkNewMacro(
Self);
00071
00073
itkTypeMacro(DerivativeImageFilter,
ImageToImageFilter);
00074
00076
itkSetMacro(Order,
unsigned int);
00077
itkGetMacro(Order,
unsigned int);
00078
itkSetMacro(Direction,
unsigned int);
00079
itkGetMacro(Direction,
unsigned int);
00080
00083
void SetUseImageSpacingOn()
00084 { this->SetUseImageSpacing(
true); }
00085
00088
void SetUseImageSpacingOff()
00089 { this->SetUseImageSpacing(
false); }
00090
00093
itkSetMacro(UseImageSpacing,
bool);
00094
itkGetMacro(UseImageSpacing,
bool);
00095
00103
virtual void GenerateInputRequestedRegion() throw(
InvalidRequestedRegionError);
00104
00105 protected:
00106 DerivativeImageFilter()
00107 {
00108 m_Order = 1;
00109 m_Direction = 0;
00110 m_UseImageSpacing =
true;
00111 }
00112
virtual ~DerivativeImageFilter() {}
00113
void PrintSelf(std::ostream& os, Indent indent)
const;
00114
00120
void GenerateData();
00121
00122
private:
00123 DerivativeImageFilter(
const Self&);
00124
void operator=(
const Self&);
00125
00127
unsigned int m_Order;
00128
00130
unsigned int m_Direction;
00131
00132
bool m_UseImageSpacing;
00133
00134 };
00135
00136 }
00137
00138
#ifndef ITK_MANUAL_INSTANTIATION
00139
#include "itkDerivativeImageFilter.txx"
00140
#endif
00141
00142
#endif