11.08., 9:00 - 11:00: Due to updates GitLab will be unavailable for some minutes between 09:00 and 11:00.

Commit 84b630c8 authored by Tobias Lasser's avatar Tobias Lasser

change examples to CG

parent 5513c97f
Pipeline #200182 passed with stages
in 22 minutes and 23 seconds
......@@ -17,7 +17,7 @@ void example2d()
EDF::write(phantom, "2dphantom.edf");
// generate circular trajectory
index_t noAngles{100}, arc{360};
index_t noAngles{180}, arc{360};
auto [geometry, sinoDescriptor] = CircleTrajectoryGenerator::createTrajectory(
noAngles, phantom.getDataDescriptor(), arc, size(0) * 100, size(0));
......@@ -35,9 +35,9 @@ void example2d()
WLSProblem problem(projector, sinogram);
// solve the reconstruction problem
GradientDescent solver(problem, 1.0 / size.prod());
CG solver(problem);
index_t noIterations{50};
index_t noIterations{20};
Logger::get("Info")->info("Solving reconstruction using {} iterations of gradient descent",
noIterations);
auto reconstruction = solver.solve(noIterations);
......
......@@ -17,7 +17,7 @@ void example3d()
EDF::write(phantom, "3dphantom.edf");
// generate circular trajectory
index_t noAngles{100}, arc{360};
index_t noAngles{180}, arc{360};
auto [geometry, sinoDescriptor] = CircleTrajectoryGenerator::createTrajectory(
noAngles, phantom.getDataDescriptor(), arc, size(0) * 100, size(0));
......@@ -35,9 +35,9 @@ void example3d()
WLSProblem problem(projector, sinogram);
// solve the reconstruction problem
GradientDescent solver(problem, 1.0 / size.prod());
CG solver(problem);
index_t noIterations{50};
index_t noIterations{20};
Logger::get("Info")->info("Solving reconstruction using {} iterations of gradient descent",
noIterations);
auto reconstruction = solver.solve(noIterations);
......
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