EasyImage::ArgumentImage

Prepares a lookup-table image for use for gradient argument computation.

Namespace: Euresys::Open_eVision

[C++]

void ArgumentImage(
   EImageBW8* destinationImage,
   EBW8 phase,
   float period
)

void ArgumentImage(
   EImageBW8* destinationImage
)

void ArgumentImage(
   EImageBW8* destinationImage,
   EBW8 phase
)

Parameters

destinationImage

Pointer to the destination image.

phase

Argument value corresponding to the horizontal direction, in 256-th (65,536-th) of the period (by default, phase = 0).

period

Range of argument values corresponding to the 0..255 (0..65535) interval, in the current angle unit (by default, period = 0).

Remarks

The scale and phase of the gradient argument can be adjusted. The argument angles are counter clockwise on a 0..255 scale in the BW8 context and on a 0..65535 scale in the BW16 one, corresponding to a specified range (full turn by default, specified period otherwise). The argument phase is counted on a 0..255 scale or on a 0..65535 scale too. Angle values outside the 0..255 (0..65535) interval are wrapped. The period length is given in the current angle unit. EasyImage::ArgumentImage sets a lookup-table image for use with function EasyImage::GradientScalar, ready to compute the argument of the gradient in the source image, i.e. its direction. The argument will be returned as a value in range 0..255 suitable for storage in an EImageBW8 or as a value in the range 0..65535 suitable for storage in an EImageBW16. The phase of the argument can be adjusted.

EasyImage.ArgumentImage

Prepares a lookup-table image for use for gradient argument computation.

Namespace: Euresys.Open_eVision

[C#]

void ArgumentImage(
   Euresys.Open_eVision.EImageBW8 destinationImage,
   Euresys.Open_eVision.EBW8 phase,
   float period
)

void ArgumentImage(
   Euresys.Open_eVision.EImageBW8 destinationImage
)

void ArgumentImage(
   Euresys.Open_eVision.EImageBW8 destinationImage,
   Euresys.Open_eVision.EBW8 phase
)

Parameters

destinationImage

Pointer to the destination image.

phase

Argument value corresponding to the horizontal direction, in 256-th (65,536-th) of the period (by default, phase = 0).

period

Range of argument values corresponding to the 0..255 (0..65535) interval, in the current angle unit (by default, period = 0).

Remarks

The scale and phase of the gradient argument can be adjusted. The argument angles are counter clockwise on a 0..255 scale in the BW8 context and on a 0..65535 scale in the BW16 one, corresponding to a specified range (full turn by default, specified period otherwise). The argument phase is counted on a 0..255 scale or on a 0..65535 scale too. Angle values outside the 0..255 (0..65535) interval are wrapped. The period length is given in the current angle unit. EasyImage::ArgumentImage sets a lookup-table image for use with function EasyImage::GradientScalar, ready to compute the argument of the gradient in the source image, i.e. its direction. The argument will be returned as a value in range 0..255 suitable for storage in an EImageBW8 or as a value in the range 0..65535 suitable for storage in an EImageBW16. The phase of the argument can be adjusted.