12 #ifndef CXPNNRECONSTRUCTIONMETHODSERVICE_H_
13 #define CXPNNRECONSTRUCTIONMETHODSERVICE_H_
16 #include "org_custusx_usreconstruction_pnn_Export.h"
18 class ctkPluginContext;
41 virtual QString getName()
const;
43 virtual std::vector<PropertyPtr> getSettings(QDomElement root);
49 bool validPixel(
int x,
int y,
const Eigen::Array3i& dims,
unsigned char* rawPointer)
51 return (x >= 0) && (x < dims[0]) && (y >= 0) && (y < dims[1]) && (rawPointer[x + y * dims[0]] != 0);
54 bool validVoxel(
int x,
int y,
int z,
const int* dims)
56 return (x >= 0) && (x < dims[0]) && (y >= 0) && (y < dims[1]) && (z >= 0) && (z < dims[2]);
61 void fillHole(
unsigned char *inputPointer,
unsigned char *outputPointer,
int x,
int y,
int z,
const Eigen::Array3i& dim,
int interpolationSteps);