#1
Posted
:
Wednesday, January 20, 2016 7:21:47 AM(UTC)
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!
#2
Posted
:
Sunday, January 24, 2016 6:23:54 AM(UTC)
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.
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.