ddd_pylib.labels_manip#

Operators

FilterLabelsPropertiesOperator

Takes a label map, a results table and a filters dictionnary, and apply filters on the label map by filtering the result table.

KillBorderLabelsOperator

Given a list of axes and a border thickness, this operator identifies all unique label values that touch the borders of the image along those axes and replaces them with 0.

LabelsPropertiesOperator

LabelsToPointsOperator

Takes a label map and transforms it into a list of points corresponding to the centroids of the labels.

ListBorderValuesOperator

Produces a DataFrame containing the unique label values found at the borders of an image along specified axes.

MergeLabelsOperator

RemapLabelsOperator

Takes a label map with non-contiguous label indices and remaps them so the new indices are contiguous.

RemoveLabelsOperator

Removes a list of labels from a label map by replacing them with 0.

ReplaceValuesOperator

Takes an image and a dictionary of values representing a LUT and replaces the values in the image according to this LUT.