AcquiredImage.IsBlank -> meaning of noise parameter

Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.

Moderator: Alex

Post Reply
jaceksmil
Posts: 1
Joined: Tue Nov 13, 2012 1:27 pm

AcquiredImage.IsBlank -> meaning of noise parameter

Post by jaceksmil »

I would like to know what it the meaning of noise parameter in AcquiredImage.IsBlank method. In my project I would like to give user possiblity to set this parameter, so one can choose the level of noice. But I cannot find any description how it is calculated. Could someone describe me what does it mean? Is this something understandable for end users ?
There is also second option to detect percentage of black pixels in image (program operates on black-white images) and using it state if image is blank, but it would be simplier to user Vintasoft builded-in funcionality if this parametr can be understandable for end users.
Alex
Site Admin
Posts: 2305
Joined: Thu Jul 10, 2008 2:21 pm

Re: AcquiredImage.IsBlank -> meaning of noise parameter

Post by Alex »

Hello,

AcquiredImage.IsBlank method can have 2 parameters:
  • maxNoiseLevel - maximum possible value of noise in image, in percents. Optimal value is 0.01 (%).
  • [out] currentNoiseLevel - current noise value in image, in percents. This parameter has correct value after execution of the method.
Noise - pixels with color different from the background color of image.

You can use value returned by the currentNoiseLevel parameter for calibrating the method, i.e. determine good value for the maxNoiseLevel parameter.

More info about the AcquiredImage.IsBlank method can be get in the on-line documentation:
http://www.vintasoft.com/docs/vstwain-dotnet/

Best regards, Alexnader
Post Reply