Hi, I am trying to detect moving objects to obatin their corresponding X and Y coordinates from a video. I was using 'opticFlow' algorithm for this process. I am unable to understand on how to extract the X and Y coordinates from the velocity field which the function 'estimateFlow' returns. Any help to solve this will be appreaciated.
flow = estimateFlow(opticFlow,frameGray);