Ejemplo n.º 1
0
 def __call__(self):
     config = seq_config_dict[self.path]
     try: 
         collect_seq_strategy = CompositeImage.CollectSeqStrategy()
         hdrs, single_imgs = collect_seq_strategy.parseDir(self.path,
                                                           config)
         # TODO: Még a HDR-eket nem vizsgálja
         target_dir = config.GetTargetDir()
         pano_config = CompositeImage.PanoWeakConfig(target_dir, 25)
         panos, single_imgs = collect_seq_strategy.parseIMGList(single_imgs,
                                                                pano_config)
         return (hdrs, panos, single_imgs)
     except IOError:  # handling the case when there are no raw files
         print "No RAW input to parse in %s" % self.path    
Ejemplo n.º 2
0
def ProcessFolder(cmd, seq_parser_config, directory):
    collect_seq_strategy = CompositeImage.CollectSeqStrategy()
    img_seqs, single_imgs = collect_seq_strategy.parseDir(
        directory, seq_parser_config)
    ProcessCImgList(cmd, seq_parser_config, img_seqs)