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
59953edf
Commit
59953edf
authored
15 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
BUG: const correctness + style
parent
3a52a0c9
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/ChangeDetection/otbCBAMI.h
+13
-13
13 additions, 13 deletions
Code/ChangeDetection/otbCBAMI.h
with
13 additions
and
13 deletions
Code/ChangeDetection/otbCBAMI.h
+
13
−
13
View file @
59953edf
...
...
@@ -37,15 +37,15 @@ class CBAMI
{
public:
typedef
typename
std
::
vector
<
TOutput
>
VectorType
;
typedef
typename
VectorType
::
iterator
IteratorType
;
typedef
typename
std
::
vector
<
VectorType
>
VectorOfVectorType
;
typedef
typename
std
::
vector
<
TOutput
>
VectorType
;
typedef
typename
VectorType
::
iterator
IteratorType
;
typedef
typename
std
::
vector
<
VectorType
>
VectorOfVectorType
;
typedef
typename
VectorOfVectorType
::
iterator
VecOfVecIteratorType
;
CBAMI
()
{};
virtual
~
CBAMI
()
{};
inline
TOutput
operator
()(
const
TInput1
&
itA
,
const
TInput2
&
itB
)
const
TInput2
&
itB
)
const
{
double
epsilon
=
0.01
;
VectorType
vecA
;
...
...
@@ -67,7 +67,7 @@ public:
protected
:
inline
void
normalizeInPlace
(
VectorType
vx
)
inline
void
normalizeInPlace
(
VectorType
vx
)
const
{
TOutput
Ex
=
0.0
;
...
...
@@ -76,7 +76,7 @@ protected:
for
(
itx
=
vx
.
begin
();
itx
<
vx
.
end
();
++
itx
)
{
Ex
+=
static_cast
<
TOutput
>
(
*
itx
);
Ex
+=
static_cast
<
TOutput
>
(
*
itx
);
}
Ex
/=
(
vx
.
size
());
...
...
@@ -85,7 +85,7 @@ protected:
for
(
itx
=
vx
.
begin
();
itx
<
vx
.
end
();
++
itx
)
{
Vx
+=
static_cast
<
TOutput
>
(
vcl_pow
(
static_cast
<
double
>
((
*
itx
)
-
Ex
),
2
));
Vx
+=
static_cast
<
TOutput
>
(
vcl_pow
(
static_cast
<
double
>
((
*
itx
)
-
Ex
),
2
));
}
Vx
/=
(
vx
.
size
());
...
...
@@ -97,7 +97,7 @@ protected:
}
inline
TOutput
Exyc
(
VectorType
vx
,
VectorType
vy
)
inline
TOutput
Exyc
(
VectorType
vx
,
VectorType
vy
)
const
{
TOutput
Exy
=
0.0
;
...
...
@@ -111,7 +111,7 @@ protected:
{
//Ex += (*itx);
//Ey += (*ity);
Exy
+=
(
*
itx
)
*
(
*
ity
);
Exy
+=
(
*
itx
)
*
(
*
ity
);
}
...
...
@@ -122,7 +122,7 @@ protected:
return
Exy
-
Ex
*
Ey
;
}
inline
TOutput
Exyztc
(
VectorType
vx
,
VectorType
vy
,
VectorType
vz
,
VectorType
vt
)
inline
TOutput
Exyztc
(
VectorType
vx
,
VectorType
vy
,
VectorType
vz
,
VectorType
vt
)
const
{
TOutput
Exyzt
=
0.0
;
...
...
@@ -206,14 +206,14 @@ protected:
return
result
;
}
inline
TOutput
Rxy
(
VectorType
va
,
VectorType
vb
)
inline
TOutput
Rxy
(
VectorType
va
,
VectorType
vb
)
const
{
return
Exyc
(
va
,
vb
);
}
inline
TOutput
Qxijkl
(
VectorType
va
,
VectorType
vb
,
VectorType
vc
,
VectorType
vd
)
inline
TOutput
Qxijkl
(
VectorType
va
,
VectorType
vb
,
VectorType
vc
,
VectorType
vd
)
const
{
// IteratorType ita;
// IteratorType itb;
...
...
@@ -236,7 +236,7 @@ protected:
}
inline
TOutput
PhiMI
(
VectorType
v1
,
VectorType
v2
)
inline
TOutput
PhiMI
(
VectorType
v1
,
VectorType
v2
)
const
{
...
...
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