In medical imaging, nanomaterials such as gold nanoparticles and upconversion nanoparticles are used for their exceptional photon absorption and emission properties. These materials improve the resolution and contrast of images, enabling better diagnosis and monitoring of diseases.