def test_01_06_get_temp_current_image(self): file_name = os.path.join(self.root_dir, "ExampleSBSImages", "Channel1-01-A-01.tif") ip = I.load_imageplus(file_name) W.set_temp_current_image(ip) ip_other = W.get_temp_current_image() self.assertEqual(ip.getID(), ip_other.getID())
def inject_image(self, pixels, name=''): '''inject an image into ImageJ for processing''' ij_processor = ijiproc.make_image_processor((pixels * 255.0).astype('float32')) image_plus = ijip.make_imageplus_from_processor(name, ij_processor) if sys.platform == "darwin": ijwm.set_temp_current_image(image_plus) else: ijwm.set_current_image(image_plus)
def test_01_05_set_temp_current_image(self): file_name = os.path.join(self.root_dir, "ExampleSBSImages", "Channel1-01-A-01.tif") ip = I.load_imageplus(file_name) W.set_temp_current_image(ip)
def test_01_06_get_temp_current_image(self): ip = I.load_imageplus(self.file_name) W.set_temp_current_image(ip) ip_other = W.get_temp_current_image() self.assertEqual(ip.getID(), ip_other.getID())
def test_01_05_set_temp_current_image(self): ip = I.load_imageplus(self.file_name) W.set_temp_current_image(ip)