---
title: "DepthMap"
sidebar_label: "DepthMap"
description: "Kotlin binding reference: DepthMap."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.modelverse](../index.md)/[DepthMap](index.md)

# DepthMap

[common]\
data class [DepthMap](index.md)(val width: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html), val height: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html), val values: [FloatArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html), val metric: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html), val min: [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html), val max: [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html))

A depth value per pixel of the input picture, row by row ([width](width.md) × [height](height.md) values): meters when [metric](metric.md), else relative depth where a larger value is closer; [min](min.md) and [max](max.md) are the map's own range.

## Constructors

| | |
|---|---|
| [DepthMap](DepthMap.md) | [common]<br>constructor(width: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html), height: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html), values: [FloatArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html), metric: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html), min: [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html), max: [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)) |

## Properties

| Name | Summary |
|---|---|
| [height](height.md) | [common]<br>val [height](height.md): [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) |
| [max](max.md) | [common]<br>val [max](max.md): [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) |
| [metric](metric.md) | [common]<br>val [metric](metric.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) |
| [min](min.md) | [common]<br>val [min](min.md): [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) |
| [values](values.md) | [common]<br>val [values](values.md): [FloatArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html) |
| [width](width.md) | [common]<br>val [width](width.md): [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) |