14 #include "recConfig.h" 54 std::vector<PropertyPtr> retval;
78 QString(
"Method: %1, radius: %2, planeMethod: %3, nClosePlanes: %4, nPlanes: %5, nStarts: %6 ").arg(method).arg(
79 radius).arg(planeMethod).arg(nClosePlanes).arg(input->getDimensions()[2]).arg(nStarts));
82 if (!
mAlgorithm->initCL(kernel, nClosePlanes, input->getDimensions()[2], method, planeMethod, nStarts, newnessWeight, brightnessWeight))
85 bool ret =
mAlgorithm->reconstruct(input, outputData, radius, nClosePlanes);
93 for (std::vector<QString>::iterator it =
mMethods.begin(); it !=
mMethods.end(); ++it)
119 QString method = *it;
123 methods[0], methods, root);
Abstract interface for reconstruction algorithm.
virtual bool reconstruct(ProcessedUSInputDataPtr input, vtkImageDataPtr outputData, QDomElement settings)
VNNclAlgorithmPtr mAlgorithm
Utility class for describing a bounded numeric range.
virtual StringPropertyPtr getMethodOption(QDomElement root)
virtual QString getName() const
virtual DoublePropertyPtr getNewnessWeightOption(QDomElement root)
virtual DoublePropertyPtr getNStartsOption(QDomElement root)
boost::shared_ptr< class StringProperty > StringPropertyPtr
virtual std::vector< PropertyPtr > getSettings(QDomElement root)
virtual DoublePropertyPtr getRadiusOption(QDomElement root)
double getKernelExecutionTime()
std::vector< QString > mPlaneMethods
virtual ~VNNclReconstructionMethodService()
static QString findConfigFilePath(QString fileName, QString pathRelativeToConfigRoot, QString alternativeAbsolutePath="")
Settings * settings()
Shortcut for accessing the settings instance.
static StringPropertyPtr initialize(const QString &uid, QString name, QString help, QString value, QStringList range, QDomNode root=QDomNode())
std::vector< QString > mMethods
boost::shared_ptr< class DoubleProperty > DoublePropertyPtr
VNNclReconstructionMethodService(ctkPluginContext *context)
static DoublePropertyPtr initialize(const QString &uid, QString name, QString help, double value, DoubleRange range, int decimals, QDomNode root=QDomNode())
virtual StringPropertyPtr getPlaneMethodOption(QDomElement root)
boost::shared_ptr< class ProcessedUSInputData > ProcessedUSInputDataPtr
boost::shared_ptr< VNNclAlgorithm > VNNclAlgorithmPtr
virtual DoublePropertyPtr getMaxPlanesOption(QDomElement root)
virtual int getMethodID(QDomElement root)
virtual DoublePropertyPtr getBrightnessWeightOption(QDomElement root)
virtual int getPlaneMethodID(QDomElement root)
Namespace for all CustusX production code.