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
32da602b
Commit
32da602b
authored
Mar 25, 2015
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix build (related to PR #3814)
parent
97bdc92d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
fast_nlmeans_denoising_invoker_commons.hpp
modules/photo/src/fast_nlmeans_denoising_invoker_commons.hpp
+10
-2
No files found.
modules/photo/src/fast_nlmeans_denoising_invoker_commons.hpp
View file @
32da602b
...
...
@@ -44,6 +44,14 @@
using
namespace
cv
;
// std::isnan is a part of C++11 and it is not supported in MSVS2010/2012
#if defined _MSC_VER && _MSC_VER < 1800
/* MSVC 2013 */
#include <float.h>
namespace
std
{
template
<
typename
T
>
bool
isnan
(
T
value
)
{
return
_isnan
(
value
)
!=
0
;
}
}
#endif
template
<
typename
T
>
struct
pixelInfo_
{
static
const
int
channels
=
1
;
...
...
@@ -130,7 +138,7 @@ class DistAbs
if
(
std
::
isnan
(
w
))
w
=
1.0
;
// Handle h = 0.0
static
const
double
WEIGHT_THRESHOLD
=
0.001
;
WT
weight
=
(
WT
)
r
ound
(
fixed_point_mult
*
w
);
WT
weight
=
(
WT
)
cvR
ound
(
fixed_point_mult
*
w
);
if
(
weight
<
WEIGHT_THRESHOLD
*
fixed_point_mult
)
weight
=
0
;
return
weight
;
...
...
@@ -252,7 +260,7 @@ class DistSquared
if
(
std
::
isnan
(
w
))
w
=
1.0
;
// Handle h = 0.0
static
const
double
WEIGHT_THRESHOLD
=
0.001
;
WT
weight
=
(
WT
)
r
ound
(
fixed_point_mult
*
w
);
WT
weight
=
(
WT
)
cvR
ound
(
fixed_point_mult
*
w
);
if
(
weight
<
WEIGHT_THRESHOLD
*
fixed_point_mult
)
weight
=
0
;
return
weight
;
...
...
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