ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkTileImageFilter.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 itkTileImageFilter_h
19#define itkTileImageFilter_h
20
22#include "itkFixedArray.h"
23
24namespace itk
25{
50
51template <typename TInputImage, typename TOutputImage>
52class ITK_TEMPLATE_EXPORT TileImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
53{
54public:
55 ITK_DISALLOW_COPY_AND_MOVE(TileImageFilter);
56
62
64 itkNewMacro(Self);
65
67 itkOverrideGetNameOfClassMacro(TileImageFilter);
68
70 using InputPixelType = typename TInputImage::PixelType;
71 using OutputPixelType = typename TOutputImage::PixelType;
73
75 using InputImagePointer = typename TInputImage::Pointer;
76 using OutputImagePointer = typename TOutputImage::Pointer;
77
78
79 using InputSizeType = typename TInputImage::SizeType;
80 using InputIndexType = typename TInputImage::IndexType;
81 using InputImageRegionType = typename TInputImage::RegionType;
82 using OutputSizeType = typename TOutputImage::SizeType;
83 using OutputIndexType = typename TOutputImage::IndexType;
84 using OutputImageRegionType = typename TOutputImage::RegionType;
85
87 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
88 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
89
96 {
97 public:
98 int m_ImageNumber{ -1 };
100 TileInfo() = default;
101 };
102
104
107
111 itkSetMacro(Layout, LayoutArrayType);
112 itkGetConstMacro(Layout, LayoutArrayType);
114
117 itkSetMacro(DefaultPixelValue, OutputPixelType);
118
121 itkGetConstMacro(DefaultPixelValue, OutputPixelType);
122
123 itkConceptMacro(OutputEqualityComparableCheck, (Concept::EqualityComparable<OutputPixelType>));
125 itkConceptMacro(OutputOStreamWritableCheck, (Concept::OStreamWritable<OutputPixelType>));
126
127protected:
129 ~TileImageFilter() override = default;
130
131 void
132 PrintSelf(std::ostream & os, Indent indent) const override;
133
134 void
136
137 void
139
140 void
141 GenerateData() override;
142
148 void
149 VerifyInputInformation() const override;
150
151private:
153
155
157}; // end of class
158} // end namespace itk
159
160#ifndef ITK_MANUAL_INSTANTIATION
161# include "itkTileImageFilter.hxx"
162#endif
163
164#endif
Simulate a standard C array with copy semantics.
Templated n-dimensional image class.
Definition itkImage.h:89
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
typename TOutputImage::PixelType OutputPixelType
typename NumericTraits< OutputPixelType >::ValueType OutputPixelComponentType
typename TInputImage::SizeType InputSizeType
~TileImageFilter() override=default
Image< TileInfo, Self::OutputImageDimension > TileImageType
SmartPointer< const Self > ConstPointer
ImageToImageFilter< TInputImage, TOutputImage > Superclass
void VerifyInputInformation() const override
typename TOutputImage::SizeType OutputSizeType
FixedArray< unsigned int, Self::OutputImageDimension > LayoutArrayType
OutputPixelType m_DefaultPixelValue
TileImageType::Pointer m_TileImage
typename TOutputImage::Pointer OutputImagePointer
typename TOutputImage::IndexType OutputIndexType
typename TInputImage::PixelType InputPixelType
void GenerateData() override
typename TInputImage::IndexType InputIndexType
void GenerateInputRequestedRegion() override
typename TOutputImage::RegionType OutputImageRegionType
typename TInputImage::Pointer InputImagePointer
SmartPointer< Self > Pointer
static constexpr unsigned int InputImageDimension
void PrintSelf(std::ostream &os, Indent indent) const override
static constexpr unsigned int OutputImageDimension
void GenerateOutputInformation() override
typename TInputImage::RegionType InputImageRegionType
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....