The present invention is a slit lamp mounted eye imaging, a slit lamp integrated, a handheld, OCT integrated, or attached to a separate chinrest-joystick assembly apparatus and method for producing a wide field and/or magnified views of the posterior or the anterior segments of an eye through an undilated or dilated pupil. The apparatus images sections and focal planes and utilizes an illumination system that uses one or more LEDs, shifting optical elements, flipping masks, and/or aperture stops where the light can be delivered into the optical system on optical axis or off axis from center of optical system and return imaging path from the eye, creating artifacts in different locations on the eye image. Image processing is employed to detect and eliminate artifacts and masks from images. The apparatus can be used in combination with an OCT, microscope and can be disposed in a hand-held housing for hand-held use.