1. An apparatus for detecting a possible collision in a medical procedure, comprising: a camera for providing an image of a patient that is supported on a patient support; and a processing unit configured for: determining a first model based at least in part on the image, at least a part of the first model representing a surface of the patient, and determining a second model, the second model representing a first component of the medical system; and a collision prediction mechanism configured for virtually moving the first model, the second model, or both, to simulate a movement of the first component of the medical system to determine whether there is a possible collision between the first component and the patient; wherein the collision prediction mechanism is also configured for generating an output to indicate the possible collision or an absence of the possible collision.