Real-time virtual sonography is an innovative imaging technology that detects the spatial position of an ultrasound probe and immediately reconstructs a section of computed tomography ( CT ) and/or magnetic resonance in accordance with the ultrasound image , thereby allowing a real-time comparison of those modalities .