Table of contents

PredetectedRegionsUnit

The PredetectedRegionsUnit class represents a unit that contains a collection of pre-detected regions. It inherits from the IntermediateResultUnit class and stores the result of image color pre-detection.

Definition

Namespace: Dynamsoft.Core.intermediate_results

class PredetectedRegionsUnit : IntermediateResultUnit, IEnumerable<PredetectedRegionElement>

Methods

Method Description
GetCount Gets the number of pre-detected regions in the collection.
GetPredetectedRegion Gets a specific pre-detected region in the collection.
GetPredetectedRegions Gets all regions in the collection.
RemoveAllPredetectedRegions Removes all pre-detected regions in the unit.
RemovePredetectedRegion Removes a pre-detected region in the unit at the specified index.
AddPredetectedRegion Adds a pre-detected region in the unit.
SetPredetectedRegion Sets a pre-detected region in the unit at the specified index.

Inherited Methods

Checkout inherited methods from IntermediateResultUnit for more details.

GetCount

Gets the number of pre-detected regions in the collection.

int GetCount()

Return value

Returns the number of pre-detected regions in the collection.

GetPredetectedRegion

Gets a specific pre-detected region in the collection.

PredetectedRegionElement GetPredetectedRegion(int index)

Parameters

[in] index The index of the pre-detected region to retrieve.

Return value

Returns the specified pre-detected region in the collection.

See Also

PredetectedRegionElement

GetPredetectedRegions

Gets all regions in the collection.

PredetectedRegionElement[] GetPredetectedRegions()

Return value

Returns all the pre-detected regions.

See Also

PredetectedRegionElement

RemoveAllPredetectedRegions

Removes all pre-detected regions in the unit.

void RemoveAllPredetectedRegions()

RemovePredetectedRegion

Removes a pre-detected region in the unit at the specified index.

int RemovePredetectedRegion(int index)

Parameters

[in] index The index of the pre-detected region to remove.

Return Value

Returns 0 if succeeds, nonzero otherwise.

AddPredetectedRegion

Adds a pre-detected region in the unit.

int AddPredetectedRegion(PredetectedRegionElement element, double[] matrixToOriginalImage = null)

Parameters

[in] element The pre-detected region to add.

[in] matrixToOriginalImage The matrix to original image.

Return Value

Returns 0 if succeeds, nonzero otherwise.

SetPredetectedRegion

Sets a pre-detected region in the unit at the specified index.

int SetPredetectedRegion(int index, PredetectedRegionElement element, double[] matrixToOriginalImage = null)

Parameters

[in] index The index of the pre-detected region to set.

[in] element The pre-detected region to set.

[in] matrixToOriginalImage The matrix to original image.

Return Value

Returns 0 if succeeds, nonzero otherwise.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: