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())
def test_cfa(self): data, cfa = tiffutils.load_dng(field_dng) self.assertEqual(cfa, tiffutils.CFA_GRBG)
def test_data(self): reference = np.load(field_data) data, cfa = tiffutils.load_dng(field_dng) self.assertTrue((data==reference).all())
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)