# numpy_ops

Python API: `depthai_nodes.algorithms.measure_anything.implementation.numpy_ops`

Vectorized NumPy/OpenCV operations; no custom native library or baseline imports.

## Functions

| Name | Description |
| --- | --- |
| [`accumulate_grids`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/algorithms/measure_anything/implementation/numpy_ops.md#numpy_ops-Functions-accumulate_grids) |  |
| [`centered_hull_candidates`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/algorithms/measure_anything/implementation/numpy_ops.md#numpy_ops-Functions-centered_hull_candidates) |  |
| [`cross_extrema`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/algorithms/measure_anything/implementation/numpy_ops.md#numpy_ops-Functions-cross_extrema) |  |
| [`height_mask`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/algorithms/measure_anything/implementation/numpy_ops.md#numpy_ops-Functions-height_mask) |  |
| [`height_maxima`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/algorithms/measure_anything/implementation/numpy_ops.md#numpy_ops-Functions-height_maxima) |  |
| [`project_cells`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/algorithms/measure_anything/implementation/numpy_ops.md#numpy_ops-Functions-project_cells) |  |
| [`supported_footprint`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/algorithms/measure_anything/implementation/numpy_ops.md#numpy_ops-Functions-supported_footprint) |  |
| [`threshold_heights`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/algorithms/measure_anything/implementation/numpy_ops.md#numpy_ops-Functions-threshold_heights) | Fast float32 classification with conservative float64 boundary refinement. |
| [`voxel_centroids`](https://docs.luxonis.com/software-v3/ai-inference/inference/depthai-nodes/depthai-nodes-api-reference/algorithms/measure_anything/implementation/numpy_ops.md#numpy_ops-Functions-voxel_centroids) |  |

### function `accumulate_grids`

```python
def accumulate_grids(projected, labels, label_count, foreground, shape, included=None)
```

### function `centered_hull_candidates`

```python
def centered_hull_candidates(xy, origin)
```

### function `cross_extrema`

```python
def cross_extrema(xy, axis, cell)
```

### function `height_mask`

```python
def height_mask(scene, low)
```

### function `height_maxima`

```python
def height_maxima(xy, heights, cell, min_height)
```

### function `project_cells`

```python
def project_cells(scene, view, cell, active=None, stride=1, prepared=None)
```

### function `supported_footprint`

```python
def supported_footprint(xyz, membership, keep, axes, normal, offset)
```

### function `threshold_heights`

```python
def threshold_heights(scene, thresholds)
```

Fast float32 classification with conservative float64 boundary refinement.

Values are used only for comparisons with the supplied thresholds. The bound exceeds the accumulated float32
coefficient/product/addition error. Measurement computes its own full-precision coordinates independently.

### function `voxel_centroids`

```python
def voxel_centroids(xyz, size, rows=None)
```
