Methods
cleanBuffer(imageBuffer)
Cleans buffer of debug lines before calculations.
Parameters:
| Name | Type | Description |
|---|---|---|
imageBuffer | TypedArray | The image buffer to clean. |
drawDebugLines(imageBuffer, unitVectors, sizes, spacing, borders, maxDiameters)
Renders debug lines for contours and diameters. The pixel value of the debug lines are the segmentation label of the segment + 128.
Parameters:
| Name | Type | Description |
|---|---|---|
imageBuffer | TypedArray | The image buffer to draw debug lines on. |
unitVectors | Array.<number> | The unit vectors for index to offset conversion. |
sizes | Array.<number> | The image dimensions. |
spacing | Array.<number> | The pixel spacing of the image. |
borders | TypedArray | The buffer containing the border pixel arrays. |
maxDiameters | object | The dictionary of calculated diameters. |