Near-duplicate detection and alignment for multi-view videos