Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
b7e9c622
Commit
b7e9c622
authored
Nov 25, 2010
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fifixed compile problem on VS2010 64-bit. fixed L1 and L2 distances
parent
48183f10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
features2d.hpp
modules/features2d/include/opencv2/features2d/features2d.hpp
+5
-5
No files found.
modules/features2d/include/opencv2/features2d/features2d.hpp
View file @
b7e9c622
...
...
@@ -1782,10 +1782,10 @@ struct CV_EXPORTS Accumulator
typedef
T
Type
;
};
template
<>
struct
Accumulator
<
unsigned
char
>
{
typedef
unsigned
in
t
Type
;
};
template
<>
struct
Accumulator
<
unsigned
short
>
{
typedef
unsigned
in
t
Type
;
};
template
<>
struct
Accumulator
<
char
>
{
typedef
in
t
Type
;
};
template
<>
struct
Accumulator
<
short
>
{
typedef
in
t
Type
;
};
template
<>
struct
Accumulator
<
unsigned
char
>
{
typedef
floa
t
Type
;
};
template
<>
struct
Accumulator
<
unsigned
short
>
{
typedef
floa
t
Type
;
};
template
<>
struct
Accumulator
<
char
>
{
typedef
floa
t
Type
;
};
template
<>
struct
Accumulator
<
short
>
{
typedef
floa
t
Type
;
};
/*
* Squared Euclidean distance functor
...
...
@@ -1823,7 +1823,7 @@ struct CV_EXPORTS L1
for
(
int
i
=
0
;
i
<
size
;
i
++
)
{
ResultType
diff
=
a
[
i
]
-
b
[
i
];
result
+=
fabs
(
diff
);
result
+=
(
ResultType
)
fabs
(
diff
);
}
return
result
;
}
...
...
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