28 void AngleCorrectionExecuter::setInput(QString clFilename, QString dataFilename,
double Vnyq,
double cutoff,
int nConvolutions,
double uncertainty_limit,
double minArrowDist)
31 AngleCorrection::setInput(clFilename.toStdString().c_str(), dataFilename.toStdString().c_str(), Vnyq, cutoff, nConvolutions, uncertainty_limit, minArrowDist);
32 }
catch (std::exception& e){
35 reportError(
"Angle correction algorithm threw a unknown exception during setting parameters.");
42 if(reportOutSuccess)
report(QString(
"Algorithm Angle correction started."));
46 }
catch (std::exception& e){
49 reportError(
"Angle correction algorithm threw a unknown exception.");
53 if(
getBloodVessels() <1) text.append(QString(
"\n Found %1 blood vessels. Maybe <<Velocity certainty cut off>> should be higher?").arg(
getBloodVessels()));
55 if(
getNumOfStepsRan() <1) text.append(
"\n Same input as previous. No new data generated.");
65 void AngleCorrectionExecuter::postProcessingSlot()
QString qstring_cast(const T &val)
void reportError(QString msg)
Base class for algorithms that wants to thread and time their execution. T is the return type of the ...
void setInput(vtkSmartPointer< vtkPolyData > vpd_centerline, const char *image_prefix, double Vnyq, double cutoff, int nConvolutions, double uncertainty_limit=0.0, double minArrowDist=1.0)
virtual bool calculate()
This is the threaded function, should only contain threadsafe function calls.
void setInput(QString clFilename, QString dataFilename, double Vnyq, double cutoff, int nConvolutions, double uncertainty_limit, double minArrowDist)
vtkSmartPointer< vtkPolyData > getOutput()
virtual bool isFinished() const
void reportSuccess(QString msg)
AngleCorrectionExecuter()
QString getSecondsPassedAsString() const
virtual ~AngleCorrectionExecuter()
vtkSmartPointer< vtkPolyData > getOutput()
Namespace for all CustusX production code.