The present disclosure is directed to a robotic surgical system and a corresponding method. The system includes at least one robot arm and a radiation source coupled to the robot arm. The system also includes a surgical table having a digital imaging receiver configured to output an electrical signal based on radiation received from the radiation source. A controller having a processor and a memory is configured to receive the electrical signal and generate an initial image of a patient on the surgical table based on the electrical signal. The controller transforms the initial image to a transformed image based on an orientation of the radiation source.