33 #ifndef CXPNNRECONSTRUCTIONMETHODSERVICE_H_
34 #define CXPNNRECONSTRUCTIONMETHODSERVICE_H_
37 #include "org_custusx_usreconstruction_pnn_Export.h"
39 class ctkPluginContext;
64 virtual QString getName()
const;
66 virtual std::vector<PropertyPtr> getSettings(QDomElement root);
72 bool validPixel(
int x,
int y,
const Eigen::Array3i& dims,
unsigned char* rawPointer)
74 return (x >= 0) && (x < dims[0]) && (y >= 0) && (y < dims[1]) && (rawPointer[x + y * dims[0]] != 0);
77 bool validVoxel(
int x,
int y,
int z,
const int* dims)
79 return (x >= 0) && (x < dims[0]) && (y >= 0) && (y < dims[1]) && (z >= 0) && (z < dims[2]);
84 void fillHole(
unsigned char *inputPointer,
unsigned char *outputPointer,
int x,
int y,
int z,
const Eigen::Array3i& dim,
int interpolationSteps);
static ReconstructionMethodService * create(ctkPluginContext *context)
Abstract interface for reconstruction algorithm.
boost::shared_ptr< class Image > ImagePtr
Settings * settings()
Shortcut for accessing the settings instance.
boost::shared_ptr< class DoubleProperty > DoublePropertyPtr
boost::shared_ptr< class ProcessedUSInputData > ProcessedUSInputDataPtr