fast::MeshToSegmentation class

Converts a line (2D) or triangle (3D) mesh to a segmentation image.

To set the output size of segmentation image, either supply an image to input port 1, or manually specify the size.

Inputs:

  • 0: Mesh to convert
  • 1: (Optional) Image to get size of output from

Outputs:

  • 0: Image - Segmentation image

Base classes

class ProcessObject
Abstract base class for all process objects.

Public functions

auto create(Vector3i size, Vector3f spacing) void setOutputImageResolution(uint x -> std::shared_ptr<MeshToSegmentation>
Create instance.

Public variables

uint y
uint uint z

Private functions

void execute() virtual

Function documentation

std::shared_ptr<MeshToSegmentation> fast::MeshToSegmentation::create(Vector3i size, Vector3f spacing) void setOutputImageResolution(uint x

Create instance.

Parameters
size Size of segmentation image to output. If not set it will use the same size as the image given to input 1 (optional).
spacing
Returns instance Set output image resolution in voxels