1. A method to extract irradiation field areas in an X-ray image represented by a digital signal representation comprising: a. Segmenting said image in multiple regions of pixels which have similar local image characteristics, b. Fitting line segments to the boundaries of said regions whereby said line segments correspond with candidate irradiation field boundaries and constitute a segmentation map, c. Classifying regions in said segmentation map into at least two classes, one class being irradiation field and the other class being collimated region on the basis of at least one of local, regional and global image characteristics.