Skip to content

Latest commit

 

History

History
98 lines (76 loc) · 3.55 KB

texture-removed-binary-image-unit.md

File metadata and controls

98 lines (76 loc) · 3.55 KB
layout title description keywords needGenerateH3Content needAutoGenerateSidebar noTitleIndex
default-layout
DSTextureRemovedBinaryImageUnit - Dynamsoft Core Module iOS Edition API Reference
The class DSTextureRemovedBinaryImageUnit of Dynamsoft Core Module represents a unit that contains a texture-removed binary image.
texture-removed binary image, objective-c, swift
true
true
true

DSTextureRemovedBinaryImageUnit

The DSTextureRemovedBinaryImageUnit class extends the DSIntermediateResultUnit class and represents a texture-removed binary image unit.

Definition

Assembly: DynamsoftCore.framework

>- Objective-C >- Swift > >1. ```objc NS_SWIFT_NAME(TextureRemovedBinaryImageUnit) @interface DSTextureRemovedBinaryImageUnit: DSIntermediateResultUnit ``` 2. ```swift class TextureRemovedBinaryImageUnit : IntermediateResultUnit ```

Methods

Method Description
setImageData Sets the image data for the texture-removed binary image.
getImageData Gets the image data for the texture-removed binary image.

Inherited Methods

The following methods are inherited from class [IntermediateResultUnit]({{ site.dcv_ios_api }}core/intermediate-results/intermediate-result-unit.html).

Method Description
[getHashId]({{ site.dcv_ios_api }}core/intermediate-results/intermediate-result-unit.html#gethashid) Gets the hash ID of the unit. The hash ID is the unique identifier for the intermediate result unit.
[getOriginalImageHashId]({{ site.dcv_ios_api }}core/intermediate-results/intermediate-result-unit.html#getoriginalimagehashid) Gets the hash ID of the original image associated with this unit.
[getOriginalImageTag]({{ site.dcv_ios_api }}core/intermediate-results/intermediate-result-unit.html#getoriginalimagetag) Gets the tag associated with the original image.
[getType]({{ site.dcv_ios_api }}core/intermediate-results/intermediate-result-unit.html#gettype) Gets the type of the intermediate result unit, defined by the enumeration [IntermediateResultUnitType]({{ site.dcv_enumerations }}core/intermediate-result-unit-type.html?lang=objc,swift).
[getTransformMatrix]({{ site.dcv_ios_api }}core/intermediate-results/intermediate-result-unit.html#gettransformmatrix) Gets the transformation matrix via DSTransformMatrixType.
[clone]({{ site.dcv_ios_api }}core/intermediate-results/intermediate-result-unit.html#clone) Creates a copy of the intermediate result unit.
[replace]({{ site.dcv_ios_api }}core/intermediate-results/intermediate-result-unit.html#replace) Replaces the content of the intermediate result unit.

setImageData

Sets the image data for the texture-removed binary image.

>- Objective-C >- Swift > >1. ```objc -(NSInteger)setImageData:(DSImageData *)imageData; ``` 2. ```swift func setImageData(_ imageData: DSImageData?) -> Int ```

Parameters

imageData: A DSImageData object as the image data of the texture removed binary image.

Return Value

Returns the ErrorCode if failed. Otherwise, returns 0.

getImageData

Gets the image data for the texture-removed binary image.

>- Objective-C >- Swift > >1. ```objc -(nullable DSImageData *)getImageData; ``` 2. ```swift func getImageData() -> DSImageData? ```

Return Value

A DSImageData object that describes the texture removed binary image.