Commit fd13bd5c authored by nanored's avatar nanored
Browse files

Fin TP 4

parent 4fbbb5ef
......@@ -6,6 +6,8 @@
#include <Imagine/Images.h>
#include <queue>
#include <iostream>
#include <chrono>
using namespace Imagine;
using namespace std;
......@@ -227,6 +229,9 @@ int main()
find_seeds(I1, I2, -1.0f, disp, seeds, Q);
displayDisp(disp,W,2);
chrono::time_point<chrono::system_clock> T0, T1;
T0 = chrono::system_clock::now();
// Only seeds
find_seeds(I1, I2, nccSeed, disp, seeds, Q);
displayDisp(disp,W,3);
......@@ -235,6 +240,10 @@ int main()
propagate(I1, I2, disp, seeds, Q);
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)
show3D(I1,disp);
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment