# map_output

Python API: `depthai_nodes.node.parsers.utils.map_output`

## Functions

### compute_map_output

```python
def compute_map_output(map_tensor: np.ndarray) -> np.ndarray:
```

Remove singleton batch or channel axes from a numeric map.

Parameters

 * `map_tensor` (`np.ndarray`): HW map, a map with leading singleton axes, or an HW1 map.

Returns

 * `np.ndarray`: A two-dimensional array. Values and dtype are preserved; the result may share input storage.

Raises

 * `ValueError`: If the input cannot be reduced to an HW map through supported singleton axes.
