#ifndef __itkvHGWUtilities_h #define __itkvHGWUtilities_h #include #include "itkSharedMorphUtilities.h" namespace itk { /** * \class vHGWUtilities * \brief functionality in common for anchor openings/closings and * erosions/dilation * **/ #if 0 // version with no user access to border template int fillLineBuffer(typename TImage::ConstPointer input, const typename TImage::IndexType StartIndex, typename TImage::PixelType border, const TLine line, // unit vector const float tol, const typename TBres::OffsetArray LineOffsets, const typename TImage::RegionType AllImage, const unsigned int KernLen, typename TImage::PixelType * pixbuffer, typename TImage::PixelType * fExtBuffer, unsigned &start, unsigned &end); #else template void fillReverseExt(PixelType *pixbuffer, PixelType *rExtBuffer, const unsigned int KernLen, unsigned len); template void fillForwardExt(PixelType *pixbuffer, PixelType *fExtBuffer, const unsigned int KernLen, unsigned len); #endif template void doFace(typename TImage::ConstPointer input, typename TImage::Pointer output, typename TImage::PixelType border, TLine line, const typename TBres::OffsetArray LineOffsets, const unsigned int KernLen, typename TImage::PixelType * pixbuffer, typename TImage::PixelType * fExtBuffer, typename TImage::PixelType * rExtBuffer, const typename TImage::RegionType AllImage, const typename TImage::RegionType face); } // namespace itk #ifndef ITK_MANUAL_INSTANTIATION #include "itkvHGWUtilities.txx" #endif #endif