Automatic Maximum-Aperture Indexing