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
#include "itkConceptChecking.h"
00023
00024
namespace itk
00025 {
00043
template <
class TInputImage,
class TOutputImage>
00044 class ITK_EXPORT DerivativeImageFilter :
00045
public ImageToImageFilter< TInputImage, TOutputImage >
00046 {
00047
public:
00049 typedef DerivativeImageFilter
Self;
00050 typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass;
00051 typedef SmartPointer<Self> Pointer;
00052 typedef SmartPointer<const Self> ConstPointer;
00053
00056 typedef typename TOutputImage::PixelType
OutputPixelType;
00057 typedef typename TOutputImage::InternalPixelType
OutputInternalPixelType;
00058 typedef typename TInputImage::PixelType
InputPixelType;
00059 typedef typename TInputImage::InternalPixelType
InputInternalPixelType;
00060
00063
itkStaticConstMacro(ImageDimension,
unsigned int,
00064 TOutputImage::ImageDimension);
00065
00067 typedef TInputImage
InputImageType;
00068 typedef TOutputImage
OutputImageType;
00069
00071
itkNewMacro(
Self);
00072
00074
itkTypeMacro(DerivativeImageFilter,
ImageToImageFilter);
00075
00077
itkConceptMacro(SignedOutputPixelType, (
Concept::Signed<OutputPixelType>));
00078
00080
itkSetMacro(Order,
unsigned int);
00081
itkGetMacro(Order,
unsigned int);
00082
itkSetMacro(Direction,
unsigned int);
00083
itkGetMacro(Direction,
unsigned int);
00084
00087
void SetUseImageSpacingOn()
00088 { this->SetUseImageSpacing(
true); }
00089
00092
void SetUseImageSpacingOff()
00093 { this->SetUseImageSpacing(
false); }
00094
00097
itkSetMacro(UseImageSpacing,
bool);
00098
itkGetMacro(UseImageSpacing,
bool);
00099
00107
virtual void GenerateInputRequestedRegion() throw(
InvalidRequestedRegionError);
00108
00109 protected:
00110 DerivativeImageFilter()
00111 {
00112 m_Order = 1;
00113 m_Direction = 0;
00114 m_UseImageSpacing =
true;
00115 }
00116
virtual ~DerivativeImageFilter() {}
00117
void PrintSelf(std::ostream& os, Indent indent)
const;
00118
00124
void GenerateData();
00125
00126
private:
00127 DerivativeImageFilter(
const Self&);
00128
void operator=(
const Self&);
00129
00131
unsigned int m_Order;
00132
00134
unsigned int m_Direction;
00135
00136
bool m_UseImageSpacing;
00137
00138 };
00139
00140 }
00141
00142
#ifndef ITK_MANUAL_INSTANTIATION
00143
#include "itkDerivativeImageFilter.txx"
00144
#endif
00145
00146
#endif