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
04f01ed2
Commit
04f01ed2
authored
Jan 29, 2013
by
cuda-geek
Committed by
OpenCV Buildbot
Jan 29, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #353 from asmaloney:arg_checks
parents
11dfceb2
7a6475c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
posit.cpp
modules/calib3d/src/posit.cpp
+6
-6
persistence.cpp
modules/core/src/persistence.cpp
+2
-1
No files found.
modules/calib3d/src/posit.cpp
View file @
04f01ed2
...
@@ -119,12 +119,6 @@ static CvStatus icvPOSIT( CvPOSITObject *pObject, CvPoint2D32f *imagePoints,
...
@@ -119,12 +119,6 @@ static CvStatus icvPOSIT( CvPOSITObject *pObject, CvPoint2D32f *imagePoints,
float
diff
=
(
float
)
criteria
.
epsilon
;
float
diff
=
(
float
)
criteria
.
epsilon
;
float
inv_focalLength
=
1
/
focalLength
;
float
inv_focalLength
=
1
/
focalLength
;
/* init variables */
int
N
=
pObject
->
N
;
float
*
objectVectors
=
pObject
->
obj_vecs
;
float
*
invMatrix
=
pObject
->
inv_matr
;
float
*
imgVectors
=
pObject
->
img_vecs
;
/* Check bad arguments */
/* Check bad arguments */
if
(
imagePoints
==
NULL
)
if
(
imagePoints
==
NULL
)
return
CV_NULLPTR_ERR
;
return
CV_NULLPTR_ERR
;
...
@@ -143,6 +137,12 @@ static CvStatus icvPOSIT( CvPOSITObject *pObject, CvPoint2D32f *imagePoints,
...
@@ -143,6 +137,12 @@ static CvStatus icvPOSIT( CvPOSITObject *pObject, CvPoint2D32f *imagePoints,
if
(
(
criteria
.
type
&
CV_TERMCRIT_ITER
)
&&
criteria
.
max_iter
<=
0
)
if
(
(
criteria
.
type
&
CV_TERMCRIT_ITER
)
&&
criteria
.
max_iter
<=
0
)
return
CV_BADFACTOR_ERR
;
return
CV_BADFACTOR_ERR
;
/* init variables */
int
N
=
pObject
->
N
;
float
*
objectVectors
=
pObject
->
obj_vecs
;
float
*
invMatrix
=
pObject
->
inv_matr
;
float
*
imgVectors
=
pObject
->
img_vecs
;
while
(
!
converged
)
while
(
!
converged
)
{
{
if
(
count
==
0
)
if
(
count
==
0
)
...
...
modules/core/src/persistence.cpp
View file @
04f01ed2
...
@@ -614,11 +614,12 @@ cvGetHashedKey( CvFileStorage* fs, const char* str, int len, int create_missing
...
@@ -614,11 +614,12 @@ cvGetHashedKey( CvFileStorage* fs, const char* str, int len, int create_missing
CvStringHashNode
*
node
=
0
;
CvStringHashNode
*
node
=
0
;
unsigned
hashval
=
0
;
unsigned
hashval
=
0
;
int
i
,
tab_size
;
int
i
,
tab_size
;
CvStringHash
*
map
=
fs
->
str_hash
;
if
(
!
fs
)
if
(
!
fs
)
return
0
;
return
0
;
CvStringHash
*
map
=
fs
->
str_hash
;
if
(
len
<
0
)
if
(
len
<
0
)
{
{
for
(
i
=
0
;
str
[
i
]
!=
'\0'
;
i
++
)
for
(
i
=
0
;
str
[
i
]
!=
'\0'
;
i
++
)
...
...
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