Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkAnchorUtilities.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkAnchorUtilities.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-10-20 16:32:08 $
00007   Version:   $Revision: 1.5 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 
00018 #ifndef __itkAnchorUtilities_h
00019 #define __itkAnchorUtilities_h
00020 
00021 #include <list>
00022 
00023 #include "itkSharedMorphologyUtilities.h"
00024 
00025 namespace itk {
00026 
00032 #if defined(_MSC_VER) && _MSC_VER >= 1300
00033 #if 0
00034 // can be moved to SharedMorphUtilities if user control of border is permitted
00035 template <class TImage, class TBres, class TLine>
00036 int FillLineBuffer(typename TImage::ConstPointer input,
00037                    const typename TImage::IndexType StartIndex,
00038                    const TLine line,
00039                    const float tol,
00040                    const typename TBres::OffsetArray LineOffsets,
00041                    const typename TImage::RegionType AllImage, 
00042                    typename TImage::PixelType * inbuffer,
00043                    unsigned &start,
00044                    unsigned &end);
00045 #endif
00046 
00047 template <class TImage, class TBres, class TLine>
00048 int ComputeStartEnd(const typename TImage::IndexType StartIndex,
00049                     const TLine line,
00050                     const float tol,
00051                     const typename TBres::OffsetArray LineOffsets,
00052                     const typename TImage::RegionType AllImage, 
00053                     unsigned &start,
00054                     unsigned &end);
00055 
00056 template <class TImage, class TBres, class TAnchor, class TLine>
00057 void DoAnchorFace(const TImage * input,
00058                   TImage * output,
00059                   typename TImage::PixelType border,
00060                   TLine line,
00061                   TAnchor &AnchorLine,
00062                   typename TBres::OffsetArray LineOffsets,
00063                   typename TImage::PixelType * inbuffer,
00064                   typename TImage::PixelType * outbuffer,
00065                   const typename TImage::RegionType AllImage, 
00066                   const typename TImage::RegionType face);
00067 
00068 // This creates a list of non overlapping faces that need to be
00069 // processed for this particular line orientation. We are doing this
00070 // instead of using the Face Calculator to avoid repeated operations
00071 // starting from corners.
00072 
00073 //template <class TRegion, class TLine>
00074 //std::list<TRegion> mkFaceList(const TRegion AllImage,
00075 //                              const TLine line);
00076 
00077 #endif
00078 } // namespace itk
00079 
00080 #ifndef ITK_MANUAL_INSTANTIATION
00081 #include "itkAnchorUtilities.txx"
00082 #endif
00083 
00084 #endif
00085 

Generated at Wed Nov 5 20:16:17 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000