QUOTE (cedricb @ Aug 22 2008, 10:10 AM)
With the mask technique (negate of the over-exposed image to the alpha channel of the negative corrected over-exposed image) which is described in the PS tutorial, I don't get the same amount of perfect gradient in the spot light area in comparison of your ZN software.
My experiment produces the mask and blend the original image with a threshold ratio. So I don't thing it's exactly the same result than your software, or maybe I've done something wrong with the mask generation.
Surely they will never be 100% the same since there are always differences in implementation and rounding values. The important thing is if the solution works and provides a good result.
I have introduced progressive blending since just a small radius: 2 or even 1, will produce transition areas of 2+1+2=5 or 1+1+1=3 pixels wide with a smooth gradation between the images, usually enough to produce a soft effect in the border areas but still keeping most of the pixels genuine, i.e. coming from just one image to be optimum in noise reduction and avoid any loss of sharpness. In my example 98,6% pixels were kept genuine.
QUOTE (cedricb @ Aug 22 2008, 10:10 AM)
I've been using your "lounge" raw images for my test, so for your sensor which is the best blending ratio?
The 350D saturates at 4095 what makes me think (this is just an hypothesis) that its ADC actually clips the analogue output from the ISO amplifier making 350D's RAW files very linear up to saturation (at the cost of losing some highlight information captured by the sensor of course) because they have actually already been clipped to some threshold. That's why we can be very demanding with those sample images where very high thresholds can be set for blending.
I am not sure if other cameras where saturation does not reach the maximum of the RAW file range (for instance the 5D and 400D sat points are around 3500) are so linear close to saturation so they would need a lower threshold. The optimum threshold value cannot be calculated since it's hardware dependant; I have a feeling it could be kept very high for most situations but everyone should check how his camera works. I only have my modest 350D to do tests and it shows a
very linear response in the whole range up to saturation.
QUOTE (cedricb @ Aug 22 2008, 10:10 AM)
Could you shared your new algo for the "relative exposure calculation", so I can update my code.
Are you planing to release the code source when you hit version 1.0?
That new alg is still just in my mind, but it consists in calculating an accumulative array of relative exposures. For each pixel pair, the relative exposure is calculated, weighted by the level of exposure of those 2 pixels, and then fed into the array with the index according to the relative exposure calculated. In the end we just calculate the median of the statistical distribution obtained. I think it will work fine.
I will keep the new code secret (there is not too much to hide anyway) since the plan in the end is to translate the entire code to a C/C# application with the possibility of a RAW DNG output that could be then developed on the user's favourite software. The two fellows that code in C are still on vacation, I am just starting with VS C#.
I insist again that
if someone is reading this that can use the Adobe DNG SDK to produce a DNG file from scratch just contact me.
BR