Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
3e142809
Commit
3e142809
authored
Jan 25, 2019
by
David Youssefi
Browse files
REFAC: remove otbBinaryFunctorImageFilter
parent
64a58ed3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/Filtering/ImageManipulation/include/otbBinaryFunctorImageFilter.h
deleted
100644 → 0
View file @
64a58ed3
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef otbBinaryFunctorImageFilter_h
#define otbBinaryFunctorImageFilter_h
#include
"itkBinaryFunctorImageFilter.h"
namespace
otb
{
/**
* \class BinaryFunctorImageFilter
* \brief Implements pixel-wise generic operation on two images.
*
* Add the capability to change the number of channel when operation on
* VectorImage compared to the itk::BinaryFunctorImageFilter
*
* 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::BinaryFunctorImageFilter
* remains unchanged.
*
* \sa itk::BinaryFunctorImageFilter
*
* \ingroup OTBImageManipulation
*/
template
<
class
TInputImage1
,
class
TInputImage2
,
class
TOutputImage
,
class
TFunction
>
class
ITK_EXPORT
BinaryFunctorImageFilter
:
public
itk
::
BinaryFunctorImageFilter
<
TInputImage1
,
TInputImage2
,
TOutputImage
,
TFunction
>
{
public:
/** Standard class typedefs. */
typedef
BinaryFunctorImageFilter
Self
;
typedef
itk
::
BinaryFunctorImageFilter
<
TInputImage1
,
TInputImage2
,
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
(
BinaryFunctorImageFilter
,
itk
::
BinaryFunctorImageFilter
);
protected:
BinaryFunctorImageFilter
()
{};
~
BinaryFunctorImageFilter
()
override
{}
/** BinaryFunctorImageFilter can produce an image which has a different number of bands
* than its input image. As such, BinaryFunctorImageFilter
* 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:
BinaryFunctorImageFilter
(
const
Self
&
)
=
delete
;
void
operator
=
(
const
Self
&
)
=
delete
;
};
}
// end namespace otb
#endif
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment