Loading files
35d5ba9d5This file is pinned to the selected release. Download the original to open it in your design tool.
from opensfm.large import metadataset
from opensfm.large import tools
class Command:
name = 'align_submodels'
help = 'Align submodel reconstructions'
def add_arguments(self, parser):
parser.add_argument('dataset', help='dataset to process')
def run(self, args):
meta_data = metadataset.MetaDataSet(args.dataset)
reconstruction_shots = tools.load_reconstruction_shots(meta_data)
transformations = \
tools.align_reconstructions(reconstruction_shots,
tools.partial_reconstruction_name,
True)
tools.apply_transformations(transformations)