---
title: "Undistort Image"
method: POST
path: "/images/undistort"
tags: ["images"]
---

# Undistort Image

`POST /images/undistort`

## Request

- Base URL: `https://api.rmfg.com`
- URL: `https://api.rmfg.com/images/undistort`
- Auth: none declared

Undistort an image using camera calibration parameters.

Args:
    image: The image file to undistort
    calibration: Camera calibration file containing camera matrix and distortion coefficients
    alpha: Free scaling parameter (0=crop to valid pixels, 1=keep all pixels)

Returns:
    The undistorted image

## Query parameters

- `alpha` number

## Request body `multipart/form-data`

- BodyUndistortImageImagesUndistortPost
  - `image` string, binary, required: Image file to undistort
  - `calibration` string, binary, required: Camera calibration file (YAML/XML/NPZ format)

## Response `200`

Successful Response

- unknown

## Other responses

- `404`: Not found
- `422`: Validation Error

---

[API](https://skmtc.dev/rmfg/apis/rmfg-manufacturing-api.md) - [All operations](https://skmtc.dev/rmfg/apis/rmfg-manufacturing-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rmfg/apis/rmfg-manufacturing-api/revisions/078f984358b9?raw)
