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 __itkImageToPathFilter_h 00019 #define __itkImageToPathFilter_h 00020 00021 #include "itkImage.h" 00022 #include "itkPathSource.h" 00023 00024 namespace itk 00025 { 00042 template< class TInputImage, class TOutputPath > 00043 class ITK_EXPORT ImageToPathFilter:public PathSource< TOutputPath > 00044 { 00045 public: 00047 typedef ImageToPathFilter Self; 00048 typedef PathSource< TOutputPath > Superclass; 00049 typedef SmartPointer< Self > Pointer; 00050 typedef SmartPointer< const Self > ConstPointer; 00051 00053 itkTypeMacro(ImageToPathFilter, PathSource); 00054 00056 typedef TInputImage InputImageType; 00057 typedef typename InputImageType::Pointer InputImagePointer; 00058 typedef typename InputImageType::ConstPointer InputImageConstPointer; 00059 typedef typename InputImageType::RegionType InputImageRegionType; 00060 typedef typename InputImageType::PixelType InputImagePixelType; 00061 00063 itkStaticConstMacro(InputImageDimension, unsigned int, 00064 TInputImage::ImageDimension); 00065 00067 using Superclass::SetInput; 00068 virtual void SetInput(const InputImageType *image); 00069 00070 virtual void SetInput(unsigned int, const TInputImage *image); 00071 00072 const InputImageType * GetInput(void); 00073 00074 const InputImageType * GetInput(unsigned int idx); 00075 00076 protected: 00077 ImageToPathFilter(); 00078 ~ImageToPathFilter(); 00079 00080 virtual void PrintSelf(std::ostream & os, Indent indent) const; 00081 00082 private: 00083 ImageToPathFilter(const Self &); //purposely not implemented 00084 void operator=(const Self &); //purposely not implemented 00085 }; 00086 } // end namespace itk 00087 00088 #ifndef ITK_MANUAL_INSTANTIATION 00089 #include "itkImageToPathFilter.hxx" 00090 #endif 00091 00092 #endif 00093