Experiments at the Trident Laser Facility have successfully demonstrated the use of x-ray fluorescence imaging (XRFI) to diagnose shocked carbonized resorcinol formaldehyde (CRF) foams doped with Ti. One laser beam created a shock wave in the doped foam. A second laser beam produced a flux of vanadium He-α x-rays, which in turn induced Ti K-shell fluorescence within the foam. Spectrally resolved 1D imaging of the x-ray fluorescence provided shock location and compression measurements. Additionally, experiments using a collimator demonstrated that one can probe specific regions within a target. These results show that XRFI is a capable alternative to path-integrated measurements for diagnosing hydrodynamic experiments at high energy density.