Where is a collimator placed?

Where is a collimator placed?

Between the x-ray tube and the patient