ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
00001 /*========================================================================= 00002 * 00003 * Copyright Insight Software Consortium 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0.txt 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 *=========================================================================*/ 00018 #ifndef __itkDifferenceImageFilter_h 00019 #define __itkDifferenceImageFilter_h 00020 00021 #include "itkConfigure.h" //Needed to determine value of ITKV3_COMPATIBILITY 00022 #ifdef ITKV3_COMPATIBILITY 00023 00024 #include "itkTestingComparisonImageFilter.h" 00025 00026 namespace itk 00027 { 00035 template< class TInputImage, class TOutputImage > 00036 class ITK_EXPORT DifferenceImageFilter: 00037 public Testing::ComparisonImageFilter< TInputImage, TOutputImage > 00038 { 00039 public: 00041 typedef DifferenceImageFilter Self; 00042 typedef Testing::ComparisonImageFilter< TInputImage, TOutputImage > Superclass; 00043 typedef SmartPointer< Self > Pointer; 00044 typedef SmartPointer< const Self > ConstPointer; 00045 00047 itkNewMacro(Self); 00048 00050 itkTypeMacro(DifferenceImageFilter, Testing::ComparisonImageFilter); 00051 00053 typedef TInputImage InputImageType; 00054 typedef TOutputImage OutputImageType; 00055 typedef typename OutputImageType::PixelType OutputPixelType; 00056 typedef typename OutputImageType::RegionType OutputImageRegionType; 00057 typedef typename NumericTraits< OutputPixelType >::RealType RealType; 00058 typedef typename NumericTraits< RealType >::AccumulateType AccumulateType; 00059 00060 DifferenceImageFilter() {} 00061 virtual ~DifferenceImageFilter() {} 00062 protected: 00063 private: 00064 DifferenceImageFilter(const Self &); //purposely not implemented 00065 void operator=(const Self &); //purposely not implemented 00066 00067 }; 00068 } // end namespace itk 00069 #else 00070 #error For ITKv4 compatibility, use itk::Testing::ComparisonImageFilter instead of itk::DifferenceImageFilter 00071 #endif 00072 00073 #endif 00074