A method is provided for automatic contour filter positioning for medical X-ray imaging in an X-ray apparatus comprising a collimator and at least one movable contour filter actuated by a motor based positioning subsystem, wherein a digital image in a frame of rows and columns of pixels is rendered for processing and obtaining control data for applying a contour filter. The method comprises identifying exposure of subareas, preparing for filter positioning, and defining filter position.