# RegionObjectElement

The `RegionObjectElement` class represents a basic element of a region object, including its type, location and reference to another element.

## Definition

*Namespace:* com.dynamsoft.core.intermediate_results

*Assembly:* DynamsoftCaptureVisionBundle.aar

```java
class RegionObjectElement
```

## Method

| Method | Description |
| ------ | ----------- |
| [`getLocation`](#getlocation) | Gets the location of the region object, represented as a [`Quadrilateral`](https://www.dynamsoft.com/capture-vision/docs/mobile/programming/android/api-reference/core/basic-structures/quadrilateral.md). |
| [`getReferencedElement`](#getreferencedelement) | Gets the referenced element that supports the capturing of this element. |
| [`getType`](#gettype) | The type of the region object element, defined by the enumeration `EnumRegionObjectElementType`. |
| [`getImageData`](#getimagedata) | Gets the original image that produce this element. |

### getLocation

Gets the location of the region object, represented as a [`Quadrilateral`](https://www.dynamsoft.com/capture-vision/docs/mobile/programming/android/api-reference/core/basic-structures/quadrilateral.md).

```java
@NonNull
Quadrilateral getLocation();
```

**Return Value**

The location of the region object, represented as a [`Quadrilateral`](https://www.dynamsoft.com/capture-vision/docs/mobile/programming/android/api-reference/core/basic-structures/quadrilateral.md).

### getReferencedElement

Gets the referenced element that supports the capturing of this element.

```java
@Nullable
RegionObjectElement getReferencedElement();
```

**Return Value**

The referenced element that supports the capturing of this element.

### getType

Gets the type of the region object element, defined by the enumeration [`EnumRegionObjectElementType`](https://www.dynamsoft.com/capture-vision/docs/mobile/programming/android/api-reference/core/enum/region-object-element-type.md).

```java
@EnumRegionObjectElementType
int getType();
```

**Return Value**

The type of the region object element.

### getImageData

Gets the original image that produce this element.

```java
@Nullable
ImageData getImageData();
```

**Return Value**

An `ImageData` object represents the original image that produce this element.
