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 00019 #ifndef __itkLevelSetImageBase_h 00020 #define __itkLevelSetImageBase_h 00021 00022 #include "itkLevelSetBase.h" 00023 #include "itkObjectFactory.h" 00024 #include "itkIndex.h" 00025 #include "itkImageBase.h" 00026 00027 namespace itk 00028 { 00038 template< class TInput, unsigned int VDimension, typename TOutput > 00039 class LevelSetImageBase : 00040 public LevelSetBase< TInput, 00041 VDimension, 00042 TOutput, 00043 ImageBase< VDimension > > 00044 { 00045 public: 00046 typedef ImageBase< VDimension > ImageBaseType; 00047 00048 typedef LevelSetImageBase Self; 00049 typedef SmartPointer< Self > Pointer; 00050 typedef SmartPointer< const Self > ConstPointer; 00051 typedef LevelSetBase< 00052 TInput, VDimension, TOutput, ImageBaseType > Superclass; 00053 00055 itkTypeMacro ( LevelSetImageBase, LevelSetBase ); 00056 00057 itkStaticConstMacro ( Dimension, unsigned int, Superclass::Dimension ); 00058 00059 typedef typename Superclass::InputType InputType; 00060 typedef typename Superclass::OutputType OutputType; 00061 typedef typename Superclass::OutputRealType OutputRealType; 00062 typedef typename Superclass::GradientType GradientType; 00063 typedef typename Superclass::HessianType HessianType; 00064 typedef typename Superclass::LevelSetDataType LevelSetDataType; 00065 00066 protected: 00067 LevelSetImageBase(); 00068 00069 virtual ~LevelSetImageBase(); 00070 00071 typedef GradientType ScalingType; 00072 ScalingType m_NeighborhoodScales; 00073 00074 virtual bool IsInside( const InputType& iP ) const = 0; 00075 00076 private: 00077 00078 LevelSetImageBase( const Self& ); // purposely not implemented 00079 void operator = ( const Self& ); // purposely not implemented 00080 }; 00081 } 00082 00083 #ifndef ITK_MANUAL_INSTANTIATION 00084 #include "itkLevelSetImageBase.hxx" 00085 #endif 00086 00087 #endif // __itkLevelSetImageBase_h 00088