An endorectal ultrasound creates a picture of the rectum and nearby tissues using sound waves. An ultrasound probe is inserted into the rectum to send out the sound waves. The picture can show whether cancer has spread to nearby tissues.