OTB
9.0.0
Orfeo Toolbox
Modules
Segmentation
MorphologicalProfiles
include
otbMorphologicalClosingProfileFilter.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 otbMorphologicalClosingProfileFilter_h
22
#define otbMorphologicalClosingProfileFilter_h
23
24
#include "
otbImageToProfileFilter.h
"
25
#include "itkClosingByReconstructionImageFilter.h"
26
27
namespace
otb
28
{
51
template
<
class
TInputImage,
class
TOutputImage,
class
TStructuringElement>
52
class
ITK_EXPORT
MorphologicalClosingProfileFilter
53
:
public
ImageToProfileFilter
<TInputImage, TOutputImage, itk::ClosingByReconstructionImageFilter<TInputImage, TOutputImage, TStructuringElement>,
54
unsigned int>
55
{
56
public
:
58
typedef
MorphologicalClosingProfileFilter
Self
;
59
typedef
ImageToProfileFilter<TInputImage, TOutputImage, itk::ClosingByReconstructionImageFilter<TInputImage, TOutputImage, TStructuringElement>
,
unsigned
int
>
60
Superclass
;
61
typedef
itk::SmartPointer<Self>
Pointer
;
62
typedef
itk::SmartPointer<const Self>
ConstPointer
;
63
65
itkNewMacro(
Self
);
66
68
itkTypeMacro(
MorphologicalClosingProfileFilter
,
ImageToProfileFilter
);
69
70
typedef
TStructuringElement
StructuringElementType
;
71
typedef
typename
Superclass::ParameterType
ParameterType
;
72
73
protected
:
75
void
SetProfileParameter
(
ParameterType
param)
override
76
{
77
StructuringElementType
se;
78
se.SetRadius(param);
79
se.CreateStructuringElement();
80
this->GetFilter()->SetKernel(se);
81
}
82
84
MorphologicalClosingProfileFilter
(){};
85
87
~MorphologicalClosingProfileFilter
()
override
88
{
89
}
90
92
void
PrintSelf
(std::ostream& os, itk::Indent indent)
const override
93
{
94
Superclass::PrintSelf(os, indent);
95
}
96
97
private
:
98
MorphologicalClosingProfileFilter
(
const
Self&) =
delete
;
99
void
operator=(
const
Self&) =
delete
;
100
};
101
}
// End namespace otb
102
#endif
otb::MorphologicalClosingProfileFilter::Self
MorphologicalClosingProfileFilter Self
Definition:
otbMorphologicalClosingProfileFilter.h:58
otb::MorphologicalClosingProfileFilter::StructuringElementType
TStructuringElement StructuringElementType
Definition:
otbMorphologicalClosingProfileFilter.h:68
otb::ImageListSource
Base class for all the filters producing an otbImageList.
Definition:
otbImageListSource.h:40
otb::MorphologicalClosingProfileFilter::PrintSelf
void PrintSelf(std::ostream &os, itk::Indent indent) const override
Definition:
otbMorphologicalClosingProfileFilter.h:92
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition:
otbJoinContainer.h:32
otb::MorphologicalClosingProfileFilter::Superclass
ImageToProfileFilter< TInputImage, TOutputImage, itk::ClosingByReconstructionImageFilter< TInputImage, TOutputImage, TStructuringElement >, unsigned int > Superclass
Definition:
otbMorphologicalClosingProfileFilter.h:60
otb::MorphologicalClosingProfileFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition:
otbMorphologicalClosingProfileFilter.h:61
otb::MorphologicalClosingProfileFilter::SetProfileParameter
void SetProfileParameter(ParameterType param) override
Definition:
otbMorphologicalClosingProfileFilter.h:75
otbImageToProfileFilter.h
otb::MorphologicalClosingProfileFilter::MorphologicalClosingProfileFilter
MorphologicalClosingProfileFilter()
Definition:
otbMorphologicalClosingProfileFilter.h:84
otb::ImageToProfileFilter
Base class to produce a profile of the response of a given filter for a range of parameter.
Definition:
otbImageToProfileFilter.h:47
otb::MorphologicalClosingProfileFilter::~MorphologicalClosingProfileFilter
~MorphologicalClosingProfileFilter() override
Definition:
otbMorphologicalClosingProfileFilter.h:87
otb::MorphologicalClosingProfileFilter::ParameterType
Superclass::ParameterType ParameterType
Definition:
otbMorphologicalClosingProfileFilter.h:71
otb::MorphologicalClosingProfileFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition:
otbMorphologicalClosingProfileFilter.h:62
otb::Wrapper::ParameterType
ParameterType
Definition:
otbWrapperTypes.h:37
otb::MorphologicalClosingProfileFilter
This filter compute the morphological closing profile.
Definition:
otbMorphologicalClosingProfileFilter.h:52
Generated at Wed Feb 28 2024 15:23:05 for
OTB
with
1.8.17