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
de35c59b
Commit
de35c59b
authored
Oct 22, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7517 from paroj:pp_dpdf
parents
ecac70f1
01b592c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
calibration.cpp
modules/calib3d/src/calibration.cpp
+4
-2
No files found.
modules/calib3d/src/calibration.cpp
View file @
de35c59b
...
@@ -787,7 +787,7 @@ CV_IMPL void cvProjectPoints2( const CvMat* objectPoints,
...
@@ -787,7 +787,7 @@ CV_IMPL void cvProjectPoints2( const CvMat* objectPoints,
{
{
if
(
dpdc_p
)
if
(
dpdc_p
)
{
{
dpdc_p
[
0
]
=
1
;
dpdc_p
[
1
]
=
0
;
dpdc_p
[
0
]
=
1
;
dpdc_p
[
1
]
=
0
;
// dp_xdc_x; dp_xdc_y
dpdc_p
[
dpdc_step
]
=
0
;
dpdc_p
[
dpdc_step
]
=
0
;
dpdc_p
[
dpdc_step
+
1
]
=
1
;
dpdc_p
[
dpdc_step
+
1
]
=
1
;
dpdc_p
+=
dpdc_step
*
2
;
dpdc_p
+=
dpdc_step
*
2
;
...
@@ -797,7 +797,7 @@ CV_IMPL void cvProjectPoints2( const CvMat* objectPoints,
...
@@ -797,7 +797,7 @@ CV_IMPL void cvProjectPoints2( const CvMat* objectPoints,
{
{
if
(
fixedAspectRatio
)
if
(
fixedAspectRatio
)
{
{
dpdf_p
[
0
]
=
0
;
dpdf_p
[
1
]
=
xd
*
aspectRatio
;
dpdf_p
[
0
]
=
0
;
dpdf_p
[
1
]
=
xd
*
aspectRatio
;
// dp_xdf_x; dp_xdf_y
dpdf_p
[
dpdf_step
]
=
0
;
dpdf_p
[
dpdf_step
]
=
0
;
dpdf_p
[
dpdf_step
+
1
]
=
yd
;
dpdf_p
[
dpdf_step
+
1
]
=
yd
;
}
}
...
@@ -1496,6 +1496,8 @@ static double cvCalibrateCamera2Internal( const CvMat* objectPoints,
...
@@ -1496,6 +1496,8 @@ static double cvCalibrateCamera2Internal( const CvMat* objectPoints,
param
[
0
]
=
A
(
0
,
0
);
param
[
1
]
=
A
(
1
,
1
);
param
[
2
]
=
A
(
0
,
2
);
param
[
3
]
=
A
(
1
,
2
);
param
[
0
]
=
A
(
0
,
0
);
param
[
1
]
=
A
(
1
,
1
);
param
[
2
]
=
A
(
0
,
2
);
param
[
3
]
=
A
(
1
,
2
);
std
::
copy
(
k
,
k
+
14
,
param
+
4
);
std
::
copy
(
k
,
k
+
14
,
param
+
4
);
if
(
flags
&
CALIB_FIX_ASPECT_RATIO
)
mask
[
0
]
=
0
;
if
(
flags
&
CV_CALIB_FIX_FOCAL_LENGTH
)
if
(
flags
&
CV_CALIB_FIX_FOCAL_LENGTH
)
mask
[
0
]
=
mask
[
1
]
=
0
;
mask
[
0
]
=
mask
[
1
]
=
0
;
if
(
flags
&
CV_CALIB_FIX_PRINCIPAL_POINT
)
if
(
flags
&
CV_CALIB_FIX_PRINCIPAL_POINT
)
...
...
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