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
f2698281
Commit
f2698281
authored
Dec 08, 2014
by
Dmitry-Me
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce variables scope, move declaration to first use point
parent
0a4c616d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
calibinit.cpp
modules/calib3d/src/calibinit.cpp
+3
-5
No files found.
modules/calib3d/src/calibinit.cpp
View file @
f2698281
...
...
@@ -256,7 +256,6 @@ int cvFindChessboardCorners( const void* arr, CvSize pattern_size,
*
out_corner_count
=
0
;
IplImage
_img
;
int
check_chessboard_result
;
int
quad_count
=
0
,
group_idx
=
0
,
dilations
=
0
;
img
=
cvGetMat
(
img
,
&
stub
);
...
...
@@ -302,7 +301,7 @@ int cvFindChessboardCorners( const void* arr, CvSize pattern_size,
if
(
flags
&
CV_CALIB_CB_FAST_CHECK
)
{
cvGetImage
(
img
,
&
_img
);
check_chessboard_result
=
cvCheckChessboard
(
&
_img
,
pattern_size
);
int
check_chessboard_result
=
cvCheckChessboard
(
&
_img
,
pattern_size
);
if
(
check_chessboard_result
<=
0
)
{
return
0
;
...
...
@@ -1144,7 +1143,6 @@ icvCleanFoundConnectedQuads( int quad_count, CvCBQuad **quad_group, CvSize patte
{
double
min_box_area
=
DBL_MAX
;
int
skip
,
min_box_area_index
=
-
1
;
CvCBQuad
*
q0
,
*
q
;
// For each point, calculate box area without that point
for
(
skip
=
0
;
skip
<
quad_count
;
skip
++
)
...
...
@@ -1166,12 +1164,12 @@ icvCleanFoundConnectedQuads( int quad_count, CvCBQuad **quad_group, CvSize patte
cvClearMemStorage
(
temp_storage
);
}
q0
=
quad_group
[
min_box_area_index
];
CvCBQuad
*
q0
=
quad_group
[
min_box_area_index
];
// remove any references to this quad as a neighbor
for
(
i
=
0
;
i
<
quad_count
;
i
++
)
{
q
=
quad_group
[
i
];
CvCBQuad
*
q
=
quad_group
[
i
];
for
(
j
=
0
;
j
<
4
;
j
++
)
{
if
(
q
->
neighbors
[
j
]
==
q0
)
...
...
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