MCPcopy Index your code
hub / github.com/tensorflow/tfjs / decodeBmp

Function decodeBmp

tfjs-node/src/image.ts:110–115  ·  view source on GitHub ↗
(contents: Uint8Array, channels = 0)

Source from the content-addressed store, hash-verified

108 * @doc {heading: 'Operations', subheading: 'Images', namespace: 'node'}
109 */
110export function decodeBmp(contents: Uint8Array, channels = 0): Tensor3D {
111 ensureTensorflowBackend();
112 return tidy(() => {
113 return nodeBackend().decodeBmp(contents, channels).toInt();
114 });
115}
116
117/**
118 * Decode the frame(s) of a GIF-encoded image to a 4D Tensor of dtype `int32`.

Callers 1

decodeImageFunction · 0.85

Calls 5

ensureTensorflowBackendFunction · 0.90
tidyFunction · 0.90
nodeBackendFunction · 0.90
toIntMethod · 0.80
decodeBmpMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…