go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkImageFullSampler.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright UMC Utrecht and contributors
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 itkImageFullSampler_h
19#define itkImageFullSampler_h
20
21#include "itkImageSamplerBase.h"
22
23namespace itk
24{
36template <class TInputImage>
37class ITK_TEMPLATE_EXPORT ImageFullSampler : public ImageSamplerBase<TInputImage>
38{
39public:
41
45 using Pointer = SmartPointer<Self>;
46 using ConstPointer = SmartPointer<const Self>;
47
49 itkNewMacro(Self);
50
53
55 using typename Superclass::DataObjectPointer;
58 using typename Superclass::InputImageType;
59 using typename Superclass::InputImagePointer;
63 using typename Superclass::ImageSampleType;
66 using typename Superclass::MaskType;
67
69 itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension);
70
72 using InputImageIndexType = typename InputImageType::IndexType;
73 using InputImagePointType = typename InputImageType::PointType;
74
78 bool
80 {
81 return false;
82 }
83
84
86 bool
88 {
89 return false;
90 }
91
92
93protected:
95 ImageFullSampler() = default;
97 ~ImageFullSampler() override = default;
98
100 void
101 PrintSelf(std::ostream & os, Indent indent) const override;
102
104 void
105 GenerateData() override;
106
108 void
109 ThreadedGenerateData(const InputImageRegionType & inputRegionForThread, ThreadIdType threadId) override;
110};
111
112} // end namespace itk
113
114#ifndef ITK_MANUAL_INSTANTIATION
115# include "itkImageFullSampler.hxx"
116#endif
117
118#endif // end #ifndef itkImageFullSampler_h
Samples all voxels in the InputImageRegion.
itkStaticConstMacro(InputImageDimension, unsigned int, Superclass::InputImageDimension)
typename InputImageType::PointType InputImagePointType
typename InputImageType::IndexType InputImageIndexType
~ImageFullSampler() override=default
ITK_DISALLOW_COPY_AND_MOVE(ImageFullSampler)
void GenerateData() override
bool SelectNewSamplesOnUpdate() override
bool SelectingNewSamplesOnUpdateSupported() const override
SmartPointer< const Self > ConstPointer
ImageFullSampler()=default
void ThreadedGenerateData(const InputImageRegionType &inputRegionForThread, ThreadIdType threadId) override
void PrintSelf(std::ostream &os, Indent indent) const override
A class that defines an image sample, which is the coordinates of a point and its value.
This class is a base class for any image sampler.
SpatialObject< Self::InputImageDimension > MaskType
typename ImageSampleContainerType::Pointer ImageSampleContainerPointer
TOutputVectorContainer OutputVectorContainerType
typename OutputVectorContainerType::Pointer OutputVectorContainerPointer
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.


Generated on Wed 12 Apr 2023 for elastix by doxygen 1.9.6 elastix logo