Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julien Cabieces
otb
Commits
a4474caf
Commit
a4474caf
authored
6 years ago
by
Cédric Traizet
Browse files
Options
Downloads
Patches
Plain Diff
ENH: remove UnaryFunctorImageFilter
parent
7feacc37
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Modules/Core/Common/include/otbUnaryFunctorImageFilter.h
+0
-87
0 additions, 87 deletions
Modules/Core/Common/include/otbUnaryFunctorImageFilter.h
with
0 additions
and
87 deletions
Modules/Core/Common/include/otbUnaryFunctorImageFilter.h
deleted
100644 → 0
+
0
−
87
View file @
7feacc37
/*
* Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef otbUnaryFunctorImageFilter_h
#define otbUnaryFunctorImageFilter_h
#include
"itkUnaryFunctorImageFilter.h"
namespace
otb
{
/**
* \class UnaryFunctorImageFilter
* \brief Implements pixel-wise generic operation on one image.
*
* Add the capability to change the number of channel when operation on
* VectorImage compared to the itk::UnaryFunctorImageFilter
*
* The number of channel is provided by the functor: TFunction::GetOutputSize. If
* this number is lower or equal to zero, the behavior of the itk::UnaryFunctorImageFilter
* remains unchanged.
*
* \sa itk::UnaryFunctorImageFilter
*
* \ingroup OTBCommon
*/
template
<
class
TInputImage
,
class
TOutputImage
,
class
TFunction
>
class
ITK_EXPORT
UnaryFunctorImageFilter
:
public
itk
::
UnaryFunctorImageFilter
<
TInputImage
,
TOutputImage
,
TFunction
>
{
public:
/** Standard class typedefs. */
typedef
UnaryFunctorImageFilter
Self
;
typedef
itk
::
UnaryFunctorImageFilter
<
TInputImage
,
TOutputImage
,
TFunction
>
Superclass
;
typedef
itk
::
SmartPointer
<
Self
>
Pointer
;
typedef
itk
::
SmartPointer
<
const
Self
>
ConstPointer
;
/** Method for creation through the object factory. */
itkNewMacro
(
Self
);
/** Run-time type information (and related methods). */
itkTypeMacro
(
UnaryFunctorImageFilter
,
itk
::
UnaryFunctorImageFilter
);
protected:
UnaryFunctorImageFilter
()
{};
~
UnaryFunctorImageFilter
()
override
{}
/** UnaryFunctorImageFilter can produce an image which has a different number of bands
* than its input image. As such, UnaryFunctorImageFilter
* needs to provide an implementation for
* GenerateOutputInformation() in order to inform the pipeline
* execution model. The original documentation of this method is
* below.
*
* \sa ProcessObject::GenerateOutputInformaton() */
void
GenerateOutputInformation
()
override
{
Superclass
::
GenerateOutputInformation
();
typename
Superclass
::
OutputImagePointer
outputPtr
=
this
->
GetOutput
();
outputPtr
->
SetNumberOfComponentsPerPixel
(
// propagate vector length info
this
->
GetFunctor
().
GetOutputSize
());
}
private
:
UnaryFunctorImageFilter
(
const
Self
&
)
=
delete
;
void
operator
=
(
const
Self
&
)
=
delete
;
};
}
// end namespace otb
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment