Exemple #1
0
 def test_data_compressed(self):
     tiffutils.save_dng(self.reference, self.name, compression=True)
     data, cfa = tiffutils.load_dng(self.name)
     self.assertTrue((data==self.reference).all())
Exemple #2
0
 def test_cfa(self):
     data, cfa = tiffutils.load_dng(field_dng)
     self.assertEqual(cfa, tiffutils.CFA_GRBG)
Exemple #3
0
 def test_data(self):
     reference = np.load(field_data)
     data, cfa = tiffutils.load_dng(field_dng)
     self.assertTrue((data==reference).all())
Exemple #4
0
 def test_cfa(self):
     tiffutils.save_dng(self.reference, self.name,
                        cfa_pattern=tiffutils.CFA_BGGR)
     data, cfa = tiffutils.load_dng(self.name)
     self.assertEquals(cfa, tiffutils.CFA_BGGR)