Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
a8670a93
Commit
a8670a93
authored
Jul 25, 2016
by
Leonardo Brás
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typos
parent
0ea02782
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
disparity_filters.cpp
modules/ximgproc/src/disparity_filters.cpp
+3
-3
No files found.
modules/ximgproc/src/disparity_filters.cpp
View file @
a8670a93
...
...
@@ -517,7 +517,7 @@ int readGT(String src_path,OutputArray dst)
double
computeMSE
(
InputArray
GT
,
InputArray
src
,
Rect
ROI
)
{
CV_Assert
(
!
GT
.
empty
()
&&
(
GT
.
depth
()
==
CV_16S
||
GT
.
depth
()
==
CV_32F
)
&&
(
GT
.
channels
()
==
1
)
);
CV_Assert
(
!
src
.
empty
()
&&
(
src
.
depth
()
==
CV_16S
||
GT
.
depth
()
==
CV_32F
)
&&
(
src
.
channels
()
==
1
)
);
CV_Assert
(
!
src
.
empty
()
&&
(
src
.
depth
()
==
CV_16S
||
src
.
depth
()
==
CV_32F
)
&&
(
src
.
channels
()
==
1
)
);
CV_Assert
(
src
.
rows
()
==
GT
.
rows
()
&&
src
.
cols
()
==
GT
.
cols
()
);
double
res
=
0
;
Mat
GT_ROI
(
GT
.
getMat
(),
ROI
);
...
...
@@ -539,7 +539,7 @@ double computeMSE(InputArray GT, InputArray src, Rect ROI)
double
computeBadPixelPercent
(
InputArray
GT
,
InputArray
src
,
Rect
ROI
,
int
thresh
)
{
CV_Assert
(
!
GT
.
empty
()
&&
(
GT
.
depth
()
==
CV_16S
||
GT
.
depth
()
==
CV_32F
)
&&
(
GT
.
channels
()
==
1
)
);
CV_Assert
(
!
src
.
empty
()
&&
(
src
.
depth
()
==
CV_16S
||
GT
.
depth
()
==
CV_32F
)
&&
(
src
.
channels
()
==
1
)
);
CV_Assert
(
!
src
.
empty
()
&&
(
src
.
depth
()
==
CV_16S
||
src
.
depth
()
==
CV_32F
)
&&
(
src
.
channels
()
==
1
)
);
CV_Assert
(
src
.
rows
()
==
GT
.
rows
()
&&
src
.
cols
()
==
GT
.
cols
()
);
int
bad_pixel_num
=
0
;
Mat
GT_ROI
(
GT
.
getMat
(),
ROI
);
...
...
@@ -560,7 +560,7 @@ double computeBadPixelPercent(InputArray GT, InputArray src, Rect ROI, int thres
void
getDisparityVis
(
InputArray
src
,
OutputArray
dst
,
double
scale
)
{
CV_Assert
(
!
src
.
empty
()
&&
(
src
.
depth
()
==
CV_16S
||
GT
.
depth
()
==
CV_32F
)
&&
(
src
.
channels
()
==
1
)
);
CV_Assert
(
!
src
.
empty
()
&&
(
src
.
depth
()
==
CV_16S
||
src
.
depth
()
==
CV_32F
)
&&
(
src
.
channels
()
==
1
)
);
Mat
srcMat
=
src
.
getMat
();
dst
.
create
(
srcMat
.
rows
,
srcMat
.
cols
,
CV_8UC1
);
Mat
&
dstMat
=
dst
.
getMatRef
();
...
...
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