From: aaron b. <as_...@ya...> - 2006-03-31 20:50:41
|
Hi Kenneth, Remember the issue I have with tracking motion not working because of the decaying image? You've fixed that for me in the past by only comparing a frame to the previous one, by editing in motion.c: > for (i=cnt->imgs.size-1; i>=0; i--) { > cnt->imgs.ref[i]=(cnt->imgs.ref[i]+newimg[i])/2; > } > > and replace it with > memcpy(cnt->imgs.ref, newimg, cnt->imgs.size); > However, the current version of motion.c now looks like: for (i=cnt->imgs.size-1; i>=0; i--) { *imgs_ref_ptr = (*imgs_ref_ptr + *newimg_ptr)/2; imgs_ref_ptr++; newimg_ptr++; } and if I replace that whole chunk with the piece you gave me above, then motion detection fails. It compiles, but detects motion on every frame. So . . . something broke somewhere and I don't know how to fix it. Is there any chance you could tell me a fix to disable the decaying feature in the latest version? Thank you! Aaron __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |