Phoc.utils_compute_scale
Description: Reference for Phoc.utils_compute_scale

### Function

# Phocutils_compute_scale

#### Declaration [src]

    float
    phoc_utils_compute_scale (
      int32_t phys_width,
      int32_t phys_height,
      int32_t width,
      int32_t height
    )

#### Description [src]

Compute a suitable output scale based on the physical size and resolution.

#### Parameters

`phys_width`

  Type: `int32_t`

  The physical width.

`phys_height`

  Type: `int32_t`

  The physical height.

`width`

  Type: `int32_t`

  The width in pixels.

`height`

  Type: `int32_t`

  The height in pixels.

#### Return value

Type: `float`

The output scale.