Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

ImageProcessing intensity
Started by cyheltsley at 07-07-2008 18:12. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  07-07-2008, 18:12
cyheltsley is not online. Last active: 2/13/2008 7:29:54 PM cyheltsley

Not Ranked
Joined on 02-13-2008
Posts 6
ImageProcessing intensity
Reply Quote

Hello,

I have a jpeg image file that contains multiple images.  I extract one image at a time and save to a CCITT G4 image file. (codecs.Save(img, s.writeRi2, RasterImageFormat.CcittGroup4, 1, 1, 1, 1, CodecsSavePageMode.Append))

There are so many filter type commands that I'm not sure which to use to get the black in the CCITT image to look clear and not smugey.  

I tried:

IntensityDetectCommand cmd = new IntensityDetectCommand();                     cmd.Channel = IntensityDetectCommandFlags.Master;                             cmd.HighThreshold = 255;                                                                                                             cmd.InColor = new RasterColor(255, 255, 255);                                                      cmd.LowThreshold = 160; cmd.OutColor = new RasterColor(0, 0, 0);                            cmd.Run(img);

ContrastBrightnessIntensityCommand command = new ContrastBrightnessIntensityCommand();                                                    command.Contrast = 30;command.Brightness = 0;command.Intensity = 100; command.Run(img);

And several variations of these two but I do not see any change in the way the data looks.  The jpeg image is clear but the CCITT image is unreadable.  Any suggestions?

 


   Report 
  07-08-2008, 8:13
Qasem Lubani is not online. Last active: 12/21/2008 9:12:09 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,187
Re: ImageProcessing intensity
Reply Quote

When converting from color or grayscale to 1-bit bitonal, you can use the ColorResolutionCommand and experiment with different dithering options (including no dithering).

If you can't get a satisfactory result, send me a sample image and I will see what I can do. If images are not in a standard format, extract one of the pages and save it alone, preferably in a lossless format such as TIFF with LZW compression.

 

If you decide to send me images, please put them in a ZIP or RAR file first.
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
Post
LEAD Support Fo... » Developer » Color Conversio... » ImageProcessing intensity

Powered by Community Server, by Telligent Systems