The weighting factor for each pixel used in the least-squares fit is given by , where is the pixel variance ( ).