This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, January 22, 2007 10:35:39 AM(UTC)
Groups: Registered
Posts: 15
Hello,
I am currently using Leadtools Raster Imaging 14.5 for .NET. I have a question about the software. If I receive a file that is in TIF format, that has multiple pages, is there a way using raster imaging pro sdk to tell if there is a blank page in the fax?
I am not familiar with the image analyzing functions of the product.
Thanks,
David
#2
Posted
:
Tuesday, January 23, 2007 12:31:06 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Hello David,
To detect an empty page, one way to do that
is to calculate the ratio of white pixels to total image pixels, and if
it's above a certain threshold value, consider it empty. Ideally, the
threshold should be very close or equal to 100%, but you always get
some noise when scanning real pages.
You can check the attached VB.NET sample demonstrates how to detect a blank page using LEADTOOLS .NET.
#3
Posted
:
Tuesday, January 23, 2007 10:41:45 AM(UTC)
Groups: Registered
Posts: 15
Thank you for the quick response. This tool works fine with the first image loaded in the TIFF file. However what if the TIFF file contains multiple images. Is there a way to traverse through the TIFF file using leadtools?
Thanks,
David
#4
Posted
:
Thursday, January 25, 2007 5:42:20 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Hello David,
You can navigate through pages by changing the page index in the RasterImage.Page Property. For example to view next page in a multiple page image, you can
increment the Page property by 1 then try to detect if this is a blank image or not. The range for this property is from 1 to
RasterImage.PageCount.
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.