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
8ffa2947
Commit
8ffa2947
authored
Aug 25, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9467 from sovrasov:stereo_calib_fix_td
parents
603fa03a
e0ff5106
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
calib3d_c.h
modules/calib3d/include/opencv2/calib3d/calib3d_c.h
+1
-0
calibration.cpp
modules/calib3d/src/calibration.cpp
+2
-2
solvepnp.cpp
modules/calib3d/src/solvepnp.cpp
+1
-1
No files found.
modules/calib3d/include/opencv2/calib3d/calib3d_c.h
View file @
8ffa2947
...
...
@@ -245,6 +245,7 @@ CVAPI(void) cvDrawChessboardCorners( CvArr* image, CvSize pattern_size,
#define CV_CALIB_FIX_S1_S2_S3_S4 65536
#define CV_CALIB_TILTED_MODEL 262144
#define CV_CALIB_FIX_TAUX_TAUY 524288
#define CV_CALIB_FIX_TANGENT_DIST 2097152
#define CV_CALIB_NINTRINSIC 18
...
...
modules/calib3d/src/calibration.cpp
View file @
8ffa2947
...
...
@@ -1826,7 +1826,7 @@ double cvStereoCalibrate( const CvMat* _objectPoints, const CvMat* _imagePoints1
cvConvert
(
cameraMatrix
,
&
K
[
k
]
);
if
(
flags
&
(
CALIB_FIX_INTRINSIC
|
CALIB_USE_INTRINSIC_GUESS
|
CALIB_FIX_K1
|
CALIB_FIX_K2
|
CALIB_FIX_K3
|
CALIB_FIX_K4
|
CALIB_FIX_K5
|
CALIB_FIX_K6
)
)
CALIB_FIX_K1
|
CALIB_FIX_K2
|
CALIB_FIX_K3
|
CALIB_FIX_K4
|
CALIB_FIX_K5
|
CALIB_FIX_K6
|
CALIB_FIX_TANGENT_DIST
)
)
{
CvMat
tdist
=
cvMat
(
distCoeffs
->
rows
,
distCoeffs
->
cols
,
CV_MAKETYPE
(
CV_64F
,
CV_MAT_CN
(
distCoeffs
->
type
)),
Dist
[
k
].
data
.
db
);
...
...
@@ -1888,7 +1888,7 @@ double cvStereoCalibrate( const CvMat* _objectPoints, const CvMat* _imagePoints1
imask
[
0
]
=
imask
[
1
]
=
imask
[
NINTRINSIC
]
=
imask
[
NINTRINSIC
+
1
]
=
0
;
if
(
flags
&
CALIB_FIX_PRINCIPAL_POINT
)
imask
[
2
]
=
imask
[
3
]
=
imask
[
NINTRINSIC
+
2
]
=
imask
[
NINTRINSIC
+
3
]
=
0
;
if
(
flags
&
CALIB_ZERO_TANGENT_DIST
)
if
(
flags
&
(
CALIB_ZERO_TANGENT_DIST
|
CALIB_FIX_TANGENT_DIST
)
)
imask
[
6
]
=
imask
[
7
]
=
imask
[
NINTRINSIC
+
6
]
=
imask
[
NINTRINSIC
+
7
]
=
0
;
if
(
flags
&
CALIB_FIX_K1
)
imask
[
4
]
=
imask
[
NINTRINSIC
+
4
]
=
0
;
...
...
modules/calib3d/src/solvepnp.cpp
View file @
8ffa2947
...
...
@@ -137,7 +137,7 @@ bool solvePnP( InputArray _opoints, InputArray _ipoints,
CvMat
c_cameraMatrix
=
cameraMatrix
,
c_distCoeffs
=
distCoeffs
;
CvMat
c_rvec
=
rvec
,
c_tvec
=
tvec
;
cvFindExtrinsicCameraParams2
(
&
c_objectPoints
,
&
c_imagePoints
,
&
c_cameraMatrix
,
c_distCoeffs
.
rows
*
c_distCoeffs
.
cols
?
&
c_distCoeffs
:
0
,
(
c_distCoeffs
.
rows
&&
c_distCoeffs
.
cols
)
?
&
c_distCoeffs
:
0
,
&
c_rvec
,
&
c_tvec
,
useExtrinsicGuess
);
result
=
true
;
}
...
...
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