(contents: Uint8Array, channels = 0)
| 108 | * @doc {heading: 'Operations', subheading: 'Images', namespace: 'node'} |
| 109 | */ |
| 110 | export 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`. |
no test coverage detected
searching dependent graphs…