Commit 9f359be8 authored by Tobias Lasser's avatar Tobias Lasser
Browse files

add some logging to PhantomGenerator, warning fix in CircleTrajectoryGenerator

parent 0f674d51
...@@ -33,7 +33,7 @@ namespace elsa ...@@ -33,7 +33,7 @@ namespace elsa
std::vector<Geometry> geometryList; std::vector<Geometry> geometryList;
real_t angleIncrement = static_cast<real_t>(1.0) * arcDegrees / (numberOfPoses-1); real_t angleIncrement = static_cast<real_t>(1.0) * arcDegrees / (numberOfPoses-1.0);
for (index_t i = 0; i < numberOfPoses; ++i) { for (index_t i = 0; i < numberOfPoses; ++i) {
real_t angle = i * angleIncrement * pi / 180.0; // convert to radians real_t angle = i * angleIncrement * pi / 180.0; // convert to radians
if (dim == 2) { if (dim == 2) {
......
#include "PhantomGenerator.h" #include "PhantomGenerator.h"
#include "EllipseGenerator.h" #include "EllipseGenerator.h"
#include "Logger.h"
#include <cmath> #include <cmath>
#include <stdexcept> #include <stdexcept>
...@@ -17,6 +18,8 @@ namespace elsa ...@@ -17,6 +18,8 @@ namespace elsa
if (sizes.size() == 3 && (sizes[0] != sizes[1] || sizes[0] != sizes[2])) if (sizes.size() == 3 && (sizes[0] != sizes[1] || sizes[0] != sizes[2]))
throw std::invalid_argument("PhantomGenerator::createModifiedSheppLogan: 3d size has to be cubed"); throw std::invalid_argument("PhantomGenerator::createModifiedSheppLogan: 3d size has to be cubed");
Logger::get("PhantomGenerator")->info("creating modified Shepp Logan phantom of size {}^{}", sizes[0], sizes.size());
DataDescriptor dd(sizes); DataDescriptor dd(sizes);
DataContainer<data_t> dc(dd); DataContainer<data_t> dc(dd);
......
Supports Markdown
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