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
e7ab49eb
Commit
e7ab49eb
authored
Aug 28, 2015
by
Muresan Mircea Paul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed the speckle vectors to mats and added comments
parent
a102eeb1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
10 deletions
+22
-10
matching.hpp
modules/stereo/src/matching.hpp
+9
-3
stereo_binary_bm.cpp
modules/stereo/src/stereo_binary_bm.cpp
+3
-3
stereo_binary_sgbm.cpp
modules/stereo/src/stereo_binary_sgbm.cpp
+3
-3
test_block_matching.cpp
modules/stereo/test/test_block_matching.cpp
+3
-0
test_descriptors.cpp
modules/stereo/test/test_descriptors.cpp
+4
-1
No files found.
modules/stereo/src/matching.hpp
View file @
e7ab49eb
...
...
@@ -359,9 +359,12 @@ namespace cv
};
protected
:
//arrays used in the region removal
int
*
specklePointX
;
int
*
specklePointY
;
long
long
*
pus
;
Mat
speckleY
;
Mat
speckleX
;
Mat
puss
;
//int *specklePointX;
//int *specklePointY;
//long long *pus;
int
previous_size
;
//!method for setting the maximum disparity
void
setMaxDisparity
(
int
val
)
...
...
@@ -470,6 +473,9 @@ namespace cv
CV_Assert
(
currentMap
.
cols
==
out
.
cols
);
CV_Assert
(
currentMap
.
rows
==
out
.
rows
);
CV_Assert
(
t
>=
0
);
int
*
pus
=
(
int
*
)
puss
.
data
;
int
*
specklePointX
=
(
int
*
)
speckleX
.
data
;
int
*
specklePointY
=
(
int
*
)
speckleY
.
data
;
memset
(
pus
,
0
,
previous_size
*
sizeof
(
pus
[
0
]));
uint8_t
*
map
=
currentMap
.
data
;
uint8_t
*
outputMap
=
out
.
data
;
...
...
modules/stereo/src/stereo_binary_bm.cpp
View file @
e7ab49eb
...
...
@@ -328,9 +328,9 @@ namespace cv
if
(
previous_size
!=
width
*
height
)
{
previous_size
=
width
*
height
;
speckle
PointX
=
new
int
[
width
*
height
]
;
speckle
PointY
=
new
int
[
width
*
height
]
;
pus
=
new
long
long
[
width
*
height
]
;
speckle
X
.
create
(
height
,
width
,
CV_32SC4
)
;
speckle
Y
.
create
(
height
,
width
,
CV_32SC4
)
;
pus
s
.
create
(
height
,
width
,
CV_32SC4
)
;
censusImage
[
0
].
create
(
left0
.
rows
,
left0
.
cols
,
CV_32SC4
);
censusImage
[
1
].
create
(
left0
.
rows
,
left0
.
cols
,
CV_32SC4
);
...
...
modules/stereo/src/stereo_binary_sgbm.cpp
View file @
e7ab49eb
...
...
@@ -697,9 +697,9 @@ namespace cv
if
(
previous_size
!=
width
*
height
)
{
previous_size
=
width
*
height
;
speckle
PointX
=
new
int
[
width
*
height
]
;
speckle
PointY
=
new
int
[
width
*
height
]
;
pus
=
new
long
long
[
width
*
height
]
;
speckle
X
.
create
(
height
,
width
,
CV_32SC4
)
;
speckle
Y
.
create
(
height
,
width
,
CV_32SC4
)
;
pus
s
.
create
(
height
,
width
,
CV_32SC4
)
;
}
double
minVal
;
double
maxVal
;
Mat
imgDisparity8U2
;
...
...
modules/stereo/test/test_block_matching.cpp
View file @
e7ab49eb
...
...
@@ -84,6 +84,9 @@ void CV_BlockMatchingTest::run(int )
{
Mat
image1
,
image2
,
gt
;
//some test images can be found in the test data folder
//in order for the tests to build succesfully please replace
//ts->get_data_path() + "testdata/imL2l.bmp with the path from your disk
//for example if your images are on D:\\ , please write D:\\testdata\\imL2l.bmp
image1
=
imread
(
ts
->
get_data_path
()
+
"testdata/imL2l.bmp"
,
CV_8UC1
);
image2
=
imread
(
ts
->
get_data_path
()
+
"testdata/imL2.bmp"
,
CV_8UC1
);
gt
=
imread
(
ts
->
get_data_path
()
+
"testdata/groundtruth.bmp"
,
CV_8UC1
);
...
...
modules/stereo/test/test_descriptors.cpp
View file @
e7ab49eb
...
...
@@ -115,7 +115,10 @@ CV_DescriptorBaseTest::~CV_DescriptorBaseTest()
CV_DescriptorBaseTest
::
CV_DescriptorBaseTest
()
{
//read 2 images from file
//two test images can be found in the test data folder
//some test images can be found in the test data folder
//in order for the tests to build succesfully please replace
//ts->get_data_path() + "testdata/imL2l.bmp with the path from your disk
//for example if your images are on D:\\ , please write D:\\testdata\\imL2l.bmp
left
=
imread
(
ts
->
get_data_path
()
+
"testdata/imL2l.bmp"
,
CV_8UC1
);
right
=
imread
(
ts
->
get_data_path
()
+
"testdata/imL2.bmp"
,
CV_8UC1
);
...
...
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