#ifndef __MOTION_FLOW_H__
#define __MOTION_FLOW_H__

#include "constants.h"
#include "ipl.h"
#include "mytypes.h"

/* assuming 1 indexed 
 * returns 1 or 0 if successful */
int computeMotionFlow(int maxframe);

/* returns a [IMAGE_WIDTH][IMAGE_HEIGHT][2] array where [][][0] is x and [][][1] is y
 * values for vector field 
 * the array is the vector field associated with the frame at index and index-1
 * note: MUST DEALLOCATE YOURSELF!
 * note2: index = 1 is meaningless, returns NULL
*/
image_t* getMotionFlow(int start, int nFrames, IplImage** mhiReturn);
#endif 
