SMILX
1.01
|
Members for operating on models with images, requires ITK. More...
Functions | |
template<typename TImage > | |
void | milx::DeformableModel::ApplyOrientation (itk::SmartPointer< TImage > image, const bool applyOrigin=true, const bool flipY=false) |
Apply the orientation of an image to a model. More... | |
template<typename TImage > | |
itk::SmartPointer< TImage > | milx::DeformableModel::VoxeliseAsITKImage (const unsigned char insideValue, double *spacing, double *bounds=NULL, const size_t padVoxels=1) |
Convert a model to voxelised (imaging) data. More... | |
template<typename MeshType > | |
itk::SmartPointer< MeshType > | milx::DeformableModel::ConvertVTKPolyDataToITKMesh () |
Convert the current vtkPolyData to an itk::Mesh. | |
template<typename MeshType > | |
void | milx::DeformableModel::ConvertITKMeshToVTKPolyData (itk::SmartPointer< MeshType > mesh) |
Convert an itk::Mesh to the current vtkPolyData. | |
Members for operating on models with images, requires ITK.
void milx::DeformableModel::ApplyOrientation | ( | itk::SmartPointer< TImage > | image, |
const bool | applyOrigin = true , |
||
const bool | flipY = false |
||
) |
Apply the orientation of an image to a model.
This is useful sometimes when operations such as the marching cubes strips orientation from its result. flipY is needed if a conversion is made between ITK and VTK.
Get orientation and origin
Definition at line 261 of file milxDeformableModel.h.
itk::SmartPointer< TImage > milx::DeformableModel::VoxeliseAsITKImage | ( | const unsigned char | insideValue, |
double * | spacing, | ||
double * | bounds = NULL , |
||
const size_t | padVoxels = 1 |
||
) |
Convert a model to voxelised (imaging) data.
Spacing is a length 3 array, bounds in a length 6 array (leave NULL to use output of GetBounds()) padVoxels is the number of pixels to pad the voxelised surface by. This is useful sometimes when operations such as distance maps is needed.
Definition at line 173 of file milxDeformableModel.h.