An electronic microscope having a camera unit which comprises at least one electronic image sensor for generating primary image data sets and which comprises an imaging optics for generating an image of an object on the image sensor; an electronic viewfinder; an adjustment device for varying a focal position of the camera unit; a control device; and a computing device, wherein the control device is adapted to control the adjustment device to make a cyclically repeating variation of the focal position of the camera unit between a plurality of focal values and to control the image sensor to generate a respective primary image data set for each of the plurality of focal values; wherein the computing device is adapted to determine a secondary image data set from the primary image data sets generated for the plurality of focal values, said secondary image data set having an extended depth of field relative to the respective primary image data sets; wherein the electronic viewfinder is adapted to display an image corresponding to the secondary image data set; wherein the electronic microscope is configured as a stereo microscope, with the control device being adapted to control the at least one image sensor to generate a respective primary image data set of a right channel and of a left channel for each of the plurality of focal values; wherein the computing device is adapted to determine a respective secondary image data set of the right channel and of the left channel from the primary image data sets generated for the plurality of focal values, said secondary image data set having an extended depth of field relative to the respective primary image data sets; and wherein the electronic viewfinder is adapted to display a respective image of the right channel and of the left channel corresponding to the respective secondary image data set, characterized in that the electronic microscope is configured as a surgical microscope, with the computing device further being adapted to determine the respective secondary image data set of the right channel and of the left channel in that - the primary image data sets of the right channel and the primary image data sets of the left channel are divided into a plurality of image zones corresponding to one another with respect to the two channels; - the primary image data sets generated for the plurality of focal values are evaluated within the image zones for only one of the two channels with respect to a respective degree of sharpness, with the focal value having the highest degree of sharpness being identified; and - the respective secondary image data set for both the right channel and the left channel is determined by selecting for the plurality of image zones the data of that primary image data set that corresponds to the focal value identified for the one of the two channels. - the primary image data sets of the right channel and the primary image data sets of the left channel are divided into a plurality of image zones corresponding to one another with respect to the two channels; - the primary image data sets generated for the plurality of focal values are evaluated within the image zones for only one of the two channels with respect to a respective degree of sharpness, with the focal value having the highest degree of sharpness being identified; and - the respective secondary image data set for both the right channel and the left channel is determined by selecting for the plurality of image zones the data of that primary image data set that corresponds to the focal value identified for the one of the two channels.