LabelingThread

Labeling thread.

Constructor

new LabelingThread()

Classes

LabelingThread

Methods

ondone(_event)

Handle a completed labeling. Default behavior is do nothing, this is meant to be overridden.

Parameters:
NameTypeDescription
_eventobject

The work item event fired when a labeling calculation is completed. Event.data should contain a 'labels' item.

run(imageBuffer, geometry)

Trigger a labels recalculation.

Parameters:
NameTypeDescription
imageBufferTypedArray

The buffer to label.

geometryGeometry

The image geometry.