A method of processing an image that includes text, the image further including marks made by a user to indicate a region of the text, the method comprising steps of:obtaining the marks as values of pixels of the image; and applying morphological operations to pixels of the image to obtain segment data indicating estimates of a boundary and a location of the region, said morphological operations b