Download THBImage image and vector viewing and processing SDK
Download THBImage image and vector viewing and processing SDK

THBImage Viewer is a small and fast raster picture and vector data viewer.
THBImage Viewer is a small and fast raster picture and vector data viewer.

THBVector vector data layer viewing and processing SDK

THBVector is a vectordata processing component.
It holds one or more vector layers where each layer contains geometry objects.
You can insert or delete layers.
THBVector Standard Edition does NOT support loading from vector files like dxf, dgn, shp, SVG Scalable Vector graphics.
Instead Geometry objects can be manually created and put into layers.
The high performance spatial index takes care that your application grows along with the number of geometry objects that you add.
You can create geometry objects like point, line, linestring, rectangle, polygon, polygon with holes, circle and ellipse. Polygons now support holes too.
The result can be processed in memory, written to disk or displayed using THBView.

Place points, lines, rectangles, polygons, text, circles, ellipses

The user can digitize geometry objects like points, lines, rectangles, polygons, texts, circles, ellipses on the available view area.
Snapping helps you while digitizing to always snap to the nearest point of interest.
These geometry objects can be arranged in multiple layers and can be displayed along with raster image layers.
Allowing you to place them above the underlying raster image layer.
Each geometry object gets its own style. Or you can assign styles per layer. You can choose between different line styles, line widths and colors and you can apply various fill styles like hatch, cross hatch, solid.
If you enable GDI+ drawing you can achieve even more great style effects like gradients transparent geometry objects.

annotation

Spatialindex

Data is stored internally in an intelligent spatial index that arranges data for fast access even if you work with an enormous number of geometry data.
vector data

DirectX Rendering

Render rasterimagedata and vectordata at more than 50 frames per second using DirectX.
Toggle between DirectX and GDI rendering at runtime.

multiple zoomlevels

Limit image processing operations

You can easily access the geometry coordinates and use them for further processing.
With these coordinates you can limit image processing operations to a specific area.

raster plus vector data

Mark parts of the image

THBVector is ideally suited for annotation purposes. The user can mark parts of an image.
These annotation objects can be linked to websites(hyperlink) or you can react to clicks on it.

geometry drawing

Or you can use geometry objects to mark parts of the image with a user defined marker picture.

2D CADsymbols on a separate layer

Selecting, Highlighting

When clicking on a geometry object that is visible in THBView it will be seleted. The grabhandles will be adjusted to enclose all selected objects. To select multiple objects you can use a selection rectangle. Or you can hold down the SHIFT key to select multiple objects. You can access and further process all selected objects.
With little effort you can extract coordinates of geometry ojects and use it for image or vector processing operations.

Moving the mouse over the viewer will highlight objects. You can access and process highlighted objects in the same way as selected objects.

You can set layers to not Locateable, this will disable highlight and selection effects for all geometry objects on the layers.

When trying to select geometry object it may happen that you hit multiple geometry objects at once. Instead of selecting all objects the MultiSelectionWindow will pop up giving you a chance to preview and select exactly the geometry object you’d like.

selecting vector dataselection of multiple geometry objects

Snapping

When you move the mouse close to vector objects the mouse cursor will snap to the nearest point of interest. This can be a start, mid, endpoint, centerpoint, intersection point or simply a point on a line segment.
You can affect all aspects of the snapping functionality. If you don’t need this, no problem, simply turn this feature off. Snapping simplifies digitizing new vector objects and prevents that you place points very close to each other, instead they are snapped together and have the same coordinate.

snap mouse to nearest pointsnap mouse to nearest linesnapping to vectordatasnapping to geometry

Response to clicks

Events provide you the possibility to response to clicks on geometry objects.

Need full read write access to CAD vector files like DXF and ESRI Shapefiles (SHP)

File formats

Geometry objects can be easily loaded from disk or memory and later written back to memory or disk.
You can read DXF(AutoCAD ASCII drawing exchange format), DGN (Bentley Design File Format version v7), Shapefiles, SVG Scalable Vector graphics. Write support is available for Shapefiles and DXF.

Image and vector data analysis algorithms

THBImage can read, write and display vectordata.
With the Vectoranalysation package you get the tools to run smart algorithms over the vector data to interpret its content.

For advanced algorithms like deskewing scanned documents, despeckle documents or punch hole removal we need advanced vectordata analysation functions.

For these operations we convert your raster image documents to vector data that can be analysed.

Preprocessing raster image data

The first step is to convert your raster image data to vectordata. At this stage you have to choose between analysation performance and quality. Scaling down to a lower resolution means better performance but a loss of detail as always this is a tradeoff depending on your input data.

Linearize

The next step is to linearize the raster data using an edge detection algorithm.

Extract vectordata contours

Now we can extract vectordata contours out of the raster image data. The resulting contours can be viewed along with the original imagedata on a separate layer using THBView.
Now that we have the vectordata we can calculate minimum bounding rectangle (MBR), convex hull, deskew angle.

Minimum Bounding Rectangle

The Minimum Bounding Rectangle ( MBR ) for a set of point, as the name suggests, is the minimum rectangular region with sides parallel to the axis of the data space that encloses all of the points in P.

Convex hull

Convex hull for the boundary of the minimal convex set containing a given non-empty finite set of points in the plane. Unless the points are collinear, the convex hull in this sense is a simple closed polygonal chain.
For planar objects, i.e., lying in the plane, the convex hull may be easily visualized by imagining an elastic band stretched open to encompass the given object, when released, it will assume the shape of the required convex hull.

Deskew

Scanned documents can be misaligned, in general because the paper was not placed completely flat when scanned. Deskew is the process of removing skew from images. In automatic scanning processes this causes troubles because there is no user who could manually deskew hundreds of scanned pages. And if there is a user, why should he do things that the computer can do even faster.
Our deskewing algorithm works with 1bit, 8bit and RGB data. We preprocess it to get the raster input data we need.
Deskewing speed can be adjusted by lowering the inputdata quality.

Deskewing involves multiple steps.
We detect the deskew angle for rotation, then we rotate the image to remove skew.
An optional step is to crop out the page to remove unnecessary border around the scanned document.

Supported Development Environments for the SDK

Visual Basic 5.0 & 6.0.
DLL API LIB.
Visual C++ 6.0, 7.0, 7.1, 8.0, 9.0, 10.0.
MSAccess 97, 2000, 2003 ….
.Net, C#, VB.Net.
ASP.
The installation contains demo projects for C#, VB.NET, VB 6.0, VBScript.