1. An electronic focus correction system for correcting focus aberrations in an electro-optical system having means for providing electrical signals representative of a scene of image data, said electronic focus correction system comprising: first means for providing plural sets of weighting coefficients; second means for multiplying the electrical signals corresponding to a window around each pixel of image data by a set of said weighting coefficients and for assigning to each pixel a weighted signal equal to the sum of the products of the coefficients times the electrical signals within the window to provide one of a plurality of weighted sequential output signals which constitute a corrected image; third means responsive to the output of said second means for measuring a figure of merit of said output image; and fourth means operatively connected to said third means for selectively providing control signals, in response to said measured figure of merit, to change said plurality of weighted coefficients to thereby optimize said figure of merit.