# denormalize

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

## Functions

| Name | Description |
| --- | --- |
| [`unnormalize_image`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/node/parsers/utils/denormalize.md#denormalize-Functions-unnormalize_image) | Un-normalize an image tensor by scaling it to the [0, 255] range. |

### function `unnormalize_image`

```python
def unnormalize_image(image, normalize=True)
```

Un-normalize an image tensor by scaling it to the [0, 255] range.

Args

| Name | Type | Description | Default |
| --- | --- | --- | --- |
| `image` | `np.ndarray` | The normalized image tensor of shape (H, W, C) or (C, H, W). | required |
| `normalize` | `bool` | Whether to normalize the image tensor. Defaults to True. | `True` |

Returns

| Type | Description |
| --- | --- |
| `np.ndarray` | The un-normalized image. |
