Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nanored
MVA Vision 3D
Commits
fd13bd5c
Commit
fd13bd5c
authored
Oct 30, 2019
by
nanored
Browse files
Fin TP 4
parent
4fbbb5ef
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
TPs/Seeds.cpp
View file @
fd13bd5c
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
#include <Imagine/Images.h>
#include <Imagine/Images.h>
#include <queue>
#include <queue>
#include <iostream>
#include <iostream>
#include <chrono>
using
namespace
Imagine
;
using
namespace
Imagine
;
using
namespace
std
;
using
namespace
std
;
...
@@ -227,6 +229,9 @@ int main()
...
@@ -227,6 +229,9 @@ int main()
find_seeds
(
I1
,
I2
,
-
1.0
f
,
disp
,
seeds
,
Q
);
find_seeds
(
I1
,
I2
,
-
1.0
f
,
disp
,
seeds
,
Q
);
displayDisp
(
disp
,
W
,
2
);
displayDisp
(
disp
,
W
,
2
);
chrono
::
time_point
<
chrono
::
system_clock
>
T0
,
T1
;
T0
=
chrono
::
system_clock
::
now
();
// Only seeds
// Only seeds
find_seeds
(
I1
,
I2
,
nccSeed
,
disp
,
seeds
,
Q
);
find_seeds
(
I1
,
I2
,
nccSeed
,
disp
,
seeds
,
Q
);
displayDisp
(
disp
,
W
,
3
);
displayDisp
(
disp
,
W
,
3
);
...
@@ -235,6 +240,10 @@ int main()
...
@@ -235,6 +240,10 @@ int main()
propagate
(
I1
,
I2
,
disp
,
seeds
,
Q
);
propagate
(
I1
,
I2
,
disp
,
seeds
,
Q
);
displayDisp
(
disp
,
W
,
4
);
displayDisp
(
disp
,
W
,
4
);
T1
=
chrono
::
system_clock
::
now
();
int
dT
=
chrono
::
duration_cast
<
chrono
::
milliseconds
>
(
T1
-
T0
).
count
();
cout
<<
"Computation time for propagation method = "
<<
dT
<<
"ms"
<<
endl
;
// Show 3D (use shift click to animate)
// Show 3D (use shift click to animate)
show3D
(
I1
,
disp
);
show3D
(
I1
,
disp
);
...
...
TPs/stereoGC.cpp
View file @
fd13bd5c
This diff is collapsed.
Click to expand it.
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