OTB
9.0.0
Orfeo Toolbox
Modules
Core
Projection
include
otbProjectiveProjectionImageFilter.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2005-2022 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 otbProjectiveProjectionImageFilter_h
22
#define otbProjectiveProjectionImageFilter_h
23
24
#include "itkMacro.h"
25
#include "
otbFunctorImageFilter.h
"
26
27
namespace
otb
28
{
29
30
namespace
Functor
31
{
32
41
template
<
class
TInput,
class
TOutput,
class
TPrecision>
42
class
ProjectiveProjectionFunctor
43
{
44
public
:
45
typedef
TInput
InputType
;
46
typedef
TOutput
OutputType
;
47
typedef
TPrecision
PrecisionType
;
48
49
ProjectiveProjectionFunctor
() :
m_OutputSize
(0)
50
{
51
}
52
virtual
~ProjectiveProjectionFunctor
()
53
{
54
}
55
56
size_t
OutputSize
(
const
std::array<size_t, 1>& nbBands)
const
;
57
58
const
InputType
&
GetProjectionDirection
();
59
60
void
SetProjectionDirection
(
const
InputType
& p);
61
62
OutputType
operator()
(
const
InputType
& in);
63
64
private
:
65
unsigned
int
m_OutputSize
;
66
InputType
m_ProjectionDirection
;
67
};
68
}
69
79
template
<
typename
TInputImage,
typename
TOutputImage,
typename
TPrecision>
80
using
ProjectiveProjectionImageFilter
=
81
FunctorImageFilter<Functor::ProjectiveProjectionFunctor<typename TInputImage::PixelType, typename TOutputImage::PixelType, TPrecision>
>;
82
83
}
// end namespace otb
84
85
#ifndef OTB_MANUAL_INSTANTIATION
86
#include "
otbProjectiveProjectionImageFilter.hxx
"
87
#endif
88
89
#endif
otb::Functor::ProjectiveProjectionFunctor::m_OutputSize
unsigned int m_OutputSize
Definition:
otbProjectiveProjectionImageFilter.h:65
otb::Functor::ProjectiveProjectionFunctor::~ProjectiveProjectionFunctor
virtual ~ProjectiveProjectionFunctor()
Definition:
otbProjectiveProjectionImageFilter.h:52
otbFunctorImageFilter.h
otb::Functor::ProjectiveProjectionFunctor::ProjectiveProjectionFunctor
ProjectiveProjectionFunctor()
Definition:
otbProjectiveProjectionImageFilter.h:49
otb::Functor::ProjectiveProjectionFunctor::PrecisionType
TPrecision PrecisionType
Definition:
otbProjectiveProjectionImageFilter.h:47
otb::Functor::ProjectiveProjectionFunctor
Applies a projective projection to a pixel.
Definition:
otbProjectiveProjectionImageFilter.h:42
otb::Functor::ProjectiveProjectionFunctor::SetProjectionDirection
void SetProjectionDirection(const InputType &p)
Definition:
otbProjectiveProjectionImageFilter.hxx:45
otb::FunctorImageFilter
A generic functor filter templated by its functor.
Definition:
otbFunctorImageFilter.h:322
otb::Functor::ProjectiveProjectionFunctor::operator()
OutputType operator()(const InputType &in)
Definition:
otbProjectiveProjectionImageFilter.hxx:53
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition:
otbJoinContainer.h:32
otbProjectiveProjectionImageFilter.hxx
otb::Functor::ProjectiveProjectionFunctor::OutputType
TOutput OutputType
Definition:
otbProjectiveProjectionImageFilter.h:46
otb::Functor::ProjectiveProjectionFunctor::GetProjectionDirection
const InputType & GetProjectionDirection()
Definition:
otbProjectiveProjectionImageFilter.hxx:39
otb::Functor::ProjectiveProjectionFunctor::InputType
TInput InputType
Definition:
otbProjectiveProjectionImageFilter.h:45
otb::Functor::ProjectiveProjectionFunctor::OutputSize
vcl_size_t OutputSize(const std::array< vcl_size_t, 1 > &nbBands) const
Definition:
otbProjectiveProjectionImageFilter.hxx:32
otb::Functor::ProjectiveProjectionFunctor::m_ProjectionDirection
InputType m_ProjectionDirection
Definition:
otbProjectiveProjectionImageFilter.h:66
Generated at Wed Feb 28 2024 15:23:26 for
OTB
with
1.8.17