SMILX  1.01
Functions
Imaging Interactions

Members for operating on models interacting with images, requires ITK. More...

Functions

template<typename TImage >
static vtkSmartPointer< vtkFloatArray > milx::DeformableModel::SurfaceScalarsFromImage (vtkSmartPointer< vtkPolyData > surface, itk::SmartPointer< TImage > img, const bool absoluteValues)
 Returns the scalars of the mesh (float values per vertex) according to the values found within the image at corresponding pixel locations for each vertex. More...
 
template<typename TImage >
static void milx::DeformableModel::MarkSurfaceInsideImage (vtkSmartPointer< vtkPolyData > &surface, itk::SmartPointer< TImage > img, vtkFloatArray *weights, const float outsideValue=0.0)
 Mark existing surface with all parts outside the image as 'outsideValue' value. Inside will remain the same scalars if present, else will be marked as 1.0. Uses include weights for the missing data etc.
 

Detailed Description

Members for operating on models interacting with images, requires ITK.

Function Documentation

◆ SurfaceScalarsFromImage()

template<typename TImage >
vtkSmartPointer< vtkFloatArray > milx::DeformableModel::SurfaceScalarsFromImage ( vtkSmartPointer< vtkPolyData >  surface,
itk::SmartPointer< TImage >  img,
const bool  absoluteValues 
)
static

Returns the scalars of the mesh (float values per vertex) according to the values found within the image at corresponding pixel locations for each vertex.

Takes into account of image orientation etc.

Definition at line 295 of file milxDeformableModel.h.