Commit 771a97a1 authored by Adam Paquette's avatar Adam Paquette
Browse files

Implimented if name block and restructured code modulating the argument pars and the image match

parent 58ac3cc0
Loading
Loading
Loading
Loading
+35 −20
Original line number Diff line number Diff line
@@ -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
@@ -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