MCPcopy Index your code
hub / github.com/tensorflow/tfjs-models / getSegmentation

Function getSegmentation

shared/calculators/render_util_test.ts:49–54  ·  view source on GitHub ↗
(imageData: ImageData)

Source from the content-addressed store, hash-verified

47}
48
49function getSegmentation(imageData: ImageData): Segmentation {
50 return {
51 maskValueToLabel: (maskValue: number) => `${maskValue}`,
52 mask: new ImageDataMask(imageData),
53 };
54}
55
56const WIDTH = 1049;
57const HEIGHT = 861;

Callers 2

getBinarySegmentationFunction · 0.70
getColoredSegmentationFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected