Object Trajectory Analysis in Video Indexing and Retrieval Applications