# PERSPECTIVE\_TRANSFORM

| Configs          | Descriptions                                                                                                                                                                                                                                                                                                      |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| inputNames       | A list of names of the input fields to process. May be points, bounding boxes, images, or lists of these. If input names are not set, the fields of these types will be inferred automatically.                                                                                                                   |
| outputNames      | A list of names of the output field. If not set, the output has the same name as the input field.                                                                                                                                                                                                                 |
| sourcePointsName | List of 4 source points: top left, top right, bottom left, bottom right.                                                                                                                                                                                                                                          |
| targetPointsName | List of 4 target points: top left, top right, bottom left, bottom right.                                                                                                                                                                                                                                          |
| referenceImage   | When a `referenceImage` is provided, the transform will be adjusted to ensure the entire transformed image fits into the output image (up to `4096x4096`). Can also reference a list of images, in which case, only the first image is used as the reference.The adjustment is applied to all inputs of the step. |
| referenceWidth   | When a reference width and height are provided, the transform will be adjusted to make sure the entire area fits into the output image (up to `4096x4096`). The adjustment is applied to all inputs of the step.                                                                                                  |
| referenceHeight  | When a reference width and height are provided, the transform will be adjusted to make sure the entire area fits into the output image (up to `4096x4096`). The adjustment is applied to all inputs of the step.                                                                                                  |
| sourcePoints     | Takes exactly 4 source points: top left, top right, bottom left, bottom right.                                                                                                                                                                                                                                    |
| targetPoints     | Takes exactly 4 target points: top left, top right, bottom left, bottom right.                                                                                                                                                                                                                                    |
| keepOtherFields  | If `true`, other data key and values from the previous step are kept and passed on to the next step as well. Default value is set to `true`.                                                                                                                                                                      |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://serving.konduit.ai/references/pipeline-steps/perspective_transform.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
