The cleaning filters “clean” the user’s drawing, deleting and adjusting data. This data can then be processed by the various detection filters. Rather than hard-coding these filters, I opted for a modular system.
For the time being, Touch Interface Designer incorporates a single cleaning filter, which is not perfect and still needs to be improved. Don’t forget that the shape recognition system and its editor are still in the experimental phase.
Scale (Virtual Shape Scaling) #
Scale user’s drawing shape bound to virtual shape bound. Useful for length or dot based detection filter.
Create my own #
Simply create a class that inherit from VirtualShapeCleaner and override Evaluate function. Please note that the DrawData parameter is passed by reference. Any modification to this variable is reflected.