Taking Flat Calibration Frames for Better Image Processing