# DeskewedImagesUnit Class

The `DeskewedImagesUnit` class represents an intermediate result unit whose type is deskewed images.

## Definition

*Namespace:* Dynamsoft.DDN.intermediate_results


```csharp
class DeskewedImagesUnit : IntermediateResultUnit
```

*Inheritance:* [IntermediateResultUnit](https://www.dynamsoft.com/capture-vision/docs/server/programming/dotnet/api-reference/core/intermediate-results/intermediate-result-unit.md) -> DeskewedImagesUnit

## Methods

| Method | Description |
|--------|-------------|
| [`GetDeskewedImage`](#getdeskewedimage) | Gets a `DeskewedImageElement` object from current object. |
| [`SetDeskewedImage`](#setdeskewedimage) | Sets the Deskewed image. |

### GetDeskewedImage

Gets a `DeskewedImageElement` object from current unit.

```csharp
DeskewedImageElement GetDeskewedImage()
```

**Return Value**

Returns the `DeskewedImageElement` object.

**See Also**

* [DeskewedImageElement](https://www.dynamsoft.com/document-normalizer/docs/server/programming/dotnet/api-reference/deskewed-image-element.md)

### SetDeskewedImage

Sets the deskewed image.

```csharp
int SetDeskewedImage(DeskewedImageElement deskewedImage, double[] matrixToOriginalImage = null)
```

**Parameters**

`[in] deskewedImage` The deskewed image to be set.

`[in] matrixToOriginalImage` The matrix to original image.

**Return value**

Returns 0 if successful, otherwise returns a negative value.
