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 : Thursday, January 22, 2009 5:46:48 AM(UTC)
curtis_bds

Groups: Registered
Posts: 4


I am trying to use the AutoBinarizeCommand (Leadtools.ImageProcessing.Core), but the examples in the documentations are actually for the BlankPageDetectorCommand command, and I can't find any previous posts on this.

The command only has a few members so I would assume I am using it correctly, but I am getting a 'document capability is required' exception when I run the command. The documentation only says that
  • This command does not support 12- or 16-bit grayscale or 48- or 64-bit color
    images, but will not throw an exception.
  • This command does not support signed
    data images.
  • This command does not support 32-bit grayscale images.
I am trying to run the command on a raster image


                Dim command4 As AutoBinarizeCommand = New AutoBinarizeCommand
                command4.Factor = Val(txtInput.Text)
                command4.Run(rivView2.Image)

(rivView2.is a RasterImageViewer)


 

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 : Saturday, January 24, 2009 10:31:12 PM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

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

You are right. The .Net documentation doesn't mention that this function is only available in the Document and Medical Imaging toolkits.
To use this function, you have to unlock the document support in your code.
Try to use this function by using the following code:
+-----------+
AutoBinarizeCommand AutoBinarize = new AutoBinarizeCommand();
AutoBinarize.Flags = AutoBinarizeCommandFlags.UseAutoPreProcessing | AutoBinarizeCommandFlags.UseAutoThreshold;
AutoBinarize.Factor = 0;
AutoBinarize.Run(rasterImageViewer1.Image);
+-----------+

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
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-2020, Yet Another Forum.NET
This page was generated in 0.100 seconds.