I’ve found an easy way to use image processing filters not found in touchlib. Using a program called roborealm (http://www.roborealm.com/index.php) you can easily add and play around with different filters and send the output to Touchlib using the virtual camera driver (http://www.roborealm.com/help/Virtual_Camera_Driver.php) as well as an updated “DSVL_config” file:
<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2005 rel. 3 U (http://www.altova.com)-->
<dsvl_input xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="DsVideoLib.xsd">
<camera input_device="roborealm" frame_width="640" frame_height="480" frame_rate="30.0" show_format_dialog="true">
<pixel_format>
<RGB24/>
</pixel_format>
</camera>
</dsvl_input>
It works very well.
However the project I’m working on requires another filter to be written from scratch to perform the Radon Transform of a pre filtered video source to help detect fingers and a peak detection algorithm to detect finger tips. In order to integrate a new filter into touchlib what do I have to add to the source file of my custom filter and what other source files do I need to modify?
