摘要 |
The invention relates to a method in a digital image processing chain (10) for adjusting a colour balance. In the method, the subject is imaged as colour components (R, G, B), from which cumulative histograms are formed. From these colour curves, the illumination colour (Rill, Gill, Bill) is defined in a selected manner, which is taken into account when defining the gain factor (GR, GG, GB) adjusting the colour balance. In the method, before the illumination colour is defined, at least such pixel values (G(S)) as meet a selected criterion are filtered out. After this, cumulative histograms are formed, and, using a selected criterion, a point hi is defined from the flat area of the colour curve at the end of them and is set for the colour components (R, G, B) as a common defined point h i corresponding to the colour-componentwise intensity value C i, to correspond to the illumination colour (Rill, G ill, Bill).
|