Previously posted on old Pusu blog:
28 Mar ’05 – 22:32 by Cahit Güngör
As mentioned before the motion detection algorithm runs over 18 seconds on j2me platform only to compare two images. It is not a reasonable time if an application is to be run real-time. It is urgent decision to be made to leave or to stay on development. If this time interval can not be pulled down, the project will be senseless. So the motion detection algorithm is taken under focus to refine it. At last we have done it. Now it is running under 100 ms which is a reasonable time to detect motion when compared with 18 seconds. This an obviously great achievement. 🙂
What is done?
Float class is discarded and the difference is calculated more simple way instead of square root.
int array of RGB data is used instead of byte array RGB data which saves lots of converting time.
The most considerable difference is made when only one color from RGB data is used instead of 3 colors.
The following question if the motion detection algorithm work in this trimmed form.