Stylus state modeler
Up till now we have only used the raw input stream to create a new
smoothed stream of positions, leaving behind the pressure attribute.
This is what’s done here, to model the state of the stylus for these new
position based on the pressure data of the raw input strokes.
Algorithm Stylus state modeler
Input :
-
input stream with pressure information
-
query position
-
search window
(From stylus_state_modeler_max_input_samples),
initialize
,
,
for
to
do
- Find
the position that’s closest to
on the segment
and denote
the value such that
- if
-
- endif
endfor
calculate
Output : interpolated pressure