Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Friday, August 11, 2017 4:51:51 PM(UTC)
Nick Villalobos

Groups: Registered
Posts: 119

Was thanked: 4 time(s) in 4 post(s)

Below you will find a link as well as a code snippet on how you can improve your images using simple Image Processing commands.


Despeckle and Minimum Command:


 String input= @"PATH TO IMAGE";

 using (RasterCodecs codecs = new RasterCodecs())
       // Load a single page of the input file at 24 BPP
       using (RasterImage image = codecs.Load(input, 24, CodecsLoadByteOrder.Rgb, 1, 1))

          // Prepare the command
          DespeckleCommand d_command = new DespeckleCommand();

          // Run command on image to removes speckle

         // Prepare the command
          MinumumCommand m_command = new MinumumCommand();

         //Apply the Minimum filter, darkness intensity. 
         command.Dimension = 2;

          // Run command on image to increase darkness intensity on pixels

          // Save a single page of the input file after Image Processing at 24 BPP as a RasterPdf
          codecs.Save(image, output, RasterImageFormat.RasPdf, 24);
    catch (Exception ex)
Nick Villalobos
Developer Support Engineer
LEAD Technologies, Inc.


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.

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