Help - Search - Members - Calendar
Full Version: ZERO NOISE technique
Luminous Landscape Forum > Equipment & Techniques > Digital Cameras & Shooting Techniques
Pages: 1, 2, 3, 4, 5, 6
michaelnotar
very cool!

so how is this better than noise reduction software, like noise ninja? i am super happy with it after inspecting it with a critical eye.

an interesting note on my P25 back, i noticed if I OE a stop and pull it back in raw processing it get about 2 stops less noise. ie an exposure at iso 200 pulled back in brightness in raw has much less noise than if it was shot and processed normally at iso 50 the backs native iso.
cedricb
GLuijk,

Finally I've be able to produce a ZN effect with ImageMagick. I've compared "visually" with your ZN software and it "looks" the same.

Here is an example with the "lounge" images which uses the camera WB and a compensation of -3.93EV.

CODE
dcraw -v -w -W -o 0 -q 3 -4 -T hdr1.cr2
dcraw -v -w -W -o 0 -q 3 -4 -T hdr3.cr2
convert hdr3.tiff -negate negate.tiff
ec=$(echo 'e(l(2)*-3.93)' | bc -l)
convert hdr3.tiff -evaluate multiply $ec corrected.tiff
composite -compose CopyOpacity negate.tiff corrected.tiff mask.tiff
composite -blend 90 mask.tiff hdr1.tiff merge.tiff


...these should work for Linux/Mac and Windows...

The merge.tiff is a 16bits one so no gamma/contrast/brightness applied.

In term of tone mapping, have you got some magic curves which can be applied every where? :-)

I've replicated a similar Sigmoidal curve for the contrast but I don't know which settings you have used in your tutorial... contrast + mid-point
For the brightness, can you give me the settings for the curve?
BruceHouston
Thank you again for your work, Guillermo.

I for one am very appreciative of your interest and dedication to this. I imagine that we will look back one day and recognize the significance of your contribution. I predict that every serious DSLR will soon perform your algorithm in-camera.

Best regards,
Bruce
BruceHouston
QUOTE (BruceHouston @ Aug 18 2008, 09:26 AM)
Thank you again for your work, Guillermo.

I for one am very appreciative of your interest and dedication to this.  I imagine that we will look back one day and recognize the significance of your contribution.  I predict that every serious DSLR will soon perform your algorithm in-camera.

Best regards,
Bruce
*


Otra cosita, Guillermo... Aunque mi primer idioma es ingles, tambien soy fluente en el espanol. Ando casi siempre atrasado en mi propio trabajo como abogado de patentes. No obstante, estoy dispuesto de ayudarle con traducciones de espanol al ingles cuando lo necesite, ya con el acuerdo de que el trabajo probablemente no sea instantaneo.

Con estimo,
Bruce
Plekto
QUOTE (BruceHouston @ Aug 18 2008, 07:26 AM)
Thank you again for your work, Guillermo.

I for one am very appreciative of your interest and dedication to this.  I imagine that we will look back one day and recognize the significance of your contribution.  I predict that every serious DSLR will soon perform your algorithm in-camera.


He definitely should apply for a patent on the idea so that he's not going to get sued at some later date by some over-zealous manufacturer(or lose out on possible royalties)
cedricb
GLuijk,

I've been able to reproduce your exposure calculation in C with the ImageMagick API.

I'm just wondering if you can explain the colors min and max values:
CODE
min = 65536 / pow(2, 6);
max = 65536 * 0.9;


Another thing, is it possible to calculate the best blending ratio? for the time been I'm using 90%.


Regards,
Ced
Guillermo Luijk
QUOTE (cedricb @ Aug 20 2008, 02:11 PM)
I've been able to reproduce your exposure calculation in C with the ImageMagick API.

I'm just wondering if you can explain the colors min and max values:
CODE
min = 65536 / pow(2, 6);
max = 65536 * 0.9;


Another thing, is it possible to calculate the best blending ratio? for the time been I'm using 90%.
Ced



Hi Ced, nice to see you are achieving the same things on Linux.

I have gathered my answers to your questions:

1. Exposure correction down, in linear state, is as simple as multiplying each RGB level by a <1 factor. For instance let L be a 16-bit level that has to be corrected 1 f-stop down: OUT = L * 0.5

2. The contrast and bright curves I apply are always made by hand. The proper curves deeply depend on the image's histogram in front of you, and the desired result. I don't think a 100% automatic process is possible here. However some algorithm to get a curve with which to start should be possible (RAW developers calculate this curve).

3. The min = 65536 / pow(2, 6); max = 65536 * 0.9; were just my criteria. I thought values higher than 90% of sat could start to be non-linear in certain sensors. In the low end pow(2,6) ensures the program will not consider values falling in the 7th or lower f-stop (they are surely very noisy).

4. The best blending ratio of course is 100%, or nearly, but depending on how linear is your sensor to allow a lower value is recommended. 99% means any RGB value less or equal to 99% of saturation in a given image will be considered right.



QUOTE (BruceHouston @ Aug 18 2008, 03:37 PM)
estoy dispuesto de ayudarle con traducciones de espanol al ingles cuando lo necesite, ya con el acuerdo de que el trabajo probablemente no sea instantaneo.


That would be nice, I planned to translate the ZN tutorial this August but found no time. Would you like to translate some part of it? wait first cause a new version of the tutorial (in SP) is coming soon since I added new features.
Guillermo Luijk
These days I could relax and add some features:
  • Concept of "blending map": a GIF map file represents now which images are the pixels taken from. This map can be manually edited to perform a personalized blending.
  • Possibility to do progressive blending with a radius parameter
  • Anti-ghosting feature with radius parameter to minimise artifacts in presence of moving elements (leaves, water) in the scene and also when alignment is not perfect
  • The process has been divided into 4 stages: Development, Relative exposure calculation, Blending map generation and Blending. Each stage can be re-run with new parameters without the need to recalculate any previous stage. This allows for instance user intervention to align images after development, or blending map fine tuning in PS after blending map generation
  • Each stage gives an important amout of statistical info about the process such as absolute and relative exposures of each image, % contribution of each image to the result, % genuine pixels (pixels coming from one single image)
  • New algorithm for relative exposure calculation based on median rather than on average (as until now), that will be more robust against moving parts of the scene
  • For those familiar with DCRAW, any DCRAW command can now be included in the workflow (at your own risk)
This is the new GUI:




Blending map (in black those pixels coming from the most exposed shot, gray medium exposure shot and white least exposed shot):




200% crop of previous blending map (upper lamp): up without anti-ghosting nor progressive exposure (like ZN worked until now), down with 4px anti-ghosting radius plus 3px progressive blending radius.




200% crop (ground lamp) on how ZN seeks most exposed areas to obtain them from less exposed shots. With real tone pixels coming from the most exposed shot, in green tones blending map showing pixels coming from the medium and least exposed shots, with a progressive area in the borders where information from more than one shot gets combined:




I will try to upload the update when it is 100% ready before my vacation (I will visit NY/Boston next month).

Salu2
BruceHouston
QUOTE (GLuijk @ Aug 21 2008, 02:07 PM)
Hi Ced, nice to see you are achieving the same things on Linux.

I have gathered my answers to your questions:

1. Exposure correction down, in linear state, is as simple as multiplying each RGB level by a <1 factor. For instance let L be a 16-bit level that has to be corrected 1 f-stop down: OUT = L * 0.5

2. The contrast and bright curves I apply are always made by hand. The proper curves deeply depend on the image's histogram in front of you, and the desired result. I don't think a 100% automatic process is possible here. However some algorithm to get a curve with which to start should be possible (RAW developers calculate this curve).

3. The min = 65536 / pow(2, 6); max = 65536 * 0.9; were just my criteria. I thought values higher than 90% of sat could start to be non-linear in certain sensors. In the low end pow(2,6) ensures the program will not consider values falling in the 7th or lower f-stop (they are surely very noisy).

4. The best blending ratio of course is 100%, or nearly, but depending on how linear is your sensor to allow a lower value is recommended. 99% means any RGB value less or equal to 99% of saturation in a given image will be considered right.
That would be nice, I planned to translate the ZN tutorial this August but found no time. Would you like to translate some part of it? wait first cause a new version of the tutorial (in SP) is coming soon since I added new features.
*



Guillermo: That would be nice, I planned to translate the ZN tutorial this August but found no time. Would you like to translate some part of it? wait first cause a new version of the tutorial (in SP) is coming soon since I added new features.

Bruce: Ok; please just email me the version that you want translated when you are ready, to: bhouston1@satx.rr.com.

Best regards,
Bruce
cedricb
GLuijk,

Thank you for your reply... smile.gif

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.
Can I upload the 16bits TIFF files (around 50M for each file) somewhere so you could have a look and let me know what's wrong? tongue.gif

I've been using your "lounge" raw images for my test, so for your sensor which is the best blending ratio?

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? biggrin.gif


Regards,
Ced.
Guillermo Luijk
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
Hening Bettermann
Hi Guillermo!

I am looking forward to use your promising software! After studying the english article, I have a question:

The white balance should be the same in both shots. Would it be sufficient to adjust this post capture in the raw state? The white balance is the one exposure parameter that I prefer the camera to do automatically, since I can not see how I can do it better.

Despite my Zero Spanish, I also tried to extract some information from the tutorial, based on the pictures. Concerning fig. 4, 5 and 6: Does Zero Noise require to define the white balance based on an area in the actual picture?

Kind regards - Hening.
Guillermo Luijk
QUOTE (Hening @ Oct 30 2008, 09:46 PM) *
Hi Guillermo!

I am looking forward to use your promising software! After studying the english article, I have a question:

The white balance should be the same in both shots. Would it be sufficient to adjust this post capture in the raw state? The white balance is the one exposure parameter that I prefer the camera to do automatically, since I can not see how I can do it better.

Despite my Zero Spanish, I also tried to extract some information from the tutorial, based on the pictures. Concerning fig. 4, 5 and 6: Does Zero Noise require to define the white balance based on an area in the actual picture?

Kind regards - Hening.


Hi Hening, the white balance in Zero Noise can be set:
- Camera: will take the camera's WB embedded in the RAW file. Not very recommended if you used auto, but you can try it and see what happens.
- Coeffs: linear multipliers for the RGB channels (not very intuitive)
- Preset: presets
- Patch: choose a rectangular or circle patch and WB will be calculated according to it. IF YOU SET THIS PATCH COVERING THE ENTIRE IMAGE, YOU WILL GET AN AUTOMATIC WB WITHOUT THE PROBLEMS THAT CAMERA'S AUTO WB CAN HAVE, so this could be a good option for you.

BR
Hening Bettermann
Hi Guillermo,

thank you for your reply. - I can not quite see how this solves the problem. Make the patch cover the whole image - which one? The zero or the +4? The problem (with the camera AWB) as I see it is that light may shift between the 2 shots - So I thought one could adjust the one of them to the other post capture in the raw state before merging?

Kind regards - Hening.
Guillermo Luijk
QUOTE (Hening @ Nov 6 2008, 01:44 AM) *
I can not quite see how this solves the problem. Make the patch cover the whole image - which one? The zero or the +4? The problem (with the camera AWB) as I see it is that light may shift between the 2 shots - So I thought one could adjust the one of them to the other post capture in the raw state before merging?

Any of the shots is OK, but the most exposed is recommended to set the patch since it will have less noise and WB calculation will be more accurate. Don't worry about its blown areas since they do not participate in the WB calculation. Once the multipliers have been calculated they will be applied to the two shots so WB will be fine.

Light in the scene should not shift between your shots, why? you have to shoot them one right after the other, not wait for an hour wink.gif

BR

PS: BTW we already found someone who can build a DNG RAW file from RAW data. A version of Zero Noise with a 16-bit DNG output free of noise is nearing. I.e. the user puts several RAW files and the program will mix them into a noise free RAW file that everyone will develop and/or tone map using his favourite software.
Hening Bettermann
Hi Guillermo!

Thanks for your answer!

>Light in the scene should not shift between your shots, why? you have to shoot them one right after the other, not wait for an hour

I agree: light should not shift, but you know, up here in the North (Oslo), light is so unbehaved, it DOES shift, and it does not take it an hour to do so, it can do it i a split second! wink.gif A typical shooting situation for me is that I stand behind the tripod, one hand on the cable release, waiting for the sun to peep through the clouds!

If, on the other hand, I am lucky enough to catch the same light for 2 consecutive exposures, then what is wrong with auto white balance? I thought the problem was that the automatism would apply 2 different white balances to shots due to light shift? But I have no technical understanding of how the automatism works, and I am open to learn.

(So far, I am satisfied with the result: I remember a day when I was shooting in the same place from about noon into the afternoon. Viewed one at a time, the images looked all natural. However, viewed side by side, those taken near noon were clearly more blue than those taken later in the afternoon. So the automatism does - fortunately - not wipe out the natural color shift in daylight entirely.)

>PS: BTW we already found someone who can build a DNG RAW file from RAW data. A version of Zero Noise with a 16-bit DNG output free of noise is nearing. I.e. the user puts several RAW files and the program will mix them into a noise free RAW file that everyone will develop and/or tone map using his favourite software.

That is GREAT news, and CONGRATULATIONS! rolleyes.gif

Hening.
Guillermo Luijk
Hi Hening, automatic white balance can never balance equally two different images if there are spatial differences in hue between them, i.e. if not all 100% of the surface of the image changes equally in white balance from one situation to another which is the common case. That is why any automatic white balance algorithm can be considered 'best effort' for these kind of situations.

I don't recommend to use camera's automatic white balance in Zero Noise, but you can do it: just select automatic WB in your camera and set Camera's WB in ZN, and see if the result is fine.

You can alternatively try DCRAW's automatic white balance by setting -a in the DCRAW command line dialog box, and each RAW file will be developed with DCRAW's auto WB algorithm. I did it over my example scene and you can see some slight differences in white balance (when they all should be the same):



When doing so it's however almost mandatory to set some progressive blending to avoid visible colour steps in the transitions:



BR
MichaelEzra
Guilermo, this is really great news!!!
Hening Bettermann
Guillermo, thanks for your reply and instruction. Hening.
button
QUOTE (GLuijk @ Nov 6 2008, 06:49 AM) *
PS: BTW we already found someone who can build a DNG RAW file from RAW data. A version of Zero Noise with a 16-bit DNG output free of noise is nearing. I.e. the user puts several RAW files and the program will mix them into a noise free RAW file that everyone will develop and/or tone map using his favourite software.


Any idea when you'll have this new version ready? I can't wait!

John
Guillermo Luijk
QUOTE (button @ Nov 23 2008, 02:38 PM) *
Any idea when you'll have this new version ready? I can't wait!

In the last two days I adapted Zero Noise to work with undemosaiced RAW data, and it worked fine (in fact it's even easier than making it work with demosaiced data). I have also improved the routines to calculate the relative exposure between the shots.

I have just sent the resulting RAW blend (18MB TIF) (it's linear data, it will display very dark if not assigned to a linear gamma=1.0 profile in PS) to a colleage to embed it into a 16-bit DNG file just to offer the resulting noiseless high dynamic range RAW file here for download.

It will be a Zero Noise HDR virtual RAW containing a lossless unprocessed blending of two Canon EOS 350D RAW files shot 4 stops apart:
─ Standard non demosaiced DNG
─ Free of noise shadows
─ 16 bits equivalent bitdepth
─ 12 stops real dynamic range

This was the scene:



And these are the RAW histograms of the two original files and the resulting virtual RAW:



The program will take a bit longer to be ready.

BR
Ben Rubinstein
QUOTE (GLuijk @ Dec 9 2008, 03:33 PM) *
In the last two days I adapted Zero Noise to work with undemosaiced RAW data, and it worked fine (in fact it's even easier than making it work with demosaiced data). I have also improved the routines to calculate the relative exposure between the shots.

I have just sent the resulting RAW blend (18MB TIF) (it's linear data, it will display very dark if not assigned to a linear gamma=1.0 profile in PS) to a colleage to embed it into a 16-bit DNG file just to offer the resulting noiseless high dynamic range RAW file here for download.

It will be a Zero Noise HDR virtual RAW containing a lossless unprocessed blending of two Canon EOS 350D RAW files shot 4 stops apart:
─ Standard non demosaiced DNG
─ Free of noise shadows
─ 16 bits equivalent bitdepth
─ 12 stops real dynamic range

This was the scene:



And these are the RAW histograms of the two original files and the resulting virtual RAW:



The program will take a bit longer to be ready.

BR


Given that the present tiff's need an extremely strong curve, what would the advantage be of making a DNG given that unless you can apply a specific gamma curve (not in ACR at any rate), the image will be far too dark to work with in the raw converter? I'm very excited by the idea of a DNG output from this incredible program but only if the gamma can be programmed to show up in the raw converter so we can use it.
Guillermo Luijk
QUOTE (pom @ Dec 9 2008, 06:23 PM) *
Given that the present tiff's need an extremely strong curve, what would the advantage be of making a DNG given that unless you can apply a specific gamma curve (not in ACR at any rate), the image will be far too dark to work with in the raw converter? I'm very excited by the idea of a DNG output from this incredible program but only if the gamma can be programmed to show up in the raw converter so we can use it.

The image will not be far too dark to work in the RAW converter. In fact in this example, the exposure control of ACR gives more exposure correction than you really need (in Perfect RAW we set an exposure correction of up to +8EV, truly usable with real 16-bit RAW files like the ones Zero Noise will produce).
I opened here the least exposed source RAW file, which will define the RAW exposure of the blend output, and managed to completely lift the shadows with a +4.0EV adjustment:




The advantage of a RAW output is that you can now feed it into your favourite development/tone mapping workflow based on RAW data (RAW developer, HDR program,...), while the TIFF output necessarily needed to go to Photoshop for tone mapping, and not everyone feels comfortable doing manual tone mapping.
This was a general complaint of some users who tried Zero Noise and felt lost to tone map such a dark image out of their preferred RAW developer (not my case BTW, I am fond of curves and with just two of them I can tone map most HDR images produced by Zero Noise, as explained in this tutorial (SP): Mapeo de tonos HDR).

Now the only difficult part is to deal with high dynamic range scenes and tone map them. But this is not a flaw of the method or concept of Zero Noise, which never was intended as a tone mapping tool, this is simply an issue that everyone will have to face when trying to fit HDR information on a LDR device (computer screen, printed paper,...).

BR
button
QUOTE (GLuijk @ Dec 9 2008, 09:33 AM) *
The program will take a bit longer to be ready.


Man, I can't wait! Please let us know when it's ready wink.gif

John
Guillermo Luijk
QUOTE (button @ Dec 9 2008, 10:27 PM) *
Man, I can't wait! Please let us know when it's ready wink.gif

OK, I have been finally given the RAW file, please download it from: ZERO NOISE VIRTUAL RAW (English). Find the links to the original RAW files so as to the resulting virtual noiseless RAW after Fig. 9.

The result in DR is outstanding. Adjustments straight from ACR:



This comparision demonstrates that none of the original RAW files were able by themselves to capture all the dynamic range:

SHADOWS COMPARED TO RAW 1 (100% crops):


HIGHLIGHTS COMPARED TO RAW 1 (50% crops):




BR
jsch
Hi Guillermo,

you are a genius. What can be done to assist you?

May I dream? PT-Lens and Zero Noise join there forces and produce a DNG with no/low noise and lens correction.

Thank you,
Johannes
button
QUOTE (GLuijk @ Dec 10 2008, 09:11 AM) *
OK, I have been finally given the RAW file, please download it from: ZERO NOISE VIRTUAL RAW. Find the links to the original RAW files so as to the resulting virtual noiseless RAW under Fig. 9.
(English online translation available, icon left).

The result is outstanding.


I've played around with the virtual RAW DNG in ACR, and yes, the result IS outstanding. This is a really big deal, at least for me, so you are to be commended for your time and generosity. Now, I REALLY can't wait for the next version of ZERO NOISE!

John
button
Hey Guillermo,

You obviously have a strong understanding of digital imaging theory and application. Given your impending release of ZERO NOISE VIRTUAL RAW, do you have any suggestions for tone mapping which will avoid the "HDR cartoon" look? For example, when you open the virtual raw file that you have provided on your website, how do you go about making it aesthetically pleasing to your eye? Would you be able to provide suggested tone mapping curves, perhaps in .xmp format (since camera raw/lightroom are popular), assuming a standard 4-stop gap between the source raw files? If this is not feasible, then would you mind explaining the difficulties involved?

Thanks,
John
Guillermo Luijk
QUOTE (button @ Dec 11 2008, 04:30 PM) *
You obviously have a strong understanding of digital imaging theory and application. Given your impending release of ZERO NOISE VIRTUAL RAW, do you have any suggestions for tone mapping which will avoid the "HDR cartoon" look? For example, when you open the virtual raw file that you have provided on your website, how do you go about making it aesthetically pleasing to your eye?


So far (I mean in the future I can change my mind), the only way to obtain really pleasant natural looking HDR scenes is doing manual tone mapping because the software routines are not intelligent enough yet to emulate eye behaviour. Talking about existing software, the only quite close to this IMO is Enfuse, which produces quite pleasant results and is probably the simplest of all the algorithms around (it just scores pixels on each of the input image according to brightness, saturation and contrast, and that scoring is the weight for a not too complicated blending process). But still I prefer to do it by hand.

I think a really good HDR algorithm should first analyse the scene, and try to 'understand' it, identifying blocks or elements that humans see as a whole in terms of luminance. For instance inside a room with a window facing outside, all what is inside the frame of the window should be identified as a unique block, and should be processed as such. Another block could be the walls. Next block could be the floor which has tiles which are quite darker than the walls, and much darker than the window, and so forth,... In this way eye behaviour emulation would be much more realistic than present programs that hardly identify entire 'blocks' but adjust very precisely local contrast on small portions of the scene.

In this case I just did a quick developing in ACR (I never use it), keeping exposure at about -0.2 or close, and lifting the shadows strongly with Bright and with the curve. Later already in PS I applied a final contrast 'S' curve and that's it. But as I said it was a quick tone maping, I didn't intend to do it fine (among other things my laptop has a terrible uncalibrated screen).

In this Tutorial HDR I explain how I do it with just 2 curves:
1. Bright push up, with a blurred layer mask to protect the highlights.
2. Contrast 'S' curve.

These 2 curves have the property to be (sorry if this is not the proper English math term) monotonous rising. That means that with those curves you will never make some point A that was brighter than a given point B in the real scene, become less bright than B in the final image. This is something often happens in HDR software; sometimes you try to find out where the light was coming from, where the sun was, where the lamps, but global contrast is so flat and there is such absence of shades that you cannot.

BR
Jonathan Wienke
QUOTE (pom @ Dec 9 2008, 06:23 PM) *
Given that the present tiff's need an extremely strong curve, what would the advantage be of making a DNG given that unless you can apply a specific gamma curve (not in ACR at any rate), the image will be far too dark to work with in the raw converter? I'm very excited by the idea of a DNG output from this incredible program but only if the gamma can be programmed to show up in the raw converter so we can use it.



When processed as DNG, you won't need to apply super-strong curves. You're looking at a file that is still linear--the RAW converter has not applied any gamma curve yet. The DNG will process just like any other RAW, but with more highlight detail and less shadow noise.

Overall, a very good effort so far. I look forward to making HDR DNG files...
Plekto
I had to search for this again. Could we get this made a sticky?
cedricb
Hi GLuijk,

I'm just wondering if you could explain in details how to make your layer mask for brightness ?



Step 1: curve apply to the original image
Step 2: negate of what?
Step 3: how do you do that? make it white/transparent the shadows and midtones?
Step 4: do you apply a Gaussian of 5.8 ratio?

In term of the saturation, which value did you apply to your picture? do you use the same value every time with the same camera?

For the original image from ZN (figure 1), did you apply a gamma of 2.2 and a sRGB color space?


Regards,
Ced.
Guillermo Luijk
To create the layer mask for the Bright curve I do:

1. Go to the output image from ZN and do: Selection -> All, and then Edition -> Copy. With this a copy of the image is in the Clipboard
2. Now show the layer mask of the curve by clicking on the curve icon while keeping 'Alt' pressed. At that time the mask will be totally blank. Do now Edition -> Paste. This will paste the luminance of the image in the layer mask (greytones image).
3. Without leaving the layer mask yet do: Image -> Adjust -> Invert, so that the Bright curve will affect less the highlights and more the shadows (that are the ones we want to lift).
4. Now adjust levels on the mask layer to your like: clipping to pure white all the areas where the curve must work 100% (i.e. the shadows of the scene), and clipping to pure black the areas that are to be 100% protected (the highlights).
5. Finally do some gaussian blurring (5-6 px radius, depending on camera resolution) to preserve microcontrast detail.

BTW there is a Linux version working 4 times faster than the original, and a DNG output version is finally on the way.



The guy who translated the source code from VB6 to C++ is a C optimizer freak, and is doing a lot of improvements to my code to make it run faster. I hope we manage to do the DNG output version soon.

Regards
cedricb
Hi GLuijk,

That's a fast reply... tongue.gif

I'm aware of that Linux version but there is no binary for 64bits... with my custom shell script with ImageMagick, I don't have to apply a blending ratio: I'm overlaying a transparent mask with the exposure differences (2 masks with 3 images).

http://imagebin.ca/view/my5hgs.html

so step 1 and 2; it's just making a difference between the image with the curve and the original image?

http://imagebin.ca/view/1ZgIxG4A.html

step 3:

http://imagebin.ca/view/ZAS0hCE.html

Please let me know if that's correct? dry.gif

can I automate step 4? by detecting a kind of the luminance ratio?
Guillermo Luijk

The images don't display.
erick.boileau
Hi GLuijk !
is it working for MAC (64 bits) ?
jmb
Hi Guillermo,

QUOTE (GLuijk @ Sep 25 2009, 03:37 PM) *
BTW there is a Linux version working 4 times faster than the original, and a DNG output version is finally on the way.


Are you guys working on updating the windows version as well?

JMB
cedricb
I've updated the images link...
Guillermo Luijk
QUOTE (jmb @ Sep 26 2009, 07:23 AM) *
Are you guys working on updating the windows version as well?

Definitively I'd like a DNG output version. I don't like the way DCRAW develops the RAW files from my 5D so I want to be able to fuse them in the undemosaiced domain and then take them noise-free into ACR.

QUOTE (erick.boileau @ Sep 25 2009, 10:31 PM) *
is it working for MAC (64 bits) ?

Someone managed to run the Linux version in a Mac under Ubuntu, but there is no native Mac version yet.

QUOTE (cedricb @ Sep 26 2009, 10:12 AM) *
I've updated the images link...

I think the best is you download this TIFF file from the tutorial and look at the mask layer. What you need to achieve is a mask that is dark in the highlights of the scene, pure white in the deep shadows of the scene, and blurred to preserve local microcontast.

Regards
klane
QUOTE (GLuijk @ Sep 26 2009, 04:49 AM) *
Definitively I'd like a DNG output version. I don't like the way DCRAW develops the RAW files from my 5D so I want to be able to fuse them in the undemosaiced domain and then take them noise-free into ACR.


Someone managed to run the Linux version in a Mac under Ubuntu, but there is no native Mac version yet.


I think the best is you download this TIFF file from the tutorial and look at the mask layer. What you need to achieve is a mask that is dark in the highlights of the scene, pure white in the deep shadows of the scene, and blurred to preserve local microcontast.

Regards


Id love to have a native version for mac! Id pay for it.
cedricb
QUOTE (GLuijk @ Sep 26 2009, 04:49 AM) *
I think the best is you download this TIFF file from the tutorial and look at the mask layer. What you need to achieve is a mask that is dark in the highlights of the scene, pure white in the deep shadows of the scene, and blurred to preserve local microcontast.

Hi Gluijk,

I've been able to reproduce your brightness adjustments with ImageMagick. To produce the step 3, I've convert the ZN image (gamma 2.2) to the Rec601Luma colorspace. Then I've applied a threshold of 35% of luminance to produce a black and white mask (which I can overlay over the alpha channel of the negate gamma image).



Do you think I could generate the optimum luminance threshold based on something from the image? histogram?

For the brightness and contrast curves, is possible to generate the different points based on the histogram of the image?

...last one, how do you perform/calculate your WB patch in ZN which I think you set the -r parameter of dcraw?
cedricb
If I want to use TuFuse to do the tone mapping. Do I need to have 5 images (1-2-3 2-3-4 3-4-5) and use the ZN technique to produce 3 images? ...or is there any way to produce the 3 images from the 3 catches?
Guillermo Luijk
QUOTE (cedricb @ Nov 19 2009, 10:33 PM) *
If I want to use TuFuse to do the tone mapping. Do I need to have 5 images (1-2-3 2-3-4 3-4-5) and use the ZN technique to produce 3 images? ...or is there any way to produce the 3 images from the 3 catches?


You can fuse your RAW files in ZN, and then create several replicas in PS just pushing exposure up at 2EV intervals. Just make sure all areas of the scene get a correct exposure in some image in the set and TuFuse will work finely.

I requested the author of TuFuse to expand the autobracketing option in TuFuse to avoid this mess with ZN outputs.

Regards
cedricb
Thanks a lot, I've tried it with enfuse and works perfectly. Do you think, we should get a better result with: 0EV 1EV 2EV 3EV 4EV ? ...difficult to see the difference!

Can you shed some light on this please?

QUOTE
how do you perform/calculate your WB patch in ZN which I think you set the -r parameter of dcraw?
Guillermo Luijk
QUOTE (cedricb @ Nov 24 2009, 11:45 PM) *
Thanks a lot, I've tried it with enfuse and works perfectly. Do you think, we should get a better result with: 0EV 1EV 2EV 3EV 4EV ? ...difficult to see the difference!

Can you shed some light on this please?

If it's difficult to see the difference you already gave the answer.
cedricb
A tribute to your tutorials using ImageMagick http://cbompart.wordpress.com/category/image-processing/

I hope you don't mind, I've used your lounge images so people can relate to your tutorials and compare. Please let me know if I need to add any copyright, etc.
NathanSoliz
I had to sign up for this forum in order to say thanks!
This is an amazing process and a wonderful applications.

I hope you make a lot off it and share with the world smile.gif

I do have some questions since I'm still learning.
When you sat 4stops, you mean via your shutter speed? I have a Canon 20D and I stopped it for in AV mode, 4 clicks on my shutter. Is this right?
I'm a little fuzzy on the lingo.

Thanks,
Nathan Soliz.
Hoang
QUOTE (NathanSoliz @ Dec 8 2009, 08:27 PM) *
I had to sign up for this forum in order to say thanks!
This is an amazing process and a wonderful applications.

I hope you make a lot off it and share with the world smile.gif

I do have some questions since I'm still learning.
When you sat 4stops, you mean via your shutter speed? I have a Canon 20D and I stopped it for in AV mode, 4 clicks on my shutter. Is this right?
I'm a little fuzzy on the lingo.

Thanks,
Nathan Soliz.

If your camera is set to the default settings, each click should be 1/3 of a stop, so you'd need 12 clicks.
NathanSoliz
QUOTE (Hoang @ Dec 8 2009, 10:04 PM) *
If your camera is set to the default settings, each click should be 1/3 of a stop, so you'd need 12 clicks.


Ok thanks, yes my camera's settings are set by 1/3 in the settings options.

So may I ask more?
I'm using Manual M42 lenses and some Nikon's on my Canon 20D. I set my F stop on the lens wide open (1.4f) and my 'shutter speed' is set to what I want to see in the end result.
Once I take that shot, for example... @ 1/160th, I then go down 12 clicks?

Hmmm I may have been doing it wrong then.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.