extern KADMOS_ERROR KADMOS_API re_layout(ReLayoutData *layout);
RE_SUCCESS or KADMOS error type.
re_layout() analyses the structure and content of a given document.
First, the given
image_in is checked for proper positioning. If required, it is deskewed.
The deskewed image is provided under
image_deskewed, it's image handle under
If not needed any more, the related memory has to be freed by a call to
re_freeimage(). In case of deskewing
the related angle is provided under
Second, in the (deskewed) image the content area, the area of interest is determined.
The related rectangle is provided under
Third, the content area is analysed. The found items are provided separately in the elements of
re_layout_result_len specifies the number of found result items or elements of
re_layout_result. Every item is described by it's surrounding rectangle subimage, by it's type
result_flag, and by a related handle
h_result_image_bw to the black and white result image.
Unspecified content. Maybe picture or graphics.
Line, underline, box, table grid, or something alike.
Horizontal line below text items.
Area containing one column text for recognition by rep_do().
RE_SUCCESS will be returned, in case of error a related error type and the error text can be