OTB
9.0.0
Orfeo Toolbox
Modules
Core
Density
include
otbPointSetDensityFunction.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 otbPointSetDensityFunction_h
22
#define otbPointSetDensityFunction_h
23
24
#include "
otbPointSetFunction.h
"
25
26
namespace
otb
27
{
28
38
template
<
class
TPo
int
Set,
class
TOutput>
39
class
ITK_EXPORT
PointSetDensityFunction
:
public
PointSetFunction
<TPointSet, TOutput>
40
{
41
public
:
42
44
typedef
PointSetDensityFunction
Self
;
45
typedef
PointSetFunction<TPointSet, TOutput>
Superclass
;
46
typedef
itk::SmartPointer<Self>
Pointer
;
47
typedef
itk::SmartPointer<const Self>
ConstPointer
;
48
50
itkTypeMacro(
PointSetDensityFunction
,
PointSetFunction
);
51
53
itkNewMacro(
Self
);
54
56
typedef
TPointSet
PointSetType
;
57
typedef
typename
Superclass::InputType
InputType
;
58
typedef
typename
PointSetType::Pointer
PointSetPointerType
;
59
61
typedef
TOutput
OutputType
;
62
64
itkSetMacro(Radius,
unsigned
int
);
65
itkGetMacro(Radius,
unsigned
int
);
67
69
OutputType
Evaluate(
const
InputType
& input)
const override
;
70
71
protected
:
72
PointSetDensityFunction
() : m_Radius(1){};
73
~PointSetDensityFunction
()
override
74
{
75
}
76
77
void
PrintSelf(std::ostream& os, itk::Indent indent)
const override
;
78
79
private
:
80
PointSetDensityFunction
(
const
Self&) =
delete
;
81
void
operator=(
const
Self&) =
delete
;
82
83
unsigned
int
m_Radius
;
84
};
85
86
}
// end namespace otb
87
88
#ifndef OTB_MANUAL_INSTANTIATION
89
#include "
otbPointSetDensityFunction.hxx
"
90
#endif
91
92
#endif
otb::PointSetDensityFunction::InputType
Superclass::InputType InputType
Definition:
otbPointSetDensityFunction.h:57
otb::PointSetDensityFunction::m_Radius
unsigned int m_Radius
Definition:
otbPointSetDensityFunction.h:83
otb::PointSetDensityFunction::~PointSetDensityFunction
~PointSetDensityFunction() override
Definition:
otbPointSetDensityFunction.h:73
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition:
otbJoinContainer.h:32
otb::PointSetFunction::OutputType
TOutput OutputType
Definition:
otbPointSetFunction.h:55
otbPointSetFunction.h
otb::PointSetDensityFunction::Pointer
itk::SmartPointer< Self > Pointer
Definition:
otbPointSetDensityFunction.h:46
otb::PointSetDensityFunction::Superclass
PointSetFunction< TPointSet, TOutput > Superclass
Definition:
otbPointSetDensityFunction.h:45
otb::PointSetDensityFunction::PointSetType
TPointSet PointSetType
Definition:
otbPointSetDensityFunction.h:53
otb::PointSetDensityFunction::PointSetPointerType
PointSetType::Pointer PointSetPointerType
Definition:
otbPointSetDensityFunction.h:58
otb::PointSetDensityFunction::PointSetDensityFunction
PointSetDensityFunction()
Definition:
otbPointSetDensityFunction.h:72
otb::PointSetDensityFunction::OutputType
TOutput OutputType
Definition:
otbPointSetDensityFunction.h:61
otbPointSetDensityFunction.hxx
otb::PointSetDensityFunction::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition:
otbPointSetDensityFunction.h:47
otb::PointSetFunction
Calculate the density in the neighborhood of a pixel.
Definition:
otbPointSetFunction.h:39
otb::PointSetDensityFunction
Calculate the density in the neighborhood of a pixel using a simple cut off method.
Definition:
otbPointSetDensityFunction.h:39
otb::PointSetDensityFunction::Self
PointSetDensityFunction Self
Definition:
otbPointSetDensityFunction.h:44
Generated at Wed Feb 28 2024 15:23:23 for
OTB
with
1.8.17