예제 #1
0
 def image(self):
     print("Calculating hologram")
     image = self.image_holo
     image = subtract(image, self.image_ref)
     image = subtract(image, self.image_obj)
     if self.equalize_image:
         image = equalize(image)
     return image
예제 #2
0
 def image(self):
     print("Calculating hologram")
     image = self.image_holo
     image = subtract(image, self.image_ref)
     image = subtract(image, self.image_obj)
     if self.equalize_image:
         image = equalize(image)
     return image
예제 #3
0
def main():
    filenames = sys.argv[1:]
    if len(filenames) < 2:
        print("Se requieren al menos dos ficheros para operar la sustracción.")
        return 1

    files = [(filename, imread(filename)) for filename in filenames]
    name, left = files.pop(0)

    for right_name, right in files:
        left = subtract(left, right)
        filename_tail = path.split(right_name)[1]
        name += "-%s" % filename_tail

    print("Writting to %s" % name)
    imwrite(left, name)
예제 #4
0
def main():
    filenames = sys.argv[1:]
    if len(filenames) < 2:
        print("Se requieren al menos dos ficheros para operar la sustracción.")
        return 1

    files = [(filename, imread(filename)) for filename in filenames]
    name, left = files.pop(0)

    for right_name, right in files:
        left = subtract(left, right)
        filename_tail = path.split(right_name)[1]
        name += "-%s" % filename_tail

    print("Writting to %s" % name)
    imwrite(left, name)