I've been working on some stuff with gesture recognition with the [lcd] object. One problem I've encountered is that lcd doesn't output every value drawn unless the line is drawn very slowly.
I can get the length of a line drawn along a single axis (subtract the start value from the end value...) but I can't measure the length of a line drawn in actual pixels covered.
In particular, I'm working on a 'z' gesture. I've sorted out horiz. line recognition, but the diagonal is proving more tricky.
I was planning on having max test the length of the drawn diagonal line against the shortest possible length of the line given by pythagoras' theorum, and giving a maximum deviation after which the line can be deemed not diagonal.
There are two things I'd love to know -
1) Is there a way to work out the length of a line on a graph by comparing the two sets of coordinates?
2) Is there a similar object to [lcd], perhaps a 3rd party, that outputs every value? Can't find anything on maxobjects.com though.
Thanks, and merry christmas!