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.

TextureDetectionResultUnit

The TextureDetectionResultUnit class extends the IntermediateResultUnit 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

Namespace: com.dynamsoft.core.intermediate_results

Assembly: DynamsoftCore.aar

class TextureDetectionResultUnit extends IntermediateResultUnit

Methods

Methods Description
getXSpacing Gets the X-direction spacing of the texture stripes.
getYSpacing Gets the Y-direction spacing of the texture stripes.
setXSpacing Sets the X-direction spacing of the texture stripes.
setYSpacing Sets the Y-direction spacing of the texture stripes.

Inherited Methods

The following methods are inherited from class IntermediateResultUnit.

Method Description
clone Creates a copy of the intermediate result unit.
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. You can use this ID to get the original image via IntermediateResultManager class.
getOriginalImageTag Gets the image tag of the original image associated with this unit.
getType Gets the type of the intermediate result unit, defined by the enumeration EnumIntermediateResultUnitType.
getTransformMatrix Gets the transformation matrix via EnumTransformMatrixType.
replace Replaces the old unit with the new unit.

getXSpacing

Gets the X-direction spacing of the texture stripes.

int getXSpacing()

Return Value

The X-direction spacing of the texture stripes. 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.

getYSpacing

Gets the Y-direction spacing of the texture stripes.

int getYSpacing()

Return Value

The Y-direction spacing of the texture stripes. This value represents the spacing between texture stripes in the y-direction. Similar to xSpacing, this value measures the vertical distance between texture patterns. It offers insights into the vertical density and alignment of the texture within the image, contributing to the understanding of the texture’s characteristics and spatial distribution.

setXSpacing

Sets the X-direction spacing of the texture stripes.

void setXSpacing(int xSpacing)

Parameter

[in] xSpacing: The X-direction spacing of the texture stripes.

setYSpacing

Sets the Y-direction spacing of the texture stripes.

void setYSpacing(int ySpacing)

Parameter

[in] ySpacing: The Y-direction spacing of the texture stripes.

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.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