Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
273
Issues
273
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
7d9ca32f
Commit
7d9ca32f
authored
Feb 14, 2018
by
Antoine Regimbeau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: change static const for static constexpr
parent
e686968f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h
...ltering/ImageManipulation/include/otbConvertTypeFunctor.h
+11
-8
No files found.
Modules/Filtering/ImageManipulation/include/otbConvertTypeFunctor.h
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 ;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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