In histology, intraoperative imaging is primarily used to assess the margins of excised tissues, ensuring that all of the targeted tissue, such as a tumor, has been removed. Techniques like intraoperative MRI and ultrasound are often employed to confirm that the surgical goals have been met. This can be particularly important in cancer surgeries where complete removal of malignant cells is critical.