Embodiments of a medical imaging device and a method controlling one or more parameters of a medical imaging device are disclosed. In an embodiment, a method includes receiving image data representing a first image of an object to be imaged using the radiation source and detecting a plurality of positions of respective predetermined features in the first image. Based upon the detected positions, a boundary of an imaging area of the object to be imaged is determined. Based on the determined boundary, one or more parameters of the radiation source unit are controlled.