-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Suppose we have a monochrome image of a car on a neutral background. We would like to make an image of that car at different contrast values, something like
scene = Background + contrast*CarImage
Suppose the background is uniform = 1, for the moment. Then we could adjust the carImage to zero mean.
carImage = carImage - mean(carImage(:));
And scale the carImage so that its smallest (most negative) number is greater equal -1.
s = min(carImage(:));
scaledCarImage = (carImage/abs(s));
scene = Background + contrast*scaledCarImage
where 0 < contrast < 1. In this case, when contrast = 1, the scene will vary between [0,X] and the mean will be 1. In this way, when we scale by P to set the number of photons (or energy) by multiplying, we always have positive photons (or energy) and the mean is equal to the scale factor.
In the future, we might imagine that Background is an arbitrary texture pattern. And then we would have to adjust how we choose the scale factor, s, to guarantee we get a physically realizable image.
The other issue is how are doing this with color.