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
cefa1dc5
Commit
cefa1dc5
authored
Nov 20, 2015
by
Pavel Rojtberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch mask type from vector<int> to vector<uchar>
parent
81e814d9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
fisheye.cpp
modules/calib3d/src/fisheye.cpp
+6
-6
fisheye.hpp
modules/calib3d/src/fisheye.hpp
+1
-1
test_fisheye.cpp
modules/calib3d/test/test_fisheye.cpp
+1
-1
No files found.
modules/calib3d/src/fisheye.cpp
View file @
cefa1dc5
...
...
@@ -53,7 +53,7 @@ namespace cv { namespace
double
dalpha
;
};
void
subMatrix
(
const
Mat
&
src
,
Mat
&
dst
,
const
std
::
vector
<
int
>&
cols
,
const
std
::
vector
<
int
>&
rows
);
void
subMatrix
(
const
Mat
&
src
,
Mat
&
dst
,
const
std
::
vector
<
uchar
>&
cols
,
const
std
::
vector
<
uchar
>&
rows
);
}}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
...
...
@@ -899,7 +899,7 @@ double cv::fisheye::stereoCalibrate(InputArrayOfArrays objectPoints, InputArrayO
intrinsicLeft_errors
.
isEstimate
=
intrinsicLeft
.
isEstimate
;
intrinsicRight_errors
.
isEstimate
=
intrinsicRight
.
isEstimate
;
std
::
vector
<
int
>
selectedParams
;
std
::
vector
<
uchar
>
selectedParams
;
std
::
vector
<
int
>
tmp
(
6
*
(
n_images
+
1
),
1
);
selectedParams
.
insert
(
selectedParams
.
end
(),
intrinsicLeft
.
isEstimate
.
begin
(),
intrinsicLeft
.
isEstimate
.
end
());
selectedParams
.
insert
(
selectedParams
.
end
(),
intrinsicRight
.
isEstimate
.
begin
(),
intrinsicRight
.
isEstimate
.
end
());
...
...
@@ -999,7 +999,7 @@ double cv::fisheye::stereoCalibrate(InputArrayOfArrays objectPoints, InputArrayO
cv
::
Vec6d
oldTom
(
Tcur
[
0
],
Tcur
[
1
],
Tcur
[
2
],
omcur
[
0
],
omcur
[
1
],
omcur
[
2
]);
//update all parameters
cv
::
subMatrix
(
J
,
J
,
selectedParams
,
std
::
vector
<
int
>
(
J
.
rows
,
1
));
cv
::
subMatrix
(
J
,
J
,
selectedParams
,
std
::
vector
<
uchar
>
(
J
.
rows
,
1
));
int
a
=
cv
::
countNonZero
(
intrinsicLeft
.
isEstimate
);
int
b
=
cv
::
countNonZero
(
intrinsicRight
.
isEstimate
);
cv
::
Mat
deltas
;
...
...
@@ -1050,7 +1050,7 @@ double cv::fisheye::stereoCalibrate(InputArrayOfArrays objectPoints, InputArrayO
}
namespace
cv
{
namespace
{
void
subMatrix
(
const
Mat
&
src
,
Mat
&
dst
,
const
std
::
vector
<
int
>&
cols
,
const
std
::
vector
<
int
>&
rows
)
void
subMatrix
(
const
Mat
&
src
,
Mat
&
dst
,
const
std
::
vector
<
uchar
>&
cols
,
const
std
::
vector
<
uchar
>&
rows
)
{
CV_Assert
(
src
.
channels
()
==
1
);
...
...
@@ -1435,11 +1435,11 @@ void cv::internal::ComputeJacobians(InputArrayOfArrays objectPoints, InputArrayO
}
}
std
::
vector
<
int
>
idxs
(
param
.
isEstimate
);
std
::
vector
<
uchar
>
idxs
(
param
.
isEstimate
);
idxs
.
insert
(
idxs
.
end
(),
6
*
n
,
1
);
subMatrix
(
JJ2
,
JJ2
,
idxs
,
idxs
);
subMatrix
(
ex3
,
ex3
,
std
::
vector
<
int
>
(
1
,
1
),
idxs
);
subMatrix
(
ex3
,
ex3
,
std
::
vector
<
uchar
>
(
1
,
1
),
idxs
);
}
void
cv
::
internal
::
EstimateUncertainties
(
InputArrayOfArrays
objectPoints
,
InputArrayOfArrays
imagePoints
,
...
...
modules/calib3d/src/fisheye.hpp
View file @
cefa1dc5
...
...
@@ -10,7 +10,7 @@ struct CV_EXPORTS IntrinsicParams
Vec2d
c
;
Vec4d
k
;
double
alpha
;
std
::
vector
<
int
>
isEstimate
;
std
::
vector
<
uchar
>
isEstimate
;
IntrinsicParams
();
IntrinsicParams
(
Vec2d
f
,
Vec2d
c
,
Vec4d
k
,
double
alpha
=
0
);
...
...
modules/calib3d/test/test_fisheye.cpp
View file @
cefa1dc5
...
...
@@ -368,7 +368,7 @@ TEST_F(fisheyeTest, EtimateUncertainties)
double
thresh_cond
=
1e6
;
int
check_cond
=
1
;
param
.
Init
(
cv
::
Vec2d
(
theK
(
0
,
0
),
theK
(
1
,
1
)),
cv
::
Vec2d
(
theK
(
0
,
2
),
theK
(
1
,
2
)),
theD
);
param
.
isEstimate
=
std
::
vector
<
int
>
(
9
,
1
);
param
.
isEstimate
=
std
::
vector
<
uchar
>
(
9
,
1
);
param
.
isEstimate
[
4
]
=
0
;
errors
.
isEstimate
=
param
.
isEstimate
;
...
...
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