ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkAnchorUtilities.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkAnchorUtilities_h
19 #define __itkAnchorUtilities_h
20 
21 #include <list>
22 
24 
25 namespace itk
26 {
34 template< class TImage, class TBres, class TLine >
35 int ComputeStartEnd(const typename TImage::IndexType StartIndex,
36  const TLine line,
37  const float tol,
38  const typename TBres::OffsetArray LineOffsets,
39  const typename TImage::RegionType AllImage,
40  unsigned & start,
41  unsigned & end);
42 
43 template< class TImage, class TBres, class TAnchor, class TLine >
44 void DoAnchorFace(const TImage * input,
45  TImage * output,
46  typename TImage::PixelType border,
47  TLine line,
48  TAnchor & AnchorLine,
49  typename TBres::OffsetArray LineOffsets,
50  std::vector<typename TImage::PixelType> & inbuffer,
51  std::vector<typename TImage::PixelType> & outbuffer,
52  const typename TImage::RegionType AllImage,
53  const typename TImage::RegionType face);
54 
55 } // namespace itk
56 
57 #ifndef ITK_MANUAL_INSTANTIATION
58 #include "itkAnchorUtilities.hxx"
59 #endif
60 
61 #endif
62