A method for imaging a scene using an imaging system making it possible to obtain an image of the scene, the imaging system comprising a device for acquiring frames according to acquisition parameters, said device comprising a detector comprising pixels, and a unit for processing the acquired frames, characterized in that the method comprises the following steps: A) selection of an imaging mode from among a conventional imaging mode, a natural photon-counting imaging mode and a forced photon-counting imaging mode, the conventional imaging mode being suitable when a photon flux per pixel and per frame is large, and in which at least one frame is acquired and then said frames are summed to obtain an image the natural photon counting imaging mode being suitable when said photon flux per pixel and per frame is of very low level, the forced photon-counting imaging mode corresponding to a photon flux per pixel and per frame intermediate between that corresponding to the conventional imaging mode and that corresponding to the natural photon counting imaging mode and in which the photon flux per pixel and per frame is reduced so as to obtain a level corresponding to the natural photon counting imaging mode and, depending on the selected imaging mode, determination by the processing unit of the corresponding acquisition parameters, B) acquisition of at least one frame by the acquisition device parametrized with said acquisition parameters, and transmission of the frames that were acquired to the processing unit in order to obtain an image, the image being obtained at the end of the following sub-steps if the selected imaging mode is the natural photon-counting imaging mode or the forced photon-counting imaging mode: - binarization of the frames that were acquired and - summing the binarized frames to obtain an image; C) estimation of the quality of the image obtained; D) D1) depending on the quality of the image obtained, determining one or two new imaging modes selected from among the conventional imaging mode, the natural photon-counting imaging mode or the forced photon-counting imaging mode; D2) repeating steps A, B, C and D with the new imaging mode selected as the imaging mode. A) selection of an imaging mode from among a conventional imaging mode, a natural photon-counting imaging mode and a forced photon-counting imaging mode, the conventional imaging mode being suitable when a photon flux per pixel and per frame is large, and in which at least one frame is acquired and then said frames are summed to obtain an image the natural photon counting imaging mode being suitable when said photon flux per pixel and per frame is of very low level, the forced photon-counting imaging mode corresponding to a photon flux per pixel and per frame intermediate between that corresponding to the conventional imaging mode and that corresponding to the natural photon counting imaging mode and in which the photon flux per pixel and per frame is reduced so as to obtain a level corresponding to the natural photon counting imaging mode and, depending on the selected imaging mode, determination by the processing unit of the corresponding acquisition parameters, the conventional imaging mode being suitable when a photon flux per pixel and per frame is large, and in which at least one frame is acquired and then said frames are summed to obtain an image the natural photon counting imaging mode being suitable when said photon flux per pixel and per frame is of very low level, the forced photon-counting imaging mode corresponding to a photon flux per pixel and per frame intermediate between that corresponding to the conventional imaging mode and that corresponding to the natural photon counting imaging mode and in which the photon flux per pixel and per frame is reduced so as to obtain a level corresponding to the natural photon counting imaging mode and, depending on the selected imaging mode, determination by the processing unit of the corresponding acquisition parameters, B) acquisition of at least one frame by the acquisition device parametrized with said acquisition parameters, and transmission of the frames that were acquired to the processing unit in order to obtain an image, the image being obtained at the end of the following sub-steps if the selected imaging mode is the natural photon-counting imaging mode or the forced photon-counting imaging mode: - binarization of the frames that were acquired and - summing the binarized frames to obtain an image; - binarization of the frames that were acquired and - summing the binarized frames to obtain an image; C) estimation of the quality of the image obtained; D) D1) depending on the quality of the image obtained, determining one or two new imaging modes selected from among the conventional imaging mode, the natural photon-counting imaging mode or the forced photon-counting imaging mode; D2) repeating steps A, B, C and D with the new imaging mode selected as the imaging mode.