A system for generating a focused color image of an object, the system comprising: a light source that produces light comprising a first wavelength and light comprising a second wavelength different from the first wavelength; an optics system optically coupled to the light source and operable to: focus the first wavelength to a first wavelength focal length and scan the first wavelength focal length through a plurality of different first wavelength focal lengths; and focus the second wavelength to a second wavelength focal length and scan the second wavelength focal length through a plurality of different second wavelength focal lengths; a detector configured to collect first wavelength image data corresponding to the first wavelength of light reflected from the object for the plurality of first wavelength focal lengths and second wavelength image data corresponding to the second wavelength of light reflected from the object for the plurality of second wavelength focal lengths; and a processor configured to, for each of a plurality of different locations in the focused color image: select one of the first wavelength focal lengths for which the first wavelength is focused relative to the object at the respective location; select one of the second wavelength focal lengths for which the second wavelength is focused relative to the object at the respective location; and combine the first wavelength image data corresponding to the selected first wavelength focal length for the respective location and the second wavelength image data corresponding to the selected second wavelength focal length for the respective location, thereby generating focused color image data for the respective image location for the focused color image of the object. a light source that produces light comprising a first wavelength and light comprising a second wavelength different from the first wavelength; an optics system optically coupled to the light source and operable to: focus the first wavelength to a first wavelength focal length and scan the first wavelength focal length through a plurality of different first wavelength focal lengths; and focus the second wavelength to a second wavelength focal length and scan the second wavelength focal length through a plurality of different second wavelength focal lengths; focus the first wavelength to a first wavelength focal length and scan the first wavelength focal length through a plurality of different first wavelength focal lengths; and focus the second wavelength to a second wavelength focal length and scan the second wavelength focal length through a plurality of different second wavelength focal lengths; a detector configured to collect first wavelength image data corresponding to the first wavelength of light reflected from the object for the plurality of first wavelength focal lengths and second wavelength image data corresponding to the second wavelength of light reflected from the object for the plurality of second wavelength focal lengths; and a processor configured to, for each of a plurality of different locations in the focused color image: select one of the first wavelength focal lengths for which the first wavelength is focused relative to the object at the respective location; select one of the second wavelength focal lengths for which the second wavelength is focused relative to the object at the respective location; and combine the first wavelength image data corresponding to the selected first wavelength focal length for the respective location and the second wavelength image data corresponding to the selected second wavelength focal length for the respective location, thereby generating focused color image data for the respective image location for the focused color image of the object. select one of the first wavelength focal lengths for which the first wavelength is focused relative to the object at the respective location; select one of the second wavelength focal lengths for which the second wavelength is focused relative to the object at the respective location; and combine the first wavelength image data corresponding to the selected first wavelength focal length for the respective location and the second wavelength image data corresponding to the selected second wavelength focal length for the respective location, thereby generating focused color image data for the respective image location for the focused color image of the object.