Description
This method will filter the image by the nonlinear median filter method. This method 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.
Syntax RetVal = [BiBrw1Dh] BarcodeDataMatrixRemoveNoise hDib N iShowProgress hParent
Returns RetVal LONGLONG The handle of the new filtered DIB or NULL if an error occurred.
Remarks hDib LONGLONG Handle of the input DIB.
N Short This parameter specifies the size of the square mask. N cannot be less than 1.
iShowProgress Short This parameter specifies the displaying of the progressbar.
Available values:
DISPLAY_NONE (0) – The progress bar will not display before filtering.
DISPLAY_PROGRESS (1)– The progress bar will display during filtering procedure.
hParent Long Handler of the parent window.
See Also