compute 2D response to normalize flatfield