def test_compare_rmse(self): rmse = sewar.rmse(self.read('gry'), self.read('gry_const')) rmse_sw, _ = sewar.rmse_sw(self.read('gry'), self.read('gry_const'), ws=510) print(rmse, rmse_sw) self.assertTrue(abs(rmse - rmse_sw) < self.eps)
def test_color_sw(self): rmse, _ = sewar.rmse_sw(self.read('clr'), self.read('clr')) self.assertTrue(rmse == 0)
def test_gray_sw(self): rmse, _ = sewar.rmse_sw(self.read('gry'), self.read('gry')) self.assertTrue(rmse == 0)