ITK  5.0.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< typename TImage, typename TBres, typename 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< typename TImage, typename TBres, typename TAnchor, typename 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
void DoAnchorFace(const TImage *input, TImage *output, typename TImage::PixelType border, TLine line, TAnchor &AnchorLine, typename TBres::OffsetArray LineOffsets, std::vector< typename TImage::PixelType > &inbuffer, std::vector< typename TImage::PixelType > &outbuffer, const typename TImage::RegionType AllImage, const typename TImage::RegionType face)
int ComputeStartEnd(const typename TImage::IndexType StartIndex, const TLine line, const float tol, const typename TBres::OffsetArray LineOffsets, const typename TImage::RegionType AllImage, unsigned &start, unsigned &end)