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 : Tuesday, September 13, 2005 6:55:39 AM(UTC)

Dave  
Dave

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.

 

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 : Thursday, September 15, 2005 3:38:39 AM(UTC)

Gabe  
Gabe

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.

LEAD Logo
 
#3 Posted : Tuesday, September 20, 2005 1:38:18 AM(UTC)

Dave  
Dave

Groups: Registered
Posts: 5


Hi Gabriel,

Thanks LBitmap::IntensityDetect does what I needed.

Dave.

 

 
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.055 seconds.