ddd_pylib.points_manip.

RemoveBackgroundPointsOperator#

class ddd_pylib.points_manip.RemoveBackgroundPointsOperator[source]#

Bases: PointsOperator

Remove points that are not in the foreground of the image. The foreground is defined by a mask image, where the foreground pixels have a value of 1 and the background pixels have a value of 0. The operator will remove all points that are in the background of the mask image.

Methods

static defaultBackgroundLabel()[source]#
getBackgroundLabel()[source]#

Return the background label value

getLabelsImage()[source]#

Return the labels image as a DataArray

getPrefix()[source]#

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

sanityCheck()[source]#
setBackgroundLabel(label)[source]#

Set the background label value

Parameters:

label – The background label value

setLabelsImage(labelsImage)[source]#

Take a labels image and store it in the _labelsImage attribute

Parameters:

labelsImage – A labels image as a DataArray