Engine for virtual MRI scanner