ITK  5.4.0
Insight Toolkit
itkAnchorUtilities.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
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  * https://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
36 ComputeStartEnd(const typename TImage::IndexType StartIndex,
37  const TLine line,
38  const float tol,
39  const typename TBres::OffsetArray LineOffsets,
40  const typename TImage::RegionType AllImage,
41  unsigned int & start,
42  unsigned int & end);
43 
44 template <typename TImage, typename TBres, typename TAnchor, typename TLine>
45 void
46 DoAnchorFace(const TImage * input,
47  TImage * output,
48  typename TImage::PixelType border,
49  TLine line,
50  TAnchor & AnchorLine,
51  typename TBres::OffsetArray LineOffsets,
52  std::vector<typename TImage::PixelType> & inbuffer,
53  std::vector<typename TImage::PixelType> & outbuffer,
54  const typename TImage::RegionType AllImage,
55  const typename TImage::RegionType face);
56 
57 } // namespace itk
58 
59 #ifndef ITK_MANUAL_INSTANTIATION
60 # include "itkAnchorUtilities.hxx"
61 #endif
62 
63 #endif
itk::DoAnchorFace
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)
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition: itkGTestTypedefsAndConstructors.h:50
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::ComputeStartEnd
int ComputeStartEnd(const typename TImage::IndexType StartIndex, const TLine line, const float tol, const typename TBres::OffsetArray LineOffsets, const typename TImage::RegionType AllImage, unsigned int &start, unsigned int &end)
itkSharedMorphologyUtilities.h