[android-developers] Re: Filtering Android Sensors Noise

2010-05-26 Thread Alfonso
First of all, thanks everybody for their answers. I've been in
journey, that's the reason because of I haven't answered before. I've
tried average and tresholding, althougt not too much extensively.
Special thanks, Yahel, the parralax is very important. I've seen that
is present in the digital filter implemented in the class
OrientationEventListener.

About averaging historical values, I just want to mean I was
averaging the n last values catched by the sensor. Where n is an
integer greater than 0. By the way Frank Weiss, if you had got
success, would you been so kind as to share the magic algorythm?

Thanks everybody again

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Filtering Android Sensors Noise

2010-05-26 Thread Frank Weiss
I posted my code in this thread:
http://groups.google.com/group/android-developers/browse_thread/thread/d61f7790afb3f8b6/770777368e823548?lnk=raot

That code is for a band pass filter. Refer to the linked article which gives
the formulas for low pass filter as well.

http://www.dspguide.com/ch19.htm

Please read at least the first two sections. The end of the second section
has the formulas for a low pass filter.

On Wed, May 26, 2010 at 6:06 PM, Alfonso alfonsocris...@gmail.com wrote:

 First of all, thanks everybody for their answers. I've been in
 journey, that's the reason because of I haven't answered before. I've
 tried average and tresholding, althougt not too much extensively.
 Special thanks, Yahel, the parralax is very important. I've seen that
 is present in the digital filter implemented in the class
 OrientationEventListener.

 About averaging historical values, I just want to mean I was
 averaging the n last values catched by the sensor. Where n is an
 integer greater than 0. By the way Frank Weiss, if you had got
 success, would you been so kind as to share the magic algorythm?

 Thanks everybody again

 --
  You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Filtering Android Sensors Noise

2010-05-22 Thread Yahel
In addition to averaging.

You can also investigate tresholding.
Display your icons and don't move them unless there is a minimum
amount of displacement. You'll need fine tuning here, it will
compensate for small movement of the hand while looking through the
phone.

Don't forget parralax in your work : Averaging and thresholding values
should be proportionate to the z value of the point of interest your
icon is showing.

Yahel

On 21 mai, 19:30, Alfonso alfonsocris...@gmail.com wrote:
 HI,

 I'm programming an Augmented Reality application. It's development
 it's in an advanced state but I can't place the icons on the screen so
 still as anothers programs does (Layar, in example). This is because
 of the continuous variations of the sensors. I've tried the three
 modes of the sensors (FAST, GAME, and NORMAL) but I only get them to
 move more or less fast. The shivering is the same at different speed.

 Finally I thougth I could reach my goal with a digital filter,
 averaging historical values. But again the icons continues moving,
 specially the most far placed ones (in the z axis). Please, could some
 one help me with some clue?

 Of course, any help will be appreciated.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Filtering Android Sensors Noise

2010-05-22 Thread Yahel


On 22 mai, 02:38, BobG bobgard...@aol.com wrote:
 Averaging is the right algorithm. The tradeoff is averaging lots of
 readings makes the movement smoother but slower to respond (lag). try
 averaging 8,16,32,64 samples. When it gets too slow, back up one.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Filtering Android Sensors Noise

2010-05-22 Thread Yahel
Oh and I forgot,

The other option you have that would be very accurate but requires a
biggest computational and battery overhead : Form recognition.

Using specific points on the image and following them will give you a
much better tracking(after effects style) on small movements.
Completely removing the bouncing around of your icons.

Good luck.

Yahel.

On 21 mai, 19:30, Alfonso alfonsocris...@gmail.com wrote:
 HI,

 I'm programming an Augmented Reality application. It's development
 it's in an advanced state but I can't place the icons on the screen so
 still as anothers programs does (Layar, in example). This is because
 of the continuous variations of the sensors.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Filtering Android Sensors Noise

2010-05-21 Thread BobG
Averaging is the right algorithm. The tradeoff is averaging lots of
readings makes the movement smoother but slower to respond (lag). try
averaging 8,16,32,64 samples. When it gets too slow, back up one.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en