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, March 28, 2012 7:43:22 AM(UTC)

URso5  
URso5

Groups: Registered
Posts: 6


I want to convert a Color image to black /white,and keep the red color,is there a function to do this? thanks

my leadtools is V16.5
 

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, March 29, 2012 7:10:22 AM(UTC)

Daoud  
Daoud

Groups: Registered
Posts: 256


Hello,
This can be done by doing the following:
1) Define a region for all non-red pixels in the image.
If you're using .NET, this can be done with the AddColorToRegion(), AddColorRgbRangeToRegion() or AddColorHsvRangeToRegion() functions, with the RasterRegionCombineMode.SetNot flag.
2) Apply the Auto Binarize function to the image, which will only affect the region, making all non-red pixels either black or white.

 
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.