Statistics for Automatic detection of salient objects and spatial relations in videos for a video database system