Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, January 20, 2016 7:21:47 AM(UTC)
coffeemkr0

Groups: Registered
Posts: 2


Can someone give some additional information on what changing the value of the Factor property of the AutoBinarizeCommand does?


I see this description on the AutoBinarizeCommandFlags documentation for the UseUserThreshold flag - "Let the user choose the threshold color value to be passed in Factor. Valid values range from 0 (black) to 255 (white)."


https://www.leadtools.com/help/leadtools/v19/dh/po/leadtools.imageprocessing.core~leadtools.imageprocessing.core.autobinarizecommandflags.html


What exactly does changing the threshold color do, how does a lower or higher value affect the output?


Thanks for any help!
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Sunday, January 24, 2016 6:23:54 AM(UTC)

mohamed  
mohamed

Groups: Registered, Tech Support
Posts: 179


Hello,
The factor means that pixels with intensity values above it become white and those below it become black.
Make sure to pass "DontUsePreProcessing" with the "UseUserThreshold" AutoBinarizeCommandFlags value. So that the overall function will be like this:
/**************************************************/
AutoBinarizeCommand _com = new AutoBinarizeCommand();
_com.Factor = 197;
_com.Flags= AutoBinarizeCommandFlags.UseUserThreshold | AutoBinarizeCommandFlags.DontUsePreProcessing;
/**************************************************/

It appears the help file doesn't explicitly mention this, so I will send a documentation update request to make it clearer.
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.073 seconds.