# RegionObjectElement

The `RegionObjectElement` class represents an element of a region object in 2D space. It is an abstract class that provides the interface for region object elements.

## Definition

*Package:* com.dynamsoft.core.intermediate_results

```java
public class RegionObjectElement
```

## Methods

| Method               | Description |
|----------------------|-------------|
| [`getLocation`](#getlocation) | Gets the location of the region object element. |
| [`getReferenceElement`](#getreferenceelement) | Gets a referenced region object element. |
| [`getElementType`](#getelementtype) | Gets the type of the region object element. |
| [`getImageData`](#getimagedata) | Get the imageData of the region object element. |
| [`clone`](#clone) | Clones the region object element. |

### getLocation

Gets the location of the region object element.

```java
Quadrilateral getLocation()
```

**Return value**

Returns a `Quadrilateral` object which represents the location of the region object element.

**See Also**

[Quadrilateral](https://www.dynamsoft.com/capture-vision/docs/server/programming/java/api-reference/core/basic-classes/quadrilateral.md)

### getReferenceElement

Gets a referenced region object element.

```java
RegionObjectElement getReferenceElement()
```

**Return value**

Returns a referenced `RegionObjectElement` object.

**See Also**

[RegionObjectElement](https://www.dynamsoft.com/capture-vision/docs/server/programming/java/api-reference/core/intermediate-results/region-object-element.md)

### getElementType

Gets the type of the region object element.

```java
@EnumRegionObjectElementType int getElementType()
```

**Return value**

Returns a `EnumRegionObjectElementType` enum value which represents the type of the region object element.

**See Also**

[EnumRegionObjectElementType](https://www.dynamsoft.com/capture-vision/docs/server/programming/java/api-reference/core/enum-region-object-element-type.md)

### getImageData

Get the imageData of the region object element.

```java
ImageData getImageData()
```

**Return value**

Returns an `ImageData` object that contains the image data of current object.

**See Also**

[ImageData](https://www.dynamsoft.com/capture-vision/docs/server/programming/java/api-reference/core/basic-classes/image-data.md)

### clone

Clones the region object element.

```java
RegionObjectElement clone()
```

**Return value**

Returns a copy of the region object element.

