def test_flat_image_interp2d(self): img = np.zeros((6, 9)) npoints = 4 res = interpolate_image(img, num_points=npoints, method='interp2d', kind='cubic') expected = np.zeros((6 * (npoints + 1), 9 * (npoints + 1))) assert_equal(res, expected)
def test_zero_point_rbf(self): img = np.zeros((6, 9)) npoints = 0 res = interpolate_image(img, num_points=npoints, method='rbf', kind='cubic') expected = np.zeros((6 * (npoints + 1), 9 * (npoints + 1))) assert_equal(res, expected)