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 __itkNeighborhoodAlgorithm_h 00019 #define __itkNeighborhoodAlgorithm_h 00020 00021 #include <list> 00022 #include "itkImage.h" 00023 #include "itkNeighborhoodOperator.h" 00024 #include "itkNeighborhoodIterator.h" 00025 00026 namespace itk 00027 { 00028 namespace NeighborhoodAlgorithm 00029 { 00062 template< class TImage > 00063 struct ITK_EXPORT ImageBoundaryFacesCalculator { 00064 typedef typename NeighborhoodIterator< TImage >::RadiusType RadiusType; 00065 typedef typename TImage::RegionType RegionType; 00066 typedef typename TImage::IndexType IndexType; 00067 typedef typename TImage::SizeType SizeType; 00068 typedef std::list< RegionType > FaceListType; 00069 itkStaticConstMacro(ImageDimension, unsigned int, TImage::ImageDimension); 00070 00071 FaceListType operator()(const TImage *, RegionType, RadiusType); 00072 }; 00073 00083 template< class TImage > 00084 struct ITK_EXPORT CalculateOutputWrapOffsetModifiers { 00085 typedef Offset< ::itk::GetImageDimension< TImage >::ImageDimension > OffsetType; 00086 OffsetType operator()(TImage *, TImage *) const; 00087 }; 00088 } // end namespace NeighborhoodAlgorithm 00089 } // end namespace itk 00090 00091 #ifndef ITK_MANUAL_INSTANTIATION 00092 #include "itkNeighborhoodAlgorithm.hxx" 00093 #endif 00094 00095 #endif 00096