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, April 27, 2005 9:01:39 AM(UTC)
chris.lewis

Groups: Registered
Posts: 4


I need to be able to remove printed artifacts from an image in a pre-processing stage. The artifacts are either red or green, and I need to be able to remove them completely from the image (i.e. convert them to white).

Could anyone suggest the best commands/tools to do this from the Raster Pro .Net SDK.

Thanks in anticipation.

 

Chris Lewis

 

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 : Wednesday, April 27, 2005 11:15:26 AM(UTC)

Gabe  
Gabe

Groups: Registered, Tech Support
Posts: 46


Thank you for your support of LEAD and LEADTOOLS.

The answer below is based on the fact that we have not actually seen your image. If the answer is not satisifactory, please copy this thread and send it and a sample image to support@LEADTOOLS.com.

You need to basically create a region consisting of the colors you would like to remove. Once the region is created, you can fill the region with white. Below is a small snippet of code that will give you an idea of what needs to be done for converting the green pixels to white. There are examplesfor thefunctions used in the help file.

Dim color As New RasterColor(0, 255, 0) 'set this to be thecolor of your green pixels. You can also use 'IRasterImage.AddColorRgbRangeToRegion' if you 'have arange of greens

image.AddColorToRegion(color, RasterRegionCombineMode.Set) ' add the region to the image

Dim command As Leadtools.ImageProcessing.FillCommand = New Leadtools.ImageProcessing.FillCommand

command.Color = New Leadtools.RasterColor(255,255, 255) ' set to white
command.Run(image) ' fill the region with white

Again, let us know if this helps get you going in your situation.

Edited by moderator Wednesday, March 29, 2017 12:14:49 PM(UTC)  | Reason: Not specified

Gabe
Developer Support
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.060 seconds.