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
8a888cd9
Commit
8a888cd9
authored
Jun 10, 2011
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed RNG::uniform(double,double) (ticket #1131)
parent
a8a92783
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
operations.hpp
modules/core/include/opencv2/core/operations.hpp
+1
-1
No files found.
modules/core/include/opencv2/core/operations.hpp
View file @
8a888cd9
...
...
@@ -2275,7 +2275,7 @@ inline RNG::operator double()
}
inline
int
RNG
::
uniform
(
int
a
,
int
b
)
{
return
a
==
b
?
a
:
next
()
%
(
b
-
a
)
+
a
;
}
inline
float
RNG
::
uniform
(
float
a
,
float
b
)
{
return
((
float
)
*
this
)
*
(
b
-
a
)
+
a
;
}
inline
double
RNG
::
uniform
(
double
a
,
double
b
)
{
return
((
float
)
*
this
)
*
(
b
-
a
)
+
a
;
}
inline
double
RNG
::
uniform
(
double
a
,
double
b
)
{
return
((
double
)
*
this
)
*
(
b
-
a
)
+
a
;
}
inline
TermCriteria
::
TermCriteria
()
:
type
(
0
),
maxCount
(
0
),
epsilon
(
0
)
{}
inline
TermCriteria
::
TermCriteria
(
int
_type
,
int
_maxCount
,
double
_epsilon
)
...
...
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