A method for increasing the spatial resolution and the contrast resolution of an image of matter in a region, said image produced by an imaging device, said spatial resolution being quantitatively defined as the reciprocal of the width at half maximum of the point spread function of said imaging device and said matter in said region, said contrast resolution being quantitatively defined as the reciprocal of the smallest contrast of an object imbedded in a background for which said object can be distinguished in said image, said contrast of an object being defined as the ratio of the difference of the intensity of the object and the intensity of the background over the sum of the intensity of the object and intensity of the background, said image consisting of a set of image values, said set of image values corresponding to selected points in said region, said imaging device generating electrical signals that are passed through transmitter beam formers, said transmitter beam formers producing focused electrical signals by applying a set of transmitter time delays and a set of transmitter amplitude scale factors to said generated electrical signals, said focused electrical signals then being transduced into transmitted wavefield energy by one or more transducer arrays, said transducer arrays including one or more transducer elements, said transmitted wavefield energy being transmitted into said region and being scattered from matter in said region, said transducer arrays transducing into receiver electrical signals reflected wavefield energy that was scattered by said matter, said receiver electrical signals being passed through receiver beam formers, said receiver beam formers producing focused receiver electrical signals by applying a set of receiver time delays and a set of receiver amplitude scale factors to said receiver electrical signals, said focused receiver electrical signals then being used to construct said set of image values, said method comprising the steps of:
- (a) defining an image resolution measure function as a scaler value computed from one or more portions of said set of image values, said image resolution measure function defined such that said spatial and contrast resolutions are increased for an increase in said image resolution measure function up to a maximum;
- (b) defining a set of control parameters and defining a control function such that a primary machine focusing set is equal to the sum of the output of said control function having as an input said set of control parameters plus a selected initial machine focusing set, wherein said primary machine focusing set is the union of said set of transmitter time delays, said set of transmitter amplitude scale factors, said set of receiver time delays, and said set of receiver amplitude scale factors, and wherein said selected initial machine focusing set is the union of said selected initial set of transmitter time delays, said selected initial set of transmitter amplitude scale factors, said selected initial set of receiver time delays, and said selected initial set of receiver amplitude scale factors;
- (c) setting said set of control parameters equal to a selected set of starting values, computing said primary machine focusing set by inputting said control parameters into said control function and adding said initial machine focusing set to the output of said control function, and re-computing said image resolution measure function from said one or more portions of said set of image values, setting an initial resolution measure function equal to said image resolution measure function;
- (d) setting a set of auxiliary vectors equal to a set of initial vector values;
- (e) performing an optimization step comprising the following steps of:
- (i) computing a gradient vector of said image resolution measure function with respect to said set of control parameters;
- (ii) computing a search direction vector equal to the sum of:
- (A) said gradient vector;
- plus
- (B) an auxiliary direction vector derived from said set of auxiliary vectors and said gradient vector, when said optimization step is the first step, setting a initial gradient vector equal to said gradient vector and computing a magnitude of said initial gradient vector;
- (iii) update said set of auxiliary vectors using said gradient vector;
- (iv) computing a search length and then adding said search direction vector multiplied by said search length to said set of control parameters, said search length computed such that said image resolution measure function is increased;
- (v) computing said primary machine focusing set by inputting said set of control parameters into said control function and adding said initial machine focusing set to the output of said control function, and re-computing said image resolution measure function from said one or more portions of said set of image values, computing one of:
- (A) an absolute value of the percent change in said image resolution measure function using said image resolution measure function and said initial image resolution function;
- and
- (B) a magnitude of said gradient vector and a percent change in said magnitude of said gradient vector using said magnitude of said gradient vector and said magnitude of said initial gradient vector;
- (vi) repeating steps e(i)1 through e(v)5 when one of:
- (A) said absolute value of the percent change in said image resolution measure function is greater than a selected tolerance;
- and
- (B) said percent change in said magnitude of said gradient vector is greater than a selected tolerance;
- (f) storing said set of image values in a computer memory when one of:
- (A) said absolute value of the percent change in said image resolution measure function is less than or equal to a selected tolerance;
- and
- (B) said percent change in said magnitude of said gradient vector is less than or equal to a selected tolerance.