Direct Image Registration With Gain and Bias