User Tools

Site Tools


using_the_mean_filter_with_the_rotate_gesture

Using The "Mean Filter" With The Rotate Gesture

The Mean filter

<Gesture id="n-rotate-noise-filter" type="rotate">
    <match>
        <action>
            <initial>
                <cluster point_number="0" point_number_min="2" point_number_max="10"/>
            </initial>
        </action>
    </match>
    <analysis>
        <algorithm class="kinemetric" type="continuous">
            <library module="rotate"/>
            <returns>
                    <property id="rotate_dtheta" result="dtheta"/>
            </returns>
        </algorithm>
    </analysis>    
    <processing>
        <mean_filter>
            <property ref="rotate_dtheta" active="true" frames="6"/>
        </mean_filter>
        <delta_filter>
            <property ref="rotate_dtheta" active="true" delta_min="0.01" delta_max="20"/>
        </delta_filter>
    </processing>
    <mapping>
        <update dispatch_type="continuous">
            <gesture_event  type="rotate">
                <property ref="rotate_dtheta" target="rotate"/>
            </gesture_event>
        </update>
    </mapping>
</Gesture>
using_the_mean_filter_with_the_rotate_gesture.txt · Last modified: 2019/01/29 19:07 (external edit)