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
David Youssefi
otb
Commits
288705e6
Commit
288705e6
authored
14 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
BUG: add virtual destructor, const functor
parent
251a056f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Fusion/otbSimpleRcsPanSharpeningFusionImageFilter.h
+22
-19
22 additions, 19 deletions
Code/Fusion/otbSimpleRcsPanSharpeningFusionImageFilter.h
with
22 additions
and
19 deletions
Code/Fusion/otbSimpleRcsPanSharpeningFusionImageFilter.h
+
22
−
19
View file @
288705e6
...
...
@@ -54,16 +54,15 @@ class ITK_EXPORT SimpleRcsPanSharpeningFusionImageFilter :
{
public:
/** Standard class typedefs */
typedef
SimpleRcsPanSharpeningFusionImageFilter
Self
;
typedef
itk
::
ImageToImageFilter
<
TXsImageType
,
TOutputImageType
>
Superclass
;
typedef
itk
::
SmartPointer
<
Self
>
Pointer
;
typedef
itk
::
SmartPointer
<
const
Self
>
ConstPointer
;
typedef
SimpleRcsPanSharpeningFusionImageFilter
Self
;
typedef
itk
::
ImageToImageFilter
<
TXsImageType
,
TOutputImageType
>
Superclass
;
typedef
itk
::
SmartPointer
<
Self
>
Pointer
;
typedef
itk
::
SmartPointer
<
const
Self
>
ConstPointer
;
/** Internal image type used as the smoothing filter output */
typedef
otb
::
Image
<
TInternalPrecision
,
typedef
otb
::
Image
<
TInternalPrecision
,
TPanImageType
::
ImageDimension
>
InternalImageType
;
/** Typedef for the radius of the smoothing filter */
typedef
typename
itk
::
Array
<
TInternalPrecision
>
ArrayType
;
...
...
@@ -73,7 +72,7 @@ public:
/** Run-time type information */
itkTypeMacro
(
SimpleRcsPanSharpeningFusionImageFilter
,
itk
::
ImageToImageFilter
);
/** Define the radius type for the smoothing operation */
typedef
typename
InternalImageType
::
SizeType
RadiusType
;
...
...
@@ -95,6 +94,9 @@ protected:
/** Constructor */
SimpleRcsPanSharpeningFusionImageFilter
();
/** Destructor */
virtual
~
SimpleRcsPanSharpeningFusionImageFilter
()
{};
/** Call to generate data, wiring composite internal minipipeline */
void
GenerateData
();
...
...
@@ -105,17 +107,18 @@ private:
SimpleRcsPanSharpeningFusionImageFilter
(
Self
&
);
// intentionally not implemented
void
operator
=
(
const
Self
&
);
// intentionally not implemented
/** This functor applies the
* \f[ \frac{XS}{\mathrm{Filtered}(PAN)}PAN \f]
/** \class FusionFunctor
* This functor applies the
* \f[ \frac{XS}{\mathrm{Filtered}(PAN)}PAN \f]
* operation. It is intended for internal use only.
*/
class
FusionFunctor
{
public:
// Implement the fusion as a three arguments operator
typename
TOutputImageType
::
PixelType
operator
()(
const
typename
TXsImageType
::
PixelType
&
xsPixel
,
const
TInternalPrecision
&
smoothPanchroPixel
,
const
typename
TPanImageType
::
PixelType
&
sharpPanchroPixel
)
typename
TOutputImageType
::
PixelType
operator
()(
const
typename
TXsImageType
::
PixelType
&
xsPixel
,
const
TInternalPrecision
&
smoothPanchroPixel
,
const
typename
TPanImageType
::
PixelType
&
sharpPanchroPixel
)
const
{
// Build output pixel
typename
TOutputImageType
::
PixelType
output
(
xsPixel
.
Size
());
...
...
@@ -135,19 +138,19 @@ private:
* Typedef of the TernaryFunctorImageFilter applying the fusion functor to
* p, p_smooth and xs.
*/
typedef
itk
::
TernaryFunctorImageFilter
<
TXsImageType
,
InternalImageType
,
typedef
itk
::
TernaryFunctorImageFilter
<
TXsImageType
,
InternalImageType
,
TPanImageType
,
TOutputImageType
,
TOutputImageType
,
FusionFunctor
>
FusionFilterType
;
/** Typedef of the convolution filter performing smoothing */
typedef
otb
::
ConvolutionImageFilter
<
TPanImageType
,
InternalImageType
,
InternalImageType
,
itk
::
ZeroFluxNeumannBoundaryCondition
<
TPanImageType
>
,
TInternalPrecision
>
ConvolutionFilterType
;
/** Pointer to the internal convolution filter */
typename
ConvolutionFilterType
::
Pointer
m_ConvolutionFilter
;
...
...
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