Image pre-processing function
img = ann_imgpreprocess(I)
Input image
Output sub-images in cell format
This function would find the objects on the input image, crop them and save the object in output cell individually.
I = imread(ann_getToolboxPath()+'demos\handwritting.bmp'); imshow(I); img = ann_imgpreprocess(I); size(img) figure(); imshow(img(1).entries);