OTB  6.7.0
Orfeo Toolbox
otbStreamingTraits.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
3  *
4  * This file is part of Orfeo Toolbox
5  *
6  * https://www.orfeo-toolbox.org/
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 
21 #ifndef otbStreamingTraits_h
22 #define otbStreamingTraits_h
23 
24 #include "otbMacro.h"
25 
36 
38 
39 namespace otb
40 {
41 
54 template <class TImage>
55 class ITK_EXPORT StreamingTraits
56 {
57 public:
60  typedef TImage ImageType;
61 
63  itkStaticConstMacro(ImageDimension, unsigned int,
64  ImageType::ImageDimension);
65 
66  // ITK Interpolators
71 
72  // OTB Interpolators (supported for otb::Image)
81 
82  static unsigned int CalculateNeededRadiusForInterpolator(const InterpolationType* interpolator);
83 };
84 
97 template <typename TPixel, unsigned int VImageDimension>
98 class ITK_EXPORT StreamingTraits< otb::VectorImage<TPixel, VImageDimension> >
99 {
100 public:
104 
106  itkStaticConstMacro(ImageDimension, unsigned int,
107  ImageType::ImageDimension);
108 
109  // ITK Interpolators
113 
114  // OTB Interpolators (supported for otb::VectorImage)
117 
118  static unsigned int CalculateNeededRadiusForInterpolator(const InterpolationType* interpolator);
119 };
120 
121 
122 } // End namespace otb
123 
124 #ifndef OTB_MANUAL_INSTANTIATION
125 #include "otbStreamingTraits.hxx"
126 #endif
127 
128 #endif
WindowedSincInterpolateImageHammingFunction< ImageType > HammingInterpolationType
WindowedSincInterpolateImageGaussianFunction< ImageType > GaussianInterpolationType
BCOInterpolateImageFunction< ImageType > BCOInterpolationType
Creation of an "otb" vector image which contains metadata.
Use the WindowedSincInterpolateImageFunctionBase with a Blackman Function.
Use the WindowedSincInterpolateImageFunctionBase with a Hamming Function.
itk::BSplineInterpolateImageFunction< ImageType, double > BSplineInterpolationType
Use the WindowedSincInterpolateImageFunctionBase with a Lanczos Function.
WindowedSincInterpolateImageCosineFunction< ImageType > CosineInterpolationType
ProlateInterpolateImageFunction< ImageType > ProlateInterpolationType
Prolate interpolation of an otb::image.
Interpolate an image at specified positions using bicubic interpolation.
Use the WindowedSincInterpolateImageFunctionBase with a Gaussian Function.
itk::NearestNeighborInterpolateImageFunction< ImageType, double > NearestNeighborInterpolationType
Use the WindowedSincInterpolateImageFunctionBase with a Cosine Function.
itk::InterpolateImageFunction< ImageType, double > InterpolationType
This class provides internal information for streamable filters.
WindowedSincInterpolateImageGaussianFunction< ImageType > GaussianInterpolationType
itk::NearestNeighborInterpolateImageFunction< ImageType, double > NearestNeighborInterpolationType
WindowedSincInterpolateImageBlackmanFunction< ImageType > BlackmanInterpolationType
WindowedSincInterpolateImageLanczosFunction< ImageType > LanczosInterpolationType
itk::LinearInterpolateImageFunction< ImageType, double > LinearInterpolationType
itk::LinearInterpolateImageFunction< ImageType, double > LinearInterpolationType
WindowedSincInterpolateImageWelchFunction< ImageType > WelchInterpolationType
Use the WindowedSincInterpolateImageFunctionBase with a Welch Function.
itk::InterpolateImageFunction< ImageType, double > InterpolationType