ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBoneMorphometryFeaturesImageFilter.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 itkBoneMorphometryFeaturesImageFilter_h
19#define itkBoneMorphometryFeaturesImageFilter_h
20
22#include "itkNumericTraits.h"
24#include "itkHistogram.h"
27
28#include <vector>
29
30namespace itk
31{
62template <typename TInputImage,
63 typename TOutputImage,
65class ITK_TEMPLATE_EXPORT BoneMorphometryFeaturesImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
66{
67public:
68 ITK_DISALLOW_COPY_AND_MOVE(BoneMorphometryFeaturesImageFilter);
69
75
77 itkNewMacro(Self);
78
80 itkOverrideGetNameOfClassMacro(BoneMorphometryFeaturesImageFilter);
81
83 using InputImagePointer = typename TInputImage::Pointer;
84 using RegionType = typename TInputImage::RegionType;
85 using SizeType = typename TInputImage::SizeType;
86 using IndexType = typename TInputImage::IndexType;
87 using PixelType = typename TInputImage::PixelType;
88
90 using MaskImagePointer = typename TMaskImage::Pointer;
91
93 using OutputImagePointer = typename TOutputImage::Pointer;
94 using OutputRegionType = typename TOutputImage::RegionType;
95 using OutputPixelType = typename TOutputImage::PixelType;
97
104
107
109 itkSetInputMacro(MaskImage, TMaskImage);
110 itkGetInputMacro(MaskImage, TMaskImage);
111
114 itkGetMacro(Threshold, RealType);
115
118 itkGetConstMacro(NeighborhoodRadius, NeighborhoodRadiusType);
119
121
122
123 static_assert(TInputImage::ImageDimension == 3u);
124
125protected:
128
130 void
132
134 void
135 DynamicThreadedGenerateData(const RegionType & outputRegionForThread) override;
136
137 bool
139 bool
140 IsInsideMaskRegion(const IndexType & imageIndex, const typename TMaskImage::SizeType & maskSize);
141
142 void
143 PrintSelf(std::ostream & os, Indent indent) const override;
144
145private:
146 // Inputs
149
150}; // end of class
151} // end namespace itk
152
153#ifndef ITK_MANUAL_INSTANTIATION
154# include "itkBoneMorphometryFeaturesImageFilter.hxx"
155#endif
156
157#endif // itkBoneMorphometryFeaturesImageFilter_h
typename NumericTraits< PixelType >::RealType RealType
typename NeighborhoodIteratorType::OffsetType NeighborhoodOffsetType
void PrintSelf(std::ostream &os, Indent indent) const override
ImageToImageFilter< TInputImage, TOutputImage > Superclass
itkGetInputMacro(MaskImage, TMaskImage)
itkSetInputMacro(MaskImage, TMaskImage)
typename NeighborhoodIteratorType::RadiusType NeighborhoodRadiusType
void DynamicThreadedGenerateData(const RegionType &outputRegionForThread) override
typename NumericTraits< OutputPixelType >::ScalarRealType OutputRealType
typename NeighborhoodIteratorType::NeighborIndexType NeighborIndexType
~BoneMorphometryFeaturesImageFilter() override=default
ConstantBoundaryCondition< TInputImage > BoundaryConditionType
ConstNeighborhoodIterator< TInputImage, BoundaryConditionType > NeighborhoodIteratorType
bool IsInsideNeighborhood(const NeighborhoodOffsetType &iteratedOffset)
bool IsInsideMaskRegion(const IndexType &imageIndex, const typename TMaskImage::SizeType &maskSize)
Const version of NeighborhoodIterator, defining iteration of a local N-dimensional neighborhood of pi...
This boundary condition returns a constant value for out-of-bounds image pixels.
Templated n-dimensional image class.
Definition itkImage.h:89
Control indentation during Print() invocation.
Definition itkIndent.h:53
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)