This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, January 22, 2009 5:46:48 AM(UTC)
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)
#2
Posted
:
Saturday, January 24, 2009 10:31:12 PM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
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.