ddd_pylib.labels_manip.

KillBorderLabelsOperator#

class ddd_pylib.labels_manip.KillBorderLabelsOperator[source]#

Bases: ReplaceValuesOperator

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. This operator works with tracked labels: if a label is removed at time t, it will also be removed at all other time points.

Methods

static defaultBorderAxes()[source]#
Return type:

List[str]

static defaultBorderSize()[source]#
Return type:

int

getPrefix()[source]#

Prefix added to the input image name to generate the output image name.

setBorderAxes(axes)[source]#
Parameters:

axes (List[str])

setBorderSize(size)[source]#
Parameters:

size (int)