## 3 Materials and Methods
### Magnetic Resonance Imaging
The transverse plane, also known as the axial plane, divides the brain into upper (superior) and lower (inferior) sections. This orientation is commonly used for comprehensive brain assessments, providing detailed views of the brain's horizontal slices. Transverse images are essential for diagnosing conditions like strokes, brain injuries, and multiple sclerosis, as they reveal cross-sectional details that are not visible in other planes. Figure 2: Slice planning illustration. (**a**) Brain MRI image: During brain MRI examination, a sagittal brain image is generated, where the operator locates the lower extremities of the corpus callosum and positions the horizontal line passing through these two extremes. (**b**) Sagittal view of the brain. This revised text maintains all references and adheres to standard academic writing conventions without using a summary list format. To ensure accurate and efficient imaging, the process of slice planning involves meticulous alignment of anatomical landmarks. The corpus callosum (Figure 2b), situated in the longitudinal fissure, serves as a key reference point for this alignment. This critical structure, which facilitates communication between the brain's hemispheres, is carefully targeted to optimize image quality. The objective of this work is to automate the alignment process by localizing such structures from the images using advanced computer vision methods embedded in the imaging process. By leveraging computer vision, the alignment can be performed automatically, reducing the reliance on manual intervention and enhancing the precision and consistency of MRI scans. This approach aims to improve the efficiency and accuracy of brain MRI exams, ultimately benefiting patient outcomes by providing clearer and more reliable diagnostic images. In conclusion, brain MRI scans employ three primary plane orientations--sagittal, coronal, and transverse--to provide comprehensive views of the brain's anatomy. The process of slice planning, particularly in the sagittal plane, relies on the precise alignment of anatomical landmarks like the corpus callosum. By integrating computer vision methods into the imaging process, this work aims to automate and enhance the accuracy of alignment, thereby improving the quality and reliability of MRI scans for better diagnosis and treatment planning. The console screen includes detailed visual information that guides the operator in accurately aligning the images for optimal slice planning. The console screen displays real-time feedback and various imaging parameters, which are essential for ensuring high-quality images. The operator relies on this visual feedback to make precise adjustments to the MRI settings, such as slice thickness, orientation, and positioning of the imaging plane. These adjustments are critical to achieving the desired anatomical views and ensuring that the captured images are both diagnostically useful and of high resolution. The ability to view and manipulate these parameters in real time allows the operator to respond dynamically to any issues that may arise during the scan, thus improving the overall efficiency and effectiveness of the imaging process. The generation of training and test images is a critical phase in developing an automated slice planning system. The quality and diversity of the training data directly impact the system's ability to generalize to new, unseen data. The scope of this work consisted only of MRI examinations for the brain region to lactate the corpus callosum. The steps of the method used are presented below. Although sagittal images are presented as an example, a similar procedure can be extended to the other planes. In the next step, these images were used for training and validation of two models: the SIFT-based model and the YOLO base model.