Hi Jase,
What you're seeing is normal. A background model image is an extremely smooth function that usually requires a 32-bit format to be represented correctly. For this reason the DBE tool generates background models as 32-bit floating point images by default.
A screen transfer function in PixInsight is a 16-bit histogram transformation applied to generate the screen rendition of the image, which only has 8 bits per color channel. Clearly there is *no way* you can see a DBE model without posterization on the screen. Some models will exhibit more posterization than others, and some will look really ugly, depending on their complexity and on the smoothness of the sky gradients represented. The 16-bit histogram resolution is becoming a problem in PixInsight for screen renditions, especially as we do more and more HDR work (where we sometimes have to work with 32-bit integer or 64-bit floating point images). In a future version of PixInsight histograms will be generated with 20-bit resolution as an option (1048576 levels, or 16 times more levels than a 16-bit histogram).
The DBE model has no posterization at all. It is a linear 32-bit floating point image where finding 10^6 distinct discrete values is not unusual. You can verify this easily:
- Click the little blue triangle in the bottom bar of PI's main window and select
Normalized Real Range > 1e-07. Now you are getting real pixel readouts with seven decimal digits.
- Open the ScreenTransferFunction tool and select the DBE model image. Apply an automatic stretch or, much better, adjust STF manually (the statistic properties of DBE models are not very well suited for the automatic screen stretch function).
- Now zoom the image 10:1 or more. Identify the posterization steps. They are large regions of the image on the screen with constant color. Actually, they are not constant at all in the model image: click on the image and move the cursor over one of these posterized areas, watching the pixel readout values. They change rapidly as you move the cursor.
If you are still not convinced, I can tell you how to compute the total number of discrete pixel values in a floating point image with a script in PixInsight.
Open in Photoshop, start stretching with curves etc...
In the case of that application, posterization will not only happen on the screen rendition of the image; that application is unable to work with linear data and clearly inappropriate to handle floating point images.