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
Sébastien Peillet
otb
Commits
7d9ca32f
Commit
7d9ca32f
authored
7 years ago
by
Antoine Regimbeau
Browse files
Options
Downloads
Patches
Plain Diff
ENH: change static const for static constexpr
parent
e686968f
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
Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h
+11
-8
11 additions, 8 deletions
...ltering/ImageManipulation/include/otbConvertTypeFunctor.h
with
11 additions
and
8 deletions
Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h
+
11
−
8
View file @
7d9ca32f
...
...
@@ -26,7 +26,6 @@
#include
<boost/type_traits/is_complex.hpp>
#include
<boost/type_traits/is_scalar.hpp>
#include
"itkVariableLengthVector.h"
#include
"itkNumericTraits.h"
#include
"otbDefaultConvertPixelTraits.h"
...
...
@@ -49,11 +48,16 @@ public:
typedef
typename
itk
::
NumericTraits
<
InputInternalPixelType
>
::
ValueType
InputPixelValueType
;
typedef
typename
itk
::
NumericTraits
<
OutputInternalPixelType
>
::
ValueType
OutputPixelValueType
;
ConvertTypeFunctor
()
:
m_cInPix
(
boost
::
is_complex
<
InputPixelType
>
::
value
)
,
m_cOutPix
(
boost
::
is_complex
<
OutputPixelType
>
::
value
)
,
m_cInInternalPix
(
boost
::
is_complex
<
InputInternalPixelType
>
::
value
)
,
m_cOutInternalPix
(
boost
::
is_complex
<
OutputInternalPixelType
>
::
value
)
static
constexpr
bool
m_cInPix
=
boost
::
is_complex
<
InputPixelType
>
::
value
;
static
constexpr
bool
m_cOutPix
=
boost
::
is_complex
<
OutputPixelType
>
::
value
;
static
constexpr
bool
m_cInInternalPix
=
boost
::
is_complex
<
InputInternalPixelType
>
::
value
;
static
constexpr
bool
m_cOutInternalPix
=
boost
::
is_complex
<
OutputInternalPixelType
>
::
value
;
ConvertTypeFunctor
()
// m_cInPix ( boost::is_complex < InputPixelType > :: value ) ,
// m_cOutPix ( boost::is_complex < OutputPixelType > :: value ) ,
// m_cInInternalPix ( boost::is_complex < InputInternalPixelType > :: value ) ,
// m_cOutInternalPix ( boost::is_complex < OutputInternalPixelType > :: value )
{
m_LowestB
=
std
::
numeric_limits
<
OutputPixelValueType
>::
lowest
();
m_HighestB
=
std
::
numeric_limits
<
OutputPixelValueType
>::
max
();
...
...
@@ -228,8 +232,7 @@ private:
double
m_LowestBD
,
m_HighestBD
;
OutputPixelValueType
m_LowestB
,
m_HighestB
;
unsigned
int
m_CompIn
,
m_CompOut
,
m_Scal
;
const
bool
m_cInPix
,
m_cOutPix
,
m_cInInternalPix
,
m_cOutInternalPix
;
// const bool m_cInPix , m_cOutPix , m_cInInternalPix , m_cOutInternalPix ;
};
...
...
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