ITK  6.0.0
Insight Toolkit
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{
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
77
78
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);
117 itkSetMacro(DefaultPixelValue, OutputPixelType);
118
121 itkGetConstMacro(DefaultPixelValue, OutputPixelType);
122
123#ifdef ITK_USE_CONCEPT_CHECKING
124 // Begin concept checking
125 itkConceptMacro(OutputEqualityComparableCheck, (Concept::EqualityComparable<OutputPixelType>));
127 itkConceptMacro(OutputOStreamWritableCheck, (Concept::OStreamWritable<OutputPixelType>));
128 // End concept checking
129#endif
130
131protected:
133 ~TileImageFilter() override = default;
134
135 void
136 PrintSelf(std::ostream & os, Indent indent) const override;
137
138 void
140
141 void
143
144 void
145 GenerateData() override;
146
152 void
153 VerifyInputInformation() const override;
154
155private:
156 typename TileImageType::Pointer m_TileImage{};
157
158 OutputPixelType m_DefaultPixelValue{};
159
160 LayoutArrayType m_Layout{};
161}; // end of class
162} // end namespace itk
163
164#ifndef ITK_MANUAL_INSTANTIATION
165# include "itkTileImageFilter.hxx"
166#endif
167
168#endif
Base class for all process objects that output image data.
typename OutputImageType::RegionType OutputImageRegionType
typename OutputImageType::Pointer OutputImagePointer
Base class for filters that take an image as input and produce an image as output.
typename InputImageType::Pointer InputImagePointer
typename InputImageType::RegionType InputImageRegionType
Templated n-dimensional image class.
Definition: itkImage.h:89
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Define additional traits for native types such as int or float.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
OutputImageRegionType m_Region
Tile multiple input images into a single output image.
typename TOutputImage::PixelType OutputPixelType
typename NumericTraits< OutputPixelType >::ValueType OutputPixelComponentType
typename TInputImage::SizeType InputSizeType
~TileImageFilter() override=default
void VerifyInputInformation() const override
typename TOutputImage::SizeType OutputSizeType
typename TOutputImage::IndexType OutputIndexType
typename TInputImage::PixelType InputPixelType
void GenerateData() override
typename TInputImage::IndexType InputIndexType
void GenerateInputRequestedRegion() override
void PrintSelf(std::ostream &os, Indent indent) const override
void GenerateOutputInformation() override
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....