MPAPER | ![]() |
Allows to enter handwritten characters by mouse.
Synopsis:
mpaper
mpaper( options )
mpaper({'param1',val1,...})
Description:
This script allows a user to draw images by mouse to
figure with a grid. The drown images are normalized to
exactly fit the subwindows given by the grid.
Control:
Left mouse button ... draw line.
Right mouse button ... erase the focused subwindow.
Middle mouse button ... call function which proccess the
drawn data.
The function called to processed the drawn data is
prescribed by options.fun. The implicite setting is 'ocr_fun'
which calls OCR trained for handwritten numerals and displays
the result of recognition.
Input:
options.width [int] Width of a single image.
options.height [int] Height of a single image.
options.fun [string] If the middle mouse button is
pressed then feval(fun,data) is called where
the structure data contains:
data.X [dim x num_images] images stored as columns
of size dim = width*height.
data.img_size = [height,width].
Example:
open ocr_demo.fig
(c) Statistical Pattern Recognition Toolbox, (C) 1999-2003,
Written by Vojtech Franc and Vaclav Hlavac,
Czech Technical University Prague,
Faculty of Electrical engineering,
Modifications:
9-sep-03, VF,
8-sep-03, MM, Martin Matousek programmed the GUI enviroment.