BarcodeDataMatrixRemoveNoise

#include " BIBRDM.H"

 

HANDLE CALLBACK BarcodeDataMatrixRemoveNoise (
HANDLE          hDib,
int                       N,
int                       iShowProgress,
HWND              hParent

Description

This function will filter the image by the nonlinear median filter method. This function works for only monochrome, 8 bit per pixel and 24 bit per pixel images. A median filter operation on an image removes long tailed noise such as negative exponential and salt and pepper type noise with a minimum blurring of the image. Median filter is defined as :

Median(A) = median[A(x + i, y + j)]

 

where the coordinate (x+i, y+j ) is defined over the image A and the coordinate  (i, j) is defined over the N x N size square mask.

Parameters

HANDLE

hDib

Handle of the input DIB.

int

N

This parameter specifies the size of the square mask. N cannot be less than 1.

int

iShowProgress

This parameter specifies the displaying of the progressbar.

Available values:

DISPLAY_NONE (0)      –    The progressbar will not display before filtering.

DISPLAY_PROGRESS (1) The progressbar will display during filtering procedure.

 

HWND

hParent

Handler of the parent window.

Return values

The handle of the new filtered DIB or NULL if an error occurred.

Programming notes

The function will not free the input DIB.

Requirements

Header :    Declared in BIBrDM.h; include BIBrDM.h.

Library :    Use BIBrDM.lib (32 bit version) or BIBrDMx.lib (64 bit version).

DLLs :             BIBrDM.dll (32 bit version) or BIBrDMx.dll (64 bit version).