Generates a PerPixelMap by projecting a mesh onto an image plane.
void setUseInverseTransform(bool useInverse)
Invert the image transform prior to use.
CompositeTransform::Pointer tfm_
auto compute() -> PerPixelMap
Project mesh and compute PerPixelMap with given settings.
SampleMode
Target image space sampling method.
@ Rate
Samples per unit interval in mesh space determine PPM dimensions.
itk::Point< double, 2 > Point
void setTextureDimensions(int width, int height)
Set the texture image dimensions.
void setPPMDimensions(int width, int height)
Set the PPM dimensions.
void setUseFirstIntersection(bool useFirstIntersection)
Use the first mesh intersection rather than the last.
void setSampleRate(double rate)
Set the X and Y sample rate for the PPM.
void setMesh(const ITKMesh::Pointer &inputMesh)
Set the input mesh.
void setSampleMode(SampleMode mode)
Set the PPM space sampling mode.
void setTransform(CompositeTransform::Pointer transform)
Set the image transform from mesh texture to target.
ITKMesh::Pointer inputMesh_
itk::CompositeTransform< double, 2 > CompositeTransform
bool useFirstIntersection_
Texturing and parameterization algorithms and utilities library.