You may check this. It was for opencv3, but you would get most of it. Once you have the correction matrix, you may try this for GPU remapping.