rel_lineshadow()

extern KADMOS_ERROR KADMOS_API rel_lineshadow
  (RelData *reldata, unsigned char **vertical_shadow);
      

Parameter:

reldata
Pointer to a structure RelData. With this structure rel_do() had to be called before, with the parameter TYPO_KEEPIMG set.
vertical_shadow
Pointer variable to receive the address of the line shadow which was provided from a previous call of rel_do().

Return value:

RE_SUCCESS or KADMOS error type.

Comment:

Before calling rel_lineshadow(), rel_do() had to be called with the parameter TYPO_KEEPIMG set. Under shadow a pointer is delivered with the address of a data field containing the results of the hand/machine pre-classification of the given image. The values projection[0] and projection[1] describe begin and end of the shadow. The returned area has the data type unsigned char, the related shadow positions refer directly to the columns of the given image. The bits SHADOW_FONT_HAND and SHADOW_FONT_MACHINE contain the results of the pre-classification. If only this information is needed, the the parameter GENERAL_LINESHADOW_ONLY can be set for the previous call of rel_do(). Then no character recognition is performed.

Reference: