The invention includes a method of depositing a noble metal. Based upon the measurement, an image processing unit 6 calculates a slope angle of the surface of the specimen, and determines candidates for cross-sectional shape of the specimen. A detector assembly receives at least part of the X-ray radiation after it passes through the object.