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
Container Registry
Model registry
Operate
Environments
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
Antoine Belvire
otb
Commits
c507cc8f
Commit
c507cc8f
authored
16 years ago
by
Grégoire Mercier
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Cost for Wavelet packet decomposition
parent
ff880d45
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/MultiScale/otbWPCost.h
+84
-0
84 additions, 0 deletions
Code/MultiScale/otbWPCost.h
with
84 additions
and
0 deletions
Code/MultiScale/otbWPCost.h
0 → 100644
+
84
−
0
View file @
c507cc8f
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
Copyright (c) Institut Telecom / Telecom Bretagne. All rights reserved.
See ITCopyright.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 __otbWPCost__h
#define __otbWPCost__h
#include
"itkObject.h"
#include
"itkMacro.h"
namespace
otb
{
/** \class FullyDecomposedWaveletPacketCost
* \brief Cost evaluation to be used into the Wavelet Packet decomposition class.
*
* This class implements the criteria to perform fully decomposed wavelet packet.
* It is based on the depth of the decomposition only...
*
* \sa WaveletPacketForwardTransform
*/
template
<
class
TImage
>
class
ITK_EXPORT
FullyDecomposedWaveletPacketCost
:
public
itk
::
Object
{
public:
/** Standard typedefs */
typedef
FullyDecomposedWaveletPacketCost
Self
;
typedef
itk
::
Object
Superclass
;
typedef
itk
::
SmartPointer
<
Self
>
Pointer
;
typedef
itk
::
SmartPointer
<
const
Self
>
ConstPointer
;
/** Type macro */
itkNewMacro
(
Self
);
/** Creation through object factory macro */
itkTypeMacro
(
FullyDecomposedWaveletPacketCost
,
Object
);
typedef
TImage
ImageType
;
/** Acces to the data */
itkGetMacro
(
NumberOfAllowedDecompositions
,
unsigned
int
);
itkSetMacro
(
NumberOfAllowedDecompositions
,
unsigned
int
);
/** Evaluate the cost */
virtual
bool
Evaluate
(
unsigned
int
decomposition
,
ImageType
*
image
)
{
return
(
decomposition
<
m_NumberOfAllowedDecompositions
);
}
protected
:
FullyDecomposedWaveletPacketCost
()
{
m_NumberOfAllowedDecompositions
=
1
;
}
virtual
~
FullyDecomposedWaveletPacketCost
()
{}
unsigned
int
m_NumberOfAllowedDecompositions
;
private
:
FullyDecomposedWaveletPacketCost
(
const
Self
&
);
// not implemented
void
operator
=
(
const
Self
&
);
};
// end of class
}
// end of 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