Follow point in AVI
- To: mathgroup at smc.vnet.net
- Subject: [mg123920] Follow point in AVI
- From: nlko <niko at homebound.de>
- Date: Fri, 30 Dec 2011 07:06:42 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
Hello,
I want to follow a horizontal movement of a black object on white
background in an AVI.
My concept:
- Import the first frame of the AVI
- The frame is a "list of lists" : (x = 0 to 320, y = 0 to 240, z =
RGBvalues)?
How is the list sorted?
- the AVI is black and white, RGB is coded with 8 bits?
- values : 0 to 255 from white to black?
- take one fixed y and show a list of x and their RGBvalues
- go through x (from left to right, 0 to 320) and set a threshold for
the RGBvalue :
If RGB > some value, then : pick position x
- save position of x in a list
- import next frame of AVI
Is it a good way to solve the problem?
Do you have any hints?
Thanks in advance,
Nlko