Loading bin/image_match.py +35 −20 Original line number Diff line number Diff line Loading @@ -8,6 +8,19 @@ 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/') # Apply SIFT to extract features Loading Loading @@ -40,3 +53,5 @@ to_isis('TestList.net', cnet, mode='wb', targetname='Moon') # 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 +35 −20 Original line number Diff line number Diff line Loading @@ -8,6 +8,19 @@ 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/') # Apply SIFT to extract features Loading Loading @@ -40,3 +53,5 @@ to_isis('TestList.net', cnet, mode='wb', targetname='Moon') # 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