If you set corner_response to 0 here, you can use np.empty above and save the redundant initialization step in np.zeros.