Method for acquiring an image of at least one celestial body, comprising the following steps: - using a device comprising a hollow body into which light rays coming from at least one celestial body under observation enter during use, said celestial body under observation being chosen from among at least a first celestial body of a first nature and a second celestial body of a second nature, the nature of the first celestial body being different from the nature of the second celestial body, - arranging an optical system (31, 382, 383) having an optical axis in the hollow body, which optical system (31, 382, 383) is configured such that the light rays form an image of the celestial body under observation in an image focus located in a focal plane, - arranging a matrix of optical sensors in the image focus in order to acquire the image of the celestial body under observation, which matrix has a plurality n of unitary pixels P 1, characterized in that it also comprises the following steps: - defining a first configuration of optical sensors of the matrix so as to acquire the image of the first celestial body of a first nature, said first configuration having the plurality n of unitary pixels P 1, n being a natural integer, - defining at least one second configuration of optical sensors of the matrix so as to acquire the image of the second celestial body of a second nature, said second configuration having a plurality m 2 of macro-pixels P 2 formed by groups of unitary pixels P 1, m 2 being a natural integer, - selecting one of the configurations (20, 21) of optical sensors to acquire the image of the celestial body formed in the image focus, the configuration of optical sensors being selected on the basis of the nature of the celestial body under observation, either the abovementioned first celestial body of a first nature or the abovementioned second celestial body of a second nature. - using a device comprising a hollow body into which light rays coming from at least one celestial body under observation enter during use, said celestial body under observation being chosen from among at least a first celestial body of a first nature and a second celestial body of a second nature, the nature of the first celestial body being different from the nature of the second celestial body, - arranging an optical system (31, 382, 383) having an optical axis in the hollow body, which optical system (31, 382, 383) is configured such that the light rays form an image of the celestial body under observation in an image focus located in a focal plane, - arranging a matrix of optical sensors in the image focus in order to acquire the image of the celestial body under observation, which matrix has a plurality n of unitary pixels P 1, - defining a first configuration of optical sensors of the matrix so as to acquire the image of the first celestial body of a first nature, said first configuration having the plurality n of unitary pixels P 1, n being a natural integer, - defining at least one second configuration of optical sensors of the matrix so as to acquire the image of the second celestial body of a second nature, said second configuration having a plurality m 2 of macro-pixels P 2 formed by groups of unitary pixels P 1, m 2 being a natural integer, - selecting one of the configurations (20, 21) of optical sensors to acquire the image of the celestial body formed in the image focus, the configuration of optical sensors being selected on the basis of the nature of the celestial body under observation, either the abovementioned first celestial body of a first nature or the abovementioned second celestial body of a second nature.