EasyImage::ModulusImage

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

Namespace: Euresys::Open_eVision

[C++]

void ModulusImage(
   EImageBW8* destinationImage,
   float gain
)

Parameters

destinationImage

Pointer to the destination image.

gain

Gain value to be applied to the modulus. 1 saturates; 1/Sqrt(2) does not.

Remarks

The modulus of the gradient argument can be adjusted to avoid saturation. EasyImage::ModulusImage sets a lookup-table image for use with function EasyImage::GradientScalar, ready to compute the modulus of the gradient in the source image, i.e. its amplitude (as defined by the Euclidian norm). The argument will be returned as a value in range 0..255 suitable for storage in an EImageBW8 or as a value in range 0..65535 suitable for storage in an EImageBW16. A gain coefficient can be adjusted to avoid saturation (gain = 1 saturates gradient amplitudes larger than 255 in the EBW8 case and 65535 in the EBW16 case; gain = 1/Sqrt(2) never saturates).

EasyImage.ModulusImage

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

Namespace: Euresys.Open_eVision

[C#]

void ModulusImage(
   Euresys.Open_eVision.EImageBW8 destinationImage,
   float gain
)

Parameters

destinationImage

Pointer to the destination image.

gain

Gain value to be applied to the modulus. 1 saturates; 1/Sqrt(2) does not.

Remarks

The modulus of the gradient argument can be adjusted to avoid saturation. EasyImage::ModulusImage sets a lookup-table image for use with function EasyImage::GradientScalar, ready to compute the modulus of the gradient in the source image, i.e. its amplitude (as defined by the Euclidian norm). The argument will be returned as a value in range 0..255 suitable for storage in an EImageBW8 or as a value in range 0..65535 suitable for storage in an EImageBW16. A gain coefficient can be adjusted to avoid saturation (gain = 1 saturates gradient amplitudes larger than 255 in the EBW8 case and 65535 in the EBW16 case; gain = 1/Sqrt(2) never saturates).