EasyImage::BiLevelThin

Applies a thinning operation on a bilevel image, using a 3x3 kernel.

Namespace: Euresys::Open_eVision

[C++]

void BiLevelThin(
   EROIBW8* sourceImage,
   EROIBW8* destinationImage,
   EKernel* thinningKernel,
   Euresys::Open_eVision::EKernelRotation rotationMode,
   int& numberOfIterations
)

Parameters

sourceImage

Pointer to the source image/ROI.

destinationImage

Pointer to the destination image/ROI. Must not be the same as source image.

thinningKernel

Pointer to the thinning kernel.

rotationMode

Rotation mode, as defined by EKernelRotation.

numberOfIterations

Number of iterations to apply. 0 indicates stop when convergence is reached. Upon return, gives the number of passes actually performed. If the rotation mode is set to either EKernelRotation_Clockwise or EKernelRotation_Anticlockwise, a pass comprises eight kernel rotations.

Remarks

The thinning kernel coefficients must be 0 (matching black pixel, value 0), 1 (matching non black pixel, value > 0) or -1 (don't care). When a match is found between the kernel coefficients and the neighborhood of a pixel, the pixel value is set to 0.

EasyImage.BiLevelThin

Applies a thinning operation on a bilevel image, using a 3x3 kernel.

Namespace: Euresys.Open_eVision

[C#]

void BiLevelThin(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   Euresys.Open_eVision.EROIBW8 destinationImage,
   Euresys.Open_eVision.EKernel thinningKernel,
   Euresys.Open_eVision.EKernelRotation rotationMode,
   ref int numberOfIterations
)

Parameters

sourceImage

Pointer to the source image/ROI.

destinationImage

Pointer to the destination image/ROI. Must not be the same as source image.

thinningKernel

Pointer to the thinning kernel.

rotationMode

Rotation mode, as defined by EKernelRotation.

numberOfIterations

Number of iterations to apply. 0 indicates stop when convergence is reached. Upon return, gives the number of passes actually performed. If the rotation mode is set to either Clockwise or Anticlockwise, a pass comprises eight kernel rotations.

Remarks

The thinning kernel coefficients must be 0 (matching black pixel, value 0), 1 (matching non black pixel, value > 0) or -1 (don't care). When a match is found between the kernel coefficients and the neighborhood of a pixel, the pixel value is set to 0.