Example #1
0
                         ])
    def get_parameters(self):
        p = super(HabcamLighfieldJoe,self).get_parameters()
        p['filter_size'] = 501
        return p

# usage:
# python lightfield.py {config file} {command} {arguments}
# commands:
# q (file1, file2, file3, ... filen)
#   enqueue files for processing
# q -
#   read a list of files to process from stdin
# r
#   requeue failed processing jobs
# w
#   run as a worker
# p
#   consume provenance log
# log
#   show logging messages as they come in
if __name__=='__main__':
    config = get_config(sys.argv[1])
    if sys.argv[2] == 'p':
        pl = ProvenanceLogger(config)
        cli(pl, [None,None,'w'])
    else:
        hl = HabcamLightfieldNhv(config)
        cli(hl, sys.argv)

Example #2
0
        TRIM='-evalchannels "[1]+[2] > 0 ? val : 0" "val" "val" -crop'
        return ' '.join([self.config.imagestack_exec_path,
                         '-load %(img_in)s',
                         DEBAYER,
                         '-dup',
                         CROP_L, ILLUM_CORRECT, CONTRAST,
                         '-pull 1',
                         CROP_R, ILLUM_CORRECT, CONTRAST,
                         ALIGN, GRAYSCALE, CYAN_ONLY, '-pull 1', GRAYSCALE, RED_ONLY, '-add',
                         TRIM,
                         '-save %(img_out)s'
                         ])

# usage:
# python stereo.py {config file} {command} {arguments}
# commands:
# q (file1, file2, file3, ... filen)
#   enqueue files for processing
# q -
#   read a list of files to process from stdin
# r
#   requeue failed processing jobs
# w
#   run as a worker
# log
#   show logging messages as they come in
if __name__=='__main__':
    hl = HabcamRedCyan(get_config(sys.argv[1]))
    cli(hl, sys.argv)