Automatic white balancing and/or autoexposure as useful in a digital
camera extracts color channel gains from comparisons of image colors with
reference colors under various color temperature illuminants and/or
extracts exposure settings from illuminance mean, illuminance variance,
illuminance minimum, and illuminance maximum in areas of an image with a
trained neural network.