Commit 278305de authored by Fang Yuedong's avatar Fang Yuedong
Browse files

fix the memory issue when add brighter-fatter

parent a6664237
......@@ -191,6 +191,6 @@ def add_brighter_fatter(img):
arr_imc[:]= np.zeros(nn)
lib_bf.addEffects(nx, ny, arr_ima, arr_imc, bit_flag)
img.array[:, :] = np.array(arr_imc[:]).reshape([nx, ny])
img.array[:, :] = np.reshape(arr_imc, [nx, ny])
del arr_ima, arr_imc
return img
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment