Quantitative measurement of x-ray images with a gated microchannel plate system in a z-pinch plasma experiment