LEADTOOLS Support
Imaging
Imaging SDK Questions
8bit greyscale -> 1bit mono without local contrast calculations
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, September 13, 2005 6:55:39 AM(UTC)
Groups: Registered
Posts: 5
Hi,
I have an 8bit greyscale image which I need to convert to a 1bit mono image based on a threshold value (0 - 256). I thought the LBitmap::DynamicBinary() function would do this but it seems that the local contrast test is getting in the way, and setting uDim to 1 doesn't work either.
I simply need it to check each grey pixel in isolation against my threshold and change it to 0 if its less and 255 (or 1) if its greater. Is there a way to get DynamicBinary() to do this or some other function?
Thanks,
Dave.
#2
Posted
:
Thursday, September 15, 2005 3:38:39 AM(UTC)
Groups: Registered, Tech Support
Posts: 46
Dave,
Have you taken a look at LBitmap::IntensityDetect? I think this is the function you need. Let us know. Thanks,
Gabriel
Gabe
Developer Support
LEAD Technologies, Inc.
#3
Posted
:
Tuesday, September 20, 2005 1:38:18 AM(UTC)
Groups: Registered
Posts: 5
Hi Gabriel,
Thanks LBitmap::IntensityDetect does what I needed.
Dave.
LEADTOOLS Support
Imaging
Imaging SDK Questions
8bit greyscale -> 1bit mono without local contrast calculations
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.