*/
//--------------------------------------------------------------------
- template <class TImageType>
+ template <class ImageType>
class ITK_EXPORT AutoCropFilter:
- public itk::ImageToImageFilter<TImageType, TImageType> {
+ public itk::ImageToImageFilter<ImageType, ImageType> {
public:
/** Standard class typedefs. */
typedef AutoCropFilter Self;
- typedef itk::ImageToImageFilter<TImageType, TImageType> Superclass;
+ typedef itk::ImageToImageFilter<ImageType, ImageType> Superclass;
typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
itkTypeMacro(AutoCropFilter, ImageToImageFilter);
/** Some convenient typedefs. */
- typedef TImageType ImageType;
typedef typename ImageType::ConstPointer ImageConstPointer;
typedef typename ImageType::Pointer ImagePointer;
typedef typename ImageType::PixelType ImagePixelType;
void SetBackgroundValue(ImagePixelType p);
/** ImageDimension constants */
- itkStaticConstMacro(ImageDimension, unsigned int, TImageType::ImageDimension);
+ itkStaticConstMacro(ImageDimension, unsigned int, ImageType::ImageDimension);
protected:
AutoCropFilter();
namespace clitk {
//--------------------------------------------------------------------
- template <class TImageType>
- AutoCropFilter<TImageType>::
- AutoCropFilter():itk::ImageToImageFilter<TImageType, TImageType>() {
+ template <class ImageType>
+ AutoCropFilter<ImageType>::
+ AutoCropFilter():itk::ImageToImageFilter<ImageType, ImageType>() {
this->SetNumberOfRequiredInputs(1);
m_BackgroundValue = 0;
}
//--------------------------------------------------------------------
- template <class TImageType>
+ template <class ImageType>
void
- AutoCropFilter<TImageType>::
- SetInput(const TImageType * image) {
+ AutoCropFilter<ImageType>::
+ SetInput(const ImageType * image) {
// Process object is not const-correct so the const casting is required.
- this->SetNthInput(0, const_cast<TImageType *>( image ));
+ this->SetNthInput(0, const_cast<ImageType *>( image ));
}
//--------------------------------------------------------------------
//--------------------------------------------------------------------
- template <class TImageType>
+ template <class ImageType>
void
- AutoCropFilter<TImageType>::
+ AutoCropFilter<ImageType>::
SetBackgroundValue(ImagePixelType p) {
m_BackgroundValue = p;
}
//--------------------------------------------------------------------
- template <class TImageType>
+ template <class ImageType>
void
- AutoCropFilter<TImageType>::
+ AutoCropFilter<ImageType>::
GenerateOutputInformation() {
// Superclass
//--------------------------------------------------------------------
//--------------------------------------------------------------------
- template <class TImageType>
+ template <class ImageType>
void
- AutoCropFilter<TImageType>::
+ AutoCropFilter<ImageType>::
GenerateData() {
+ DD("AutoCropFilter::GenerateData");
// Get input pointers
ImageConstPointer input = dynamic_cast<const ImageType*>(itk::ProcessObject::GetInput(0));