An X-ray technician, also known as a radiologic technologist, operates the X-ray machine to capture images of patients' internal structures, assisting in the diagnosis of medical conditions.