The invention relates to a method in digital imaging for adjusting
exposure, in which one or more exposure parameters (ET, AG) of a camera
device are adjusted in connection with imaging. In the method, a
histogram formed from a raw image frame (12) is analysed, from which one
or more special values (R.sub.high, R.sub.low) are specified and which
compared with a target level (H.sub.tgt, L.sub.tgt) set for them, and, if
a special value (R.sub.high, R.sub.low) differs from the target level
(H.sub.tgt, L.sub.tgt), the exposure parameters (ET, AG) are adjusted to
achieve the target level (H.sub.tgt, L.sub.tgt).