# LayoutAnalysisParameter

The `LayoutAnalysisParameter` class holds input parameters to guide the layout analysis.

## Definition

*Namespace:* Dynamsoft.Utility

```csharp
public class LayoutAnalysisParameter
```

## Properties

| Property | Type | Description |
|----------|------|-------------|
| [`pattern`](#pattern) | *LayoutPattern* | Desired layout pattern. |
| [`axes`](#axes) | *LayoutAxis[]* | Configuration for Primary (0) and Secondary (1) axes. |
| [`inputImageWidth`](#inputimagewidth) | *int* | Width of the source image in pixels. |
| [`inputImageHeight`](#inputimageheight) | *int* | Height of the source image in pixels. |

### pattern

Desired layout pattern. Use `LP_UNKNOWN` for auto-detection.

```csharp
public LayoutPattern pattern = LayoutPattern.LP_UNKNOWN;
```

**See Also**

[LayoutPattern](https://www.dynamsoft.com/capture-vision/docs/server/programming/dotnet/api-reference/utility/enum-layout-pattern.md)

### axes

Configuration for Primary (axis 0) and Secondary (axis 1) axes.

```csharp
public LayoutAxis[] axes;
```

**See Also**

[LayoutAxis](https://www.dynamsoft.com/capture-vision/docs/server/programming/dotnet/api-reference/utility/layout-axis.md)

### inputImageWidth

Width of the source image in pixels. When provided, prevents inferred quads from extending beyond the image bounds. Default: 0 (no boundary check).

```csharp
public int inputImageWidth = 0;
```

### inputImageHeight

Height of the source image in pixels. When provided, prevents inferred quads from extending beyond the image bounds. Default: 0 (no boundary check).

```csharp
public int inputImageHeight = 0;
```
