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
579f723f
Commit
579f723f
authored
Apr 04, 2013
by
Andrey Kamaev
Committed by
OpenCV Buildbot
Apr 04, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #762 from vpisarev:cvt_fix
parents
7c402d1e
6aa4f533
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
test_stereomatching.cpp
modules/calib3d/test/test_stereomatching.cpp
+19
-4
No files found.
modules/calib3d/test/test_stereomatching.cpp
View file @
579f723f
...
...
@@ -459,14 +459,29 @@ void CV_StereoMatchingTest::run(int)
continue
;
}
int
dispScaleFactor
=
datasetsParams
[
datasetName
].
dispScaleFactor
;
trueLeftDisp
.
convertTo
(
trueLeftDisp
,
CV_32FC1
,
1.
f
/
dispScaleFactor
);
Mat
tmp
;
trueLeftDisp
.
convertTo
(
tmp
,
CV_32FC1
,
1.
f
/
dispScaleFactor
);
trueLeftDisp
=
tmp
;
tmp
.
release
();
if
(
!
trueRightDisp
.
empty
()
)
trueRightDisp
.
convertTo
(
trueRightDisp
,
CV_32FC1
,
1.
f
/
dispScaleFactor
);
{
trueRightDisp
.
convertTo
(
tmp
,
CV_32FC1
,
1.
f
/
dispScaleFactor
);
trueRightDisp
=
tmp
;
tmp
.
release
();
}
Mat
leftDisp
,
rightDisp
;
int
ignBorder
=
max
(
runStereoMatchingAlgorithm
(
leftImg
,
rightImg
,
leftDisp
,
rightDisp
,
ci
),
EVAL_IGNORE_BORDER
);
leftDisp
.
convertTo
(
leftDisp
,
CV_32FC1
);
rightDisp
.
convertTo
(
rightDisp
,
CV_32FC1
);
leftDisp
.
convertTo
(
tmp
,
CV_32FC1
);
leftDisp
=
tmp
;
tmp
.
release
();
rightDisp
.
convertTo
(
tmp
,
CV_32FC1
);
rightDisp
=
tmp
;
tmp
.
release
();
int
tempCode
=
processStereoMatchingResults
(
resFS
,
ci
,
isWrite
,
leftImg
,
rightImg
,
trueLeftDisp
,
trueRightDisp
,
leftDisp
,
rightDisp
,
QualityEvalParams
(
ignBorder
));
...
...
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