X-rays are used to detect and photograph defects of internal structure of a body such as metals, machine parts, cracks in wood, defects in diamonds and other precious stones, etc. They can reveal inhomogeneities—such as inclusions, lattice defects, etc in gems and stones.