A method of forming an image of a scene, the method including the steps of: - capturing a first image of the scene by exposing an image sensor to radiation from a first part of the electromagnetic spectrum using a first aperture and to radiation from a second part of the EM spectrum using a second aperture having a different size than the first aperture; and - forming the image of the scene on the basis of image data of the first image generated by the radiation from the first part of the EM spectrum and on the basis of image data of the first image generated by radiation from the second part of the EM spectrum, - wherein, simultaneously with capturing the first image, the scene is illuminated with additional radiation from the second part of the EM spectrum according to predetermined one or more illumination parameters, and wherein, previously to capturing the first image, the one or more illumination parameters are predetermined by: without providing said additional radiation from the second part of the EM spectrum, capturing a second image of the scene by exposing the image sensor to the radiation from the first part of the EM spectrum using the first aperture and to the radiation from the second part of the EM spectrum using the second aperture, generating image data of the second image associated with the first part of the EM spectrum and image data of the second image associated with the second part of the EM spectrum, based on the image data of the second image associated with the first part of the EM spectrum and the image data of the second image associated with the second part of the EM spectrum, determining a ratio between intensity of spectral energy associated with the first part of the EM spectrum or derivative thereof and intensity of spectral energy associated with the second part of the EM spectrum or derivative thereof, and setting the one or more illumination parameters based on the determined ratio. - capturing a first image of the scene by exposing an image sensor to radiation from a first part of the electromagnetic spectrum using a first aperture and to radiation from a second part of the EM spectrum using a second aperture having a different size than the first aperture; and - forming the image of the scene on the basis of image data of the first image generated by the radiation from the first part of the EM spectrum and on the basis of image data of the first image generated by radiation from the second part of the EM spectrum, - wherein, simultaneously with capturing the first image, the scene is illuminated with additional radiation from the second part of the EM spectrum according to predetermined one or more illumination parameters, and wherein, previously to capturing the first image, the one or more illumination parameters are predetermined by: without providing said additional radiation from the second part of the EM spectrum, capturing a second image of the scene by exposing the image sensor to the radiation from the first part of the EM spectrum using the first aperture and to the radiation from the second part of the EM spectrum using the second aperture, generating image data of the second image associated with the first part of the EM spectrum and image data of the second image associated with the second part of the EM spectrum, based on the image data of the second image associated with the first part of the EM spectrum and the image data of the second image associated with the second part of the EM spectrum, determining a ratio between intensity of spectral energy associated with the first part of the EM spectrum or derivative thereof and intensity of spectral energy associated with the second part of the EM spectrum or derivative thereof, and setting the one or more illumination parameters based on the determined ratio. without providing said additional radiation from the second part of the EM spectrum, capturing a second image of the scene by exposing the image sensor to the radiation from the first part of the EM spectrum using the first aperture and to the radiation from the second part of the EM spectrum using the second aperture, generating image data of the second image associated with the first part of the EM spectrum and image data of the second image associated with the second part of the EM spectrum, based on the image data of the second image associated with the first part of the EM spectrum and the image data of the second image associated with the second part of the EM spectrum, determining a ratio between intensity of spectral energy associated with the first part of the EM spectrum or derivative thereof and intensity of spectral energy associated with the second part of the EM spectrum or derivative thereof, and setting the one or more illumination parameters based on the determined ratio.