Esempio n. 1
0
 def image_obj(self):
     print("Loading object image")
     if self.filename_obj:
         image = imread(self.filename_obj, True)
         if self.resolution_limit != 0:
             image = limit_size(image, self.resolution_limit)
     else:
         image = np.zeros_like(self.image_holo)
     return image
Esempio n. 2
0
 def image_ref(self):
     print("Loading reference image")
     if self.filename_ref:
         image = imread(self.filename_ref, True)
         if self.resolution_limit != 0:
             image = limit_size(image, self.resolution_limit)
     else:
         image = np.zeros_like(self.image_holo)
     return image
Esempio n. 3
0
 def image_obj(self):
     print("Loading object image")
     if self.filename_obj:
         image = imread(self.filename_obj, True)
         if self.resolution_limit != 0:
             image = limit_size(image, self.resolution_limit)
     else:
         image = np.zeros_like(self.image_holo)
     return image
Esempio n. 4
0
 def image_ref(self):
     print("Loading reference image")
     if self.filename_ref:
         image = imread(self.filename_ref, True)
         if self.resolution_limit != 0:
             image = limit_size(image, self.resolution_limit)
     else:
         image = np.zeros_like(self.image_holo)
     return image
Esempio n. 5
0
 def image_holo(self):
     print("Loading hologram image")
     image = imread(self.filename_holo, True)
     if self.resolution_limit != 0:
         image = limit_size(image, self.resolution_limit)
     return image
Esempio n. 6
0
 def image_holo(self):
     print("Loading hologram image")
     image = imread(self.filename_holo, True)
     if self.resolution_limit != 0:
         image = limit_size(image, self.resolution_limit)
     return image