CustusX  2023.01.05-dev+develop.0da12
An IGT application
cx::VNNclReconstructionMethodService Class Reference

#include <cxVNNclReconstructionMethodService.h>

Inheritance diagram for cx::VNNclReconstructionMethodService:
cx::ReconstructionMethodService

Public Member Functions

 VNNclReconstructionMethodService (ctkPluginContext *context)
 
virtual ~VNNclReconstructionMethodService ()
 
void enableProfiling ()
 
double getKernelExecutionTime ()
 
virtual QString getName () const
 
virtual std::vector< PropertyPtrgetSettings (QDomElement root)
 
virtual bool reconstruct (ProcessedUSInputDataPtr input, vtkImageDataPtr outputData, QDomElement settings)
 
virtual StringPropertyPtr getMethodOption (QDomElement root)
 
virtual DoublePropertyPtr getRadiusOption (QDomElement root)
 
virtual StringPropertyPtr getPlaneMethodOption (QDomElement root)
 
virtual DoublePropertyPtr getMaxPlanesOption (QDomElement root)
 
virtual DoublePropertyPtr getNStartsOption (QDomElement root)
 
virtual DoublePropertyPtr getBrightnessWeightOption (QDomElement root)
 
virtual DoublePropertyPtr getNewnessWeightOption (QDomElement root)
 
- Public Member Functions inherited from cx::ReconstructionMethodService
virtual ~ReconstructionMethodService ()
 

Protected Member Functions

virtual int getMethodID (QDomElement root)
 
virtual int getPlaneMethodID (QDomElement root)
 

Protected Attributes

std::vector< QString > mMethods
 
std::vector< QString > mPlaneMethods
 
VNNclAlgorithmPtr mAlgorithm
 

Detailed Description

Original author Tord Øygard Implementation of Tord Øygards reconstruction service.

Date
2014-05-09
Author
Janne Beate Bakeng

Definition at line 39 of file cxVNNclReconstructionMethodService.h.

Constructor & Destructor Documentation

cx::VNNclReconstructionMethodService::VNNclReconstructionMethodService ( ctkPluginContext *  context)

Definition at line 20 of file cxVNNclReconstructionMethodService.cpp.

cx::VNNclReconstructionMethodService::~VNNclReconstructionMethodService ( )
virtual

Definition at line 33 of file cxVNNclReconstructionMethodService.cpp.

Member Function Documentation

void cx::VNNclReconstructionMethodService::enableProfiling ( )

Turn OpenCL profiling on

Definition at line 37 of file cxVNNclReconstructionMethodService.cpp.

DoublePropertyPtr cx::VNNclReconstructionMethodService::getBrightnessWeightOption ( QDomElement  root)
virtual

Make brightness weight(anisotropic method only) option for the UI

Parameters
rootThe root of the configuration ui
Returns
Number of multistart search starts option

Definition at line 108 of file cxVNNclReconstructionMethodService.cpp.

double cx::VNNclReconstructionMethodService::getKernelExecutionTime ( )

Definition at line 42 of file cxVNNclReconstructionMethodService.cpp.

DoublePropertyPtr cx::VNNclReconstructionMethodService::getMaxPlanesOption ( QDomElement  root)
virtual

Make max planes option for the UI

Parameters
rootThe root of the configuration ui
Returns
List of available methods - with the selected one available by ->getValue()

Definition at line 132 of file cxVNNclReconstructionMethodService.cpp.

int cx::VNNclReconstructionMethodService::getMethodID ( QDomElement  root)
protectedvirtual

Retrieve the method ID from the settings

Parameters
rootThe algorithm settings from the UI
Returns
the method ID to use in the OpenCL kernel

Definition at line 144 of file cxVNNclReconstructionMethodService.cpp.

StringPropertyPtr cx::VNNclReconstructionMethodService::getMethodOption ( QDomElement  root)
virtual

Make method option for the UI

Parameters
rootThe root of the configuration ui
Returns
List of available methods - with the selected one available by ->getValue()

Definition at line 90 of file cxVNNclReconstructionMethodService.cpp.

QString cx::VNNclReconstructionMethodService::getName ( ) const
virtual

Return the name of the algorithm

Implements cx::ReconstructionMethodService.

Definition at line 47 of file cxVNNclReconstructionMethodService.cpp.

DoublePropertyPtr cx::VNNclReconstructionMethodService::getNewnessWeightOption ( QDomElement  root)
virtual

Make Newness weight(anisotropic method only) option for the UI

Parameters
rootThe root of the configuration ui
Returns
Number of multistart search starts option

Definition at line 102 of file cxVNNclReconstructionMethodService.cpp.

DoublePropertyPtr cx::VNNclReconstructionMethodService::getNStartsOption ( QDomElement  root)
virtual

Make number of starts for multistart search option for the UI

Parameters
rootThe root of the configuration ui
Returns
Number of multistart search starts option

Definition at line 138 of file cxVNNclReconstructionMethodService.cpp.

int cx::VNNclReconstructionMethodService::getPlaneMethodID ( QDomElement  root)
protectedvirtual

Retrieve the plane method ID from the settings

Parameters
rootThe algorithm settings from the UI
Returns
the plane method ID to use in the OpenCL kernel

Definition at line 149 of file cxVNNclReconstructionMethodService.cpp.

StringPropertyPtr cx::VNNclReconstructionMethodService::getPlaneMethodOption ( QDomElement  root)
virtual

Make plane method option for the UI

Parameters
rootThe root of the configuration ui
Returns
List of available methods - with the selected one available by ->getValue()

Definition at line 114 of file cxVNNclReconstructionMethodService.cpp.

DoublePropertyPtr cx::VNNclReconstructionMethodService::getRadiusOption ( QDomElement  root)
virtual

Make radius option for the UI

Parameters
rootThe root of the configuration ui
Returns
Radius data adapter - with selected value available by ->getValue()

Definition at line 126 of file cxVNNclReconstructionMethodService.cpp.

std::vector< PropertyPtr > cx::VNNclReconstructionMethodService::getSettings ( QDomElement  root)
virtual

Return a set of Properties describing the algorithm settings.

Parameters
rootThe root element of the settings for this algorithm
Returns
A vector containing all the settings for this algorithm

Implements cx::ReconstructionMethodService.

Definition at line 52 of file cxVNNclReconstructionMethodService.cpp.

bool cx::VNNclReconstructionMethodService::reconstruct ( ProcessedUSInputDataPtr  input,
vtkImageDataPtr  outputData,
QDomElement  settings 
)
virtual

Reconstruction entry point.

Parameters
inputThe processed input US data
outputDataThe volume will be stored here
settingsThe selected algorithms settings

Implements cx::ReconstructionMethodService.

Definition at line 66 of file cxVNNclReconstructionMethodService.cpp.

Member Data Documentation

VNNclAlgorithmPtr cx::VNNclReconstructionMethodService::mAlgorithm
protected

Definition at line 146 of file cxVNNclReconstructionMethodService.h.

std::vector<QString> cx::VNNclReconstructionMethodService::mMethods
protected

Definition at line 143 of file cxVNNclReconstructionMethodService.h.

std::vector<QString> cx::VNNclReconstructionMethodService::mPlaneMethods
protected

Definition at line 144 of file cxVNNclReconstructionMethodService.h.


The documentation for this class was generated from the following files: