The present invention relates to an image processing method, an image
processing apparatus and an image processing program for dealing with
inverted characters (outlined characters) constituted by white pixels on
a black ground in a tree structure same as that of normal characters
constituted by black pixels on a white ground.In the present invention,
black pixel blocks and white pixel blocks are sampled recursively from a
binary image, tree structure data indicating a positional relation
between the sampled black pixel blocks and white pixel blocks is created,
an inverted image is created by white-black-inverting the insides of
black pixel blocks that can include inverted characters, of black pixel
blocks included in the tree structure data, white pixel blocks and black
pixel blacks are sampled from the created inverted image, and data
regarding the sampled white pixel blocks and black pixel blocs is added
to corresponding nodes of the tree structure data.