fast::LabelModifier class

Change labels in a segmentation image.

Used to converting all pixels with label/intensity X to label/intensity Y

Base classes

class ProcessObject
Abstract base class for all process objects.

Constructors, destructors, conversion operators

LabelModifier() protected

Public functions

auto create(std::vector<uchar> oldLabels, std::vector<uchar> newLabels) -> std::shared_ptr<LabelModifier>
Create instance.
void setLabelChange(uchar oldLabel, uchar newLabel)
void loadAttributes() override

Protected functions

void execute() override

Protected variables

std::vector<uchar> m_labelChanges

Function documentation

std::shared_ptr<LabelModifier> fast::LabelModifier::create(std::vector<uchar> oldLabels, std::vector<uchar> newLabels)

Create instance.

Parameters
oldLabels A list of labels to change
newLabels A list of new labels for the labels specified in oldLabels