Resource Base
Table of contents

Thanks for downloading Dynamsoft Barcode Reader Package!

Your download will start shortly. If your download does not begin, click here to retry.

DSTextureDetectionResultUnit

The DSTextureDetectionResultUnit class extends the DSIntermediateResultUnit class and represents a texture-detection result unit. This class captures the results of texture analysis, specifically the spacing of texture patterns in both the x and y directions.

Definition

Assembly: DynamsoftCore.framework

  • Objective-C
  • Swift
  1. NS_SWIFT_NAME(TextureDetectionResultUnit)
    @interface DSTextureDetectionResultUnit: DSIntermediateResultUnit
    
  2. class TextureDetectionResultUnit : IntermediateResultUnit
    

Attributes

Attributes Type Description
xSpacing NSInteger This value represents the detected horizontal distance in pixels between consecutive texture patterns, providing an indication of the texture’s density and orientation within the image.
ySpacing NSInteger The spacing between texture stripes in the y-direction. Similar to xSpacing, this value measures the vertical distance between texture patterns. texture’s characteristics and spatial distribution.

Inherited Methods

The following methods are inherited from class IntermediateResultUnit.

Method Description
getHashId Gets the hash ID of the unit. The hash ID is the unique identifier for the intermediate result unit.
getOriginalImageHashId Gets the hash ID of the original image associated with this unit.
getOriginalImageTag Gets the tag associated with the original image.
getType Gets the type of the intermediate result unit, defined by the enumeration IntermediateResultUnitType.
getTransformMatrix Gets the transformation matrix via DSTransformMatrixType.
clone Creates a copy of the intermediate result unit.
replace Replaces the content of the intermediate result unit.

xSpacing

This value represents the detected horizontal distance in pixels between consecutive texture patterns, providing an indication of the texture’s density and orientation within the image.

  • Objective-C
  • Swift
  1. @property (nonatomic, assign) NSInteger xSpacing
    
  2. var xSpacing: Int { get set }
    

ySpacing

The spacing between texture stripes in the y-direction. Similar to xSpacing, this value measures the vertical distance between texture patterns. texture’s characteristics and spatial distribution.

  • Objective-C
  • Swift
  1. @property (nonatomic, assign) NSInteger ySpacing
    
  2. var ySpacing: Int { get set }
    

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    • Version 2.x
      • Version 2.2.10
      • Version 2.0.21
      • Version 2.0.20
      • Version 2.0.10
      • Version 2.2.10
      • Version 2.0.21
      • Version 2.0.20
      • Version 2.0.10
    • Version 1.x
      • Version 1.2.1
      • Version 1.2.0
      • Version 1.1.0
      • Version 1.0.0
      • Version 1.0.4
      • Version 1.0.3
      • Version 1.0.2
      • Version 1.0.1
      • Version 1.0.0
      • Version 1.1.13
      • Version 1.1.12
      • Version 1.1.11
      • Version 1.1.9
      • Version 1.1.8
      • Version 1.1.7
      • Version 1.1.6
      • Version 1.1.5
      • Version 1.1.4
      • Version 1.1.3
      • Version 1.1.2
      • Version 1.1.1
      • Version 1.1.0
      • Version 1.0.0
      • Version 1.0.4
      • Version 1.0.3
      • Version 1.0.2
      • Version 1.0.1
      • Version 1.0.0
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support