コード例 #1
0
def processTheRun(options, imageFolder, cameraFolder, lidarFolder, orthoFolder,
                  fireballFolder, processedFolder, isSouth, refDemPath):
    '''Do all the run processing'''

    # Some care is taken with the --stereo-arguments argument to make sure it is passed correctly.
    processCommand = (
        ('%s %s %s %s --bundle-length %d --fireball-folder %s ' +
         '--ortho-folder %s --num-processes %d --num-threads %d ' +
         '--num-processes-per-batch %d --reference-dem %s') %
        (imageFolder, cameraFolder, lidarFolder, processedFolder,
         options.bundleLength, fireballFolder, orthoFolder,
         options.numProcesses, options.numThreads,
         options.numProcessesPerBatch, refDemPath))
    if isSouth:
        processCommand += ' --south'
    if options.startFrame:
        processCommand += ' --start-frame ' + str(options.startFrame)
    if options.stopFrame:
        processCommand += ' --stop-frame ' + str(options.stopFrame)
    if options.logBatches:
        processCommand += ' --log-batches'
    if options.cleanup:
        processCommand += ' --cleanup'
    if options.manyip:
        processCommand += ' --many-ip'

    processCommand += ' --stereo-arguments '

    logger = logging.getLogger(__name__)
    logger.info('Process command: process_icebridge_run ' + processCommand +
                options.stereoArgs.strip())
    args = processCommand.split()
    args += (options.stereoArgs.strip(), )  # Make sure this is properly passed
    process_icebridge_run.main(args)
コード例 #2
0
def processTheRun(options, imageFolder, cameraFolder, lidarFolder, orthoFolder,
                  fireballFolder, processedFolder, isSouth, refDemPath):
    
    '''Do all the run processing'''

    # Some care is taken with the --stereo-arguments argument to make sure it is passed correctly.
    processCommand = (('%s %s %s %s --bundle-length %d --fireball-folder %s ' +
                       '--ortho-folder %s --num-processes %d --num-threads %d ' +
                       '--reference-dem %s')
                      % (imageFolder, cameraFolder, lidarFolder, processedFolder,
                         options.bundleLength, fireballFolder, orthoFolder, options.numProcesses,
                         options.numThreads, refDemPath))
    if isSouth:
        processCommand += ' --south'
    if options.startFrame:
        processCommand += ' --start-frame ' + str(options.startFrame)
    if options.stopFrame:
        processCommand += ' --stop-frame ' + str(options.stopFrame)
    if options.logBatches:
        processCommand += ' --log-batches'
    if options.cleanup:
        processCommand += ' --cleanup'
    if options.manyip:
        processCommand += ' --many-ip'
        
    processCommand += ' --stereo-arguments '

    logger = logging.getLogger(__name__)
    logger.info('Process command: process_icebridge_run ' +
                processCommand + options.stereoArgs.strip())
    args = processCommand.split()
    args += (options.stereoArgs.strip(),) # Make sure this is properly passed
    process_icebridge_run.main(args)
コード例 #3
0
def processTheRun(imageFolder, cameraFolder, lidarFolder, orthoFolder,
                  processFolder, isSouth, bundleLength, startFrame, stopFrame,
                  numProcesses, numThreads):
    '''Do all the run processing'''

    processCommand = ((
        '%s %s %s %s --bundle-length %d --stereo-algorithm 1 --ortho-folder %s --num-processes %d --num-threads %d'
    ) % (imageFolder, cameraFolder, lidarFolder, processFolder, bundleLength,
         orthoFolder, numProcesses, numThreads))
    if isSouth:
        processCommand += ' --south'
    if startFrame:
        processCommand += ' --start-frame ' + str(startFrame)
    if stopFrame:
        processCommand += ' --stop-frame ' + str(stopFrame)

    logger = logging.getLogger(__name__)
    logger.info('Process command: ' + processCommand)
    process_icebridge_run.main(processCommand.split())