Skip to content

Reconstruction

More...

Public Types

Name
typedef itk::GradientImageFilter< ImageType, PixelType > GradientFilterType
typedef itk::GradientMagnitudeImageFilter< ImageType, ImageType > GradientMagnitudeFilterType
typedef itk::Image< itk::CovariantVector< PixelType, 3 >, 3 > GradientImageType
typedef itk::ImageRegionIterator< GradientImageType > GradientImageIteratorType
typedef itk::ImageRegionIterator< ImageType > ImageIteratorType
typedef itk::ImageFileWriter< ImageType > WriterType
typedef itk::ImageToVTKImageFilter< ImageType > ITK2VTKConnectorType
typedef itk::AddImageFilter< ImageType, ImageType > AddImageFilterType
typedef itk::ResampleImageFilter< ImageType, ImageType > ResampleFilterType
typedef TInterpolatorType< ImageType, TCoordRep > InterpolatorType
typedef itk::MultiplyImageFilter< ImageType, ImageType, ImageType > MultiplyByConstantImageFilterType
typedef itk::ImageDuplicator< ImageType > DuplicatorType
typedef TTransformType< TCoordRep, 3 > TransformType
typedef itk::Point< TCoordRep, 3 > PointType
typedef std::vector< PointType > PointArrayType
typedef TransformType::PointSetType PointSetType
typedef PointSetType::PointIdentifier PointIdType

Public Functions

Name
Reconstruction(std::string out_prefix ="", float decimationPercent =0.3f, double angleThresh =45.0f, size_t numClusters =5, bool fixWinding =true, bool doLaplacianSmoothingBeforeDecimation =true, bool doLaplacianSmoothingAfterDecimation =true, float smoothingLambda =0.5f, int smoothingIterations =1, bool usePairwiseNormalsDifferencesForGoodBad =false)
~Reconstruction()
vtkSmartPointer< vtkPolyData > getDenseMean(std::vector< PointArrayType > local_pts =std::vector< PointArrayType >(), std::vector< PointArrayType > global_pts =std::vector< PointArrayType >(), std::vector< std::string > distance_transform =std::vector< std::string >())
void reset()
void setDecimation(float dec)
void setNumClusters(int num)
void setMaxAngle(double angleDegrees)
void setFixWinding(bool fixWinding)
void setLaplacianSmoothingBeforeDecimation(bool doLaplacianSmoothingBeforeDecimation)
void setLaplacianSmoothingAfterDecimation(bool doLaplacianSmoothingAfterDecimation)
void setSmoothingLambda(float smoothingLambda)
void setSmoothingIterations(int smoothingIterations)
void setOutputEnabled(bool enabled)
void setMeanBeforeWarpEnabled(bool enabled)
vtkSmartPointer< vtkPolyData > getMesh(PointArrayType local_pts)
void readMeanInfo(std::string dense, std::string sparse, std::string goodPoints)
bool sparseDone()
bool denseDone()
void writeMeanInfo(std::string nameBase)
vtkSmartPointer< vtkPoints > SparseMean()
vtkSmartPointer< vtkPolyData > DenseMean()
std::vector< bool > GoodPoints()
std::string OutPrefix()
void setOutPrefix(std::string out_prefix)
std::vector< PointArrayType > computeSparseMean(std::vector< PointArrayType > local_pts, itk::Point< TCoordRep > & common_center, bool do_procrustes =true, bool do_procrustes_scaling =false)
void setOrigin(typename ImageType::PointType origin)
void EnablePairwiseNormalsDifferencesForGoodBad()
void DisablePairwiseNormalsDifferencesForGoodBad()

Detailed Description

template <template< typename TCoordRep, unsigned > class TTransformType =itk::CompactlySupportedRBFSparseKernelTransform,
template< typename ImageType, typename TCoordRep > class TInterpolatorType =itk::LinearInterpolateImageFunction,
typename TCoordRep  =double,
typename PixelType  =float,
typename ImageType  =itk::Image<PixelType, 3>>
class Reconstruction;

Public Types Documentation

typedef GradientFilterType

typedef itk::GradientImageFilter<ImageType, PixelType> Reconstruction< TTransformType, TInterpolatorType, TCoordRep, PixelType, ImageType >::GradientFilterType;

typedef GradientMagnitudeFilterType

typedef itk::GradientMagnitudeImageFilter<ImageType, ImageType > Reconstruction< TTransformType, TInterpolatorType, TCoordRep, PixelType, ImageType >::GradientMagnitudeFilterType;

typedef GradientImageType

typedef itk::Image< itk::CovariantVector< PixelType, 3 >, 3 > Reconstruction< TTransformType, TInterpolatorType, TCoordRep, PixelType, ImageType >::GradientImageType;

typedef GradientImageIteratorType

typedef itk::ImageRegionIterator< GradientImageType > Reconstruction< TTransformType, TInterpolatorType, TCoordRep, PixelType, ImageType >::GradientImageIteratorType;

typedef ImageIteratorType

typedef itk::ImageRegionIterator< ImageType > Reconstruction< TTransformType, TInterpolatorType, TCoordRep, PixelType, ImageType >::ImageIteratorType;

typedef WriterType

typedef itk::ImageFileWriter< ImageType > Reconstruction< TTransformType, TInterpolatorType, TCoordRep, PixelType, ImageType >::WriterType;

typedef ITK2VTKConnectorType

typedef itk::ImageToVTKImageFilter<ImageType> Reconstruction< TTransformType, TInterpolatorType, TCoordRep, PixelType, ImageType >::ITK2VTKConnectorType;

typedef AddImageFilterType

typedef itk::AddImageFilter<ImageType, ImageType > Reconstruction< TTransformType, TInterpolatorType, TCoordRep, PixelType, ImageType >::AddImageFilterType;

typedef ResampleFilterType

typedef itk::ResampleImageFilter<ImageType, ImageType > Reconstruction< TTransformType, TInterpolatorType, TCoordRep, PixelType, ImageType >::ResampleFilterType;

typedef InterpolatorType

typedef TInterpolatorType< ImageType, TCoordRep > Reconstruction< TTransformType, TInterpolatorType, TCoordRep, PixelType, ImageType >::InterpolatorType;

typedef MultiplyByConstantImageFilterType

typedef itk::MultiplyImageFilter<ImageType, ImageType, ImageType> Reconstruction< TTransformType, TInterpolatorType, TCoordRep, PixelType, ImageType >::MultiplyByConstantImageFilterType;

typedef DuplicatorType

typedef itk::ImageDuplicator< ImageType > Reconstruction< TTransformType, TInterpolatorType, TCoordRep, PixelType, ImageType >::DuplicatorType;

typedef TransformType

typedef TTransformType< TCoordRep, 3 > Reconstruction< TTransformType, TInterpolatorType, TCoordRep, PixelType, ImageType >::TransformType;

typedef PointType

typedef itk::Point< TCoordRep, 3 > Reconstruction< TTransformType, TInterpolatorType, TCoordRep, PixelType, ImageType >::PointType;

typedef PointArrayType

typedef std::vector< PointType > Reconstruction< TTransformType, TInterpolatorType, TCoordRep, PixelType, ImageType >::PointArrayType;

typedef PointSetType

typedef TransformType::PointSetType Reconstruction< TTransformType, TInterpolatorType, TCoordRep, PixelType, ImageType >::PointSetType;

typedef PointIdType

typedef PointSetType::PointIdentifier Reconstruction< TTransformType, TInterpolatorType, TCoordRep, PixelType, ImageType >::PointIdType;

Public Functions Documentation

function Reconstruction

Reconstruction(
    std::string out_prefix ="",
    float decimationPercent =0.3f,
    double angleThresh =45.0f,
    size_t numClusters =5,
    bool fixWinding =true,
    bool doLaplacianSmoothingBeforeDecimation =true,
    bool doLaplacianSmoothingAfterDecimation =true,
    float smoothingLambda =0.5f,
    int smoothingIterations =1,
    bool usePairwiseNormalsDifferencesForGoodBad =false
)

function ~Reconstruction

~Reconstruction()

function getDenseMean

vtkSmartPointer< vtkPolyData > getDenseMean(
    std::vector< PointArrayType > local_pts =std::vector< PointArrayType >(),
    std::vector< PointArrayType > global_pts =std::vector< PointArrayType >(),
    std::vector< std::string > distance_transform =std::vector< std::string >()
)

function reset

void reset()

function setDecimation

void setDecimation(
    float dec
)

function setNumClusters

void setNumClusters(
    int num
)

function setMaxAngle

void setMaxAngle(
    double angleDegrees
)

function setFixWinding

void setFixWinding(
    bool fixWinding
)

function setLaplacianSmoothingBeforeDecimation

void setLaplacianSmoothingBeforeDecimation(
    bool doLaplacianSmoothingBeforeDecimation
)

function setLaplacianSmoothingAfterDecimation

void setLaplacianSmoothingAfterDecimation(
    bool doLaplacianSmoothingAfterDecimation
)

function setSmoothingLambda

void setSmoothingLambda(
    float smoothingLambda
)

function setSmoothingIterations

void setSmoothingIterations(
    int smoothingIterations
)

function setOutputEnabled

void setOutputEnabled(
    bool enabled
)

function setMeanBeforeWarpEnabled

void setMeanBeforeWarpEnabled(
    bool enabled
)

Set if the mean DT before warp is enabled or not Disabling this allows Reconstruction to use DTs that are of different sizes and with different origins

function getMesh

vtkSmartPointer< vtkPolyData > getMesh(
    PointArrayType local_pts
)

function readMeanInfo

void readMeanInfo(
    std::string dense,
    std::string sparse,
    std::string goodPoints
)

function sparseDone

bool sparseDone()

function denseDone

bool denseDone()

function writeMeanInfo

void writeMeanInfo(
    std::string nameBase
)

function SparseMean

inline vtkSmartPointer< vtkPoints > SparseMean()

function DenseMean

inline vtkSmartPointer< vtkPolyData > DenseMean()

function GoodPoints

inline std::vector< bool > GoodPoints()

function OutPrefix

inline std::string OutPrefix()

function setOutPrefix

inline void setOutPrefix(
    std::string out_prefix
)

function computeSparseMean

std::vector< PointArrayType > computeSparseMean(
    std::vector< PointArrayType > local_pts,
    itk::Point< TCoordRep > & common_center,
    bool do_procrustes =true,
    bool do_procrustes_scaling =false
)

function setOrigin

inline void setOrigin(
    typename ImageType::PointType origin
)

function EnablePairwiseNormalsDifferencesForGoodBad

inline void EnablePairwiseNormalsDifferencesForGoodBad()

function DisablePairwiseNormalsDifferencesForGoodBad

inline void DisablePairwiseNormalsDifferencesForGoodBad()

Updated on 2022-07-23 at 16:40:07 -0600