Loading bin/image_match.py +17 −37 Original line number Diff line number Diff line Loading @@ -8,20 +8,7 @@ from autocnet.graph.network import CandidateGraph from autocnet.fileio.io_controlnetwork import to_isis from autocnet.fileio.io_controlnetwork import write_filelist if __name__ == '__main__': # parses command line arguments into a single args variable def parse_arguments(): parser = argparse.ArgumentParser() parser.add_argument('filename', action='store') args = parser.parse_args() return args # Matches the images in the input file using various candidate graph methods # produces two files usable in isis def match_images(args): cg = CandidateGraph.from_adjacency(args.filename, basepath='/home/acpaquette/Desktop/') cg = CandidateGraph.from_adjacency(args.filename, basepath='') # Apply SIFT to extract features cg.extract_features(method='sift', extractor_parameters={'nfeatures': 1000}) Loading @@ -48,10 +35,3 @@ if __name__ == '__main__': write_filelist(filelist, 'TestList.lis') to_isis('TestList.net', cnet, mode='wb', targetname='Moon') # Ticket calls for a user specified "file list". # What kind of "file list" should this ui take? Should it be in the form of a .json file or should we allow the user # to enter the images he/she wants to look at in particular and parse them into a .json? command_line_args = parse_arguments() match_images(command_line_args) No newline at end of file Loading
bin/image_match.py +17 −37 Original line number Diff line number Diff line Loading @@ -8,20 +8,7 @@ from autocnet.graph.network import CandidateGraph from autocnet.fileio.io_controlnetwork import to_isis from autocnet.fileio.io_controlnetwork import write_filelist if __name__ == '__main__': # parses command line arguments into a single args variable def parse_arguments(): parser = argparse.ArgumentParser() parser.add_argument('filename', action='store') args = parser.parse_args() return args # Matches the images in the input file using various candidate graph methods # produces two files usable in isis def match_images(args): cg = CandidateGraph.from_adjacency(args.filename, basepath='/home/acpaquette/Desktop/') cg = CandidateGraph.from_adjacency(args.filename, basepath='') # Apply SIFT to extract features cg.extract_features(method='sift', extractor_parameters={'nfeatures': 1000}) Loading @@ -48,10 +35,3 @@ if __name__ == '__main__': write_filelist(filelist, 'TestList.lis') to_isis('TestList.net', cnet, mode='wb', targetname='Moon') # Ticket calls for a user specified "file list". # What kind of "file list" should this ui take? Should it be in the form of a .json file or should we allow the user # to enter the images he/she wants to look at in particular and parse them into a .json? command_line_args = parse_arguments() match_images(command_line_args) No newline at end of file