|
DIGITAL DEVELOPMENT PROCESS |
Good linearity of CCD sensor is important for accurate measurement of magnitude.
For most amateurs, however, their goal is "beautiful pictures", not "measuring magnitudes".
They look for the so-called 'photo-Quality CCD images', that is making photographs look natural to the eye.
Look at the images below to better understand:

Fig 1: Typical CCD image << VS >> Photo Quality Image
To get beautiful pictures the CCD linearity is not very important, instead, two non-linear processes in film photography play an important role in making photographs look natural to the eye.
1) A non-linear sensitivity ("S-shape gamma curve")
2) An edge emphasis effect
CCD data has an extremely large dynamic range. The range is too large to be reproduced on print or in a video display.
In the highlight region of an image, photographic film saturates gradually while a CCD image saturates suddenly, at a maximum point. The low level, the contrast of film is low at nature.
This comes from the S-shape Gamma curve, shown in Fig 2 with the curve of CCD sensor:

Fig 2: S-shape Gamma curve and CCD sensor curve
This difference in saturation behaviour of the films expands the effective dynamic range of film, compared to CCD images.
Keeping this behaviour in mind, we consider the "gamma value" which is the gradient of the linear region on the gamma curve.
A larger gamma results in a higher contrast image.
When we require the same gamma value for the major part of image, the effective dynamic range of the processed (and printed) CCD image will be "much narrower" than film.
The down side of this non-linear expansion of the effective dynamic range is low contrast in highlight region, which results in a "flat" appearance.
In the chemical process of films, an edge emphasis is usually used to compensate for this defect.
2) Edge emphasis effect: it will be described below, just give a look at the following example to better understand:
CCD image of M77: the core is very bright

Fig 3: a) Conventional process; b) S-shaped Gamma curve; c) 'b' plus edge emphasis.
Summarizing what reported above:
It is a non-linear gamma curve plus edge emphasis effects in the highlight region that result in images with a wide dynamic range. This is automatically done in the chemical process of film.
A very useful method to achieve the same result using a CCD detector is the following:
DDP: Digital Development Process
It consists of two step processes:
1) Hyperbolic conversion
2) Edge emphasis
Let indicate:
X=[Xij] : the original image data
Y=[Yij] : the converted data
i x j : Array of CCD pixels
The "digital development process DDP" in Japan, is written as:
Yij = k [ Xij / ({Xij} + a ) ] + b .... (equation-1)
where:
k : A constant to control the maximum value of Yij, which is not important. (k=1)
'a' & 'b' : Artificial pedestals, which are the important parameters.
{Xij} : the unsharpened (blured) data of the original image [Xij]
a) Case without edge emphasis:

Fig 4: DDP, case without edge emphasis
When {Xij} = [Xij], i.e. no low pass filter was used, the equation results just a hyperbolic conversion of gamma curve. The relation between Xij and Yij is shown in Fig 4. The curve at X>>b becomes a hyperbolic curve. You can see that the curve is very similar to the S-shape gamma curve of conventional film.
The meanings of the key parameters 'a' and 'b' are clear in the figure.
1) When b < Xij < a,
the gamma is linear.
2) When a<Xij,
the gamma is gradually reduced.
Xij =a is the turning point.
3) The minimum value of Yij is b.
This is similar to the base level of chemical film, which is never zero. The base pedestal results in the low contrast in the low level region, which will improve the visual S/N ratio in background level. This fact plays a very important role to attain the 'photo quality' by films. But, this has been overlooked in CCD processing. (Do not set at b=0!)
4) The gamma value is unity (=1.0) at b < Xij < a in this example.
If you replace Xij by Xij to the G power (xij^G), the gamma value will became G, while we assume G=1.0 througthout this report for simple discussion.
The curve of the Log-conversion, which is available in most image processing softwares, is also shown. Note that there is no linear region in this Log curve.
The linear region of gamma curve should be important to achieve the 'photo quality', because any photographic films have this linear region. Therefore the 'photo quality' will not be attained by the simple log conversion.
The Hyperbolic conversion is the simplest and easiest pass to 'photo quality'.
b) Case with edge emphasis
The roll off of gamma curve at "Xij > a" will result in a flattened image in the highlight region, without the edge emphasis.
Again, the DDP basic equation is :
Yij = k [ Xij / ({Xij} + a ) ] + b .... (equation-1)
The edge emphasis is possible by using the "low pass filtered image of Xij'" (={Xij}), in the mask data.
The basic idea to enhance the edge is very similar to the conventional unsharp-mask.

Fig 5
The edge emphasis becomes conspicuous at {Xij} >> a.
The edge emphasis + the non-linear gamma curve is essential in the 'photo quality'. Therefore, in my opinion, any types of histogram equalization and/or simple gamma conversion never reproduce the photo quality without edge emphasis.
Please note:
if b=0,
(Equation-1) : Yij = Xij / [{Xij} +a ] + b= Xij / [{Xij} + a]
That is, this equation is just identical to Flat field correction of Xij by [{Xij} + a ]
Look at the following examples to better understand:
a.

Fig 6: M13 (DDP with edge emphasis)
b.

Fig 7: M51: Left: Original;Right: DDP
* based on work reported at the page http://www.asahi-net.or.jp/~rt6k-okn/its98/ddp1.htm