Pages: [1]   Go Down

Author Topic: An LR view of the Stouffer wedge  (Read 4728 times)

ErikKaffehr

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 11311
    • Echophoto
An LR view of the Stouffer wedge
« on: August 19, 2011, 04:47:57 am »

Hi,

I have a small write up on observations of a 41 step Stouffer wedge photographed by a Sony Alpha 900. The article is here:

http://echophoto.dnsalias.net/ekr/index.php/photoarticles/56-an-lr-view-of-the-stouffer-wedge

The article has download links for the DNG files, one from the Sony Alpha 900 and the other from the Sony Alpha A55 SLT.

Best regards
Erik
« Last Edit: August 19, 2011, 05:01:34 am by ErikKaffehr »
Logged
Erik Kaffehr
 

Guillermo Luijk

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2005
    • http://www.guillermoluijk.com
Re: An LR view of the Stouffer wedge
« Reply #1 on: August 19, 2011, 05:09:14 am »

You can obtain accurate RAW histograms in log scale by:

- Developing your DNG files with (this extracts RAW data, and stretches it linearly to the 0..65535 range):
  dcraw -v -d -r 1 1 1 1 -4 -T -t 0 file.dng
- Opening the resulting TIFF in Histogrammar, and then switch to RAW mode.
- Set Gamma=1 (it's 2,2 by default)
- Switch to Log mode
- Perhaps you need to change the Bayer pattern (RGBG by default)

Canon 350D RAW histogram:


« Last Edit: August 19, 2011, 05:11:16 am by Guillermo Luijk »
Logged

ErikKaffehr

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 11311
    • Echophoto
Re: An LR view of the Stouffer wedge
« Reply #2 on: August 19, 2011, 05:15:53 am »

Thanks!

The major issue right now is that I want a program that identifies each step on the grid. I'm most thankful for your suggestions, and will test "histogrammar" ASAP.

Best regards
Erik

You can obtain accurate RAW histograms in log scale by:

- Developing your DNG files with (this extracts RAW data, and stretches it linearly to the 0..65535 range):
  dcraw -v -d -r 1 1 1 1 -4 -T -t 0 file.dng
- Opening the resulting TIFF in Histogrammar, and then switch to RAW mode.
- Set Gamma=1 (it's 2,2 by default)
- Switch to Log mode
- Perhaps you need to change the Bayer pattern (RGBG by default)

Canon 350D RAW histogram:



Logged
Erik Kaffehr
 

Bart_van_der_Wolf

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 8914
Re: An LR view of the Stouffer wedge
« Reply #3 on: August 19, 2011, 06:07:48 am »

Hi,

I have a small write up on observations of a 41 step Stouffer wedge photographed by a Sony Alpha 900. The article is here:

http://echophoto.dnsalias.net/ekr/index.php/photoarticles/56-an-lr-view-of-the-stouffer-wedge

Hi Erik,

Just a few observations.

I noticed (unless my eyes are deceiving me) that you had the tonecurve not set to linear. I'd recommend to set it to linear for such evaluations. One can always add tonecurve adjustments later, i.e. tonemapping of a higher dynamic range to fit the output modality.

I saw that the blackpoint is set to 1, it apparently will influence the colorshifts.

It seems that the Whitebalance was not optimal for the highlights, because the R/G/B peaks in the histogram are not aligned. In my experience, the Stouffer stepwedge itself is pretty neutral in color, but you need to do a WB on the combined lightbox, and stepwedge, and lens, anyway.

The 10 stops DR you found is also influenced by the (inevitable) lens and camera internal veiling glare contribution. It will therefore alway be lower than the sensor DR, but closer to a real life scenario. Different lenses will give different optical dynamic range, and some real life scenes will produce a lower DR because there is more bright stray light bouncing around inside the lens and camera than in the stepwedge shot. You can simulate a worst case scenario by not masking the stepwedge on a lightbox, and having the lightbox extend beyond the FOV for the lens used. Better lenses still produce technically better images. Care must be taken in avoiding ambient light mixing with the backlit setup, so the front of the stepwedge setup should be a shielded dark environment, and the light emitted by the stepwedge should not reflect back onto the target because e.g. the operator is wearing a white T-shirt.

Technically you should verify that the background illumination is sufficiently uniform, or calibrate the results for such an non-uniformity, but maybe you checked and it was all well within the tolerances of the 0.10 OD step size. It is usually sufficient to use a non-calibrated Stouffer stepwedge, because it has quite a good quality, and the calibration only adds a document with density values as measured with a calibated densitometer (of the same physical stepwedge). The actual densities do usually not deviate more than 0.01 or 0.02 OD from the theoretical values, at least on the samples I have used.
 
Cheers,
Bart
Logged
== If you do what you did, you'll get what you got. ==

ErikKaffehr

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 11311
    • Echophoto
Re: An LR view of the Stouffer wedge
« Reply #4 on: August 19, 2011, 06:18:31 am »

Hi,

Your eyes are not deceiving you. I simply forgot about setting the curve to linear. Regarding the color balance I have tried different color balances and I think I have seen some shift.

The intention I have with the wedge is more to compare digital with negative film. I'm just about leaving for a two week vacation, but I will update the article as soon I'm back according to your advice.

Always nice to hear from you!

Best regards
Erik

Hi Erik,

Just a few observations.

I noticed (unless my eyes are deceiving me) that you had the tonecurve not set to linear. I'd recommend to set it to linear for such evaluations. One can always add tonecurve adjustments later, i.e. tonemapping of a higher dynamic range to fit the output modality.

I saw that the blackpoint is set to 1, it apparently will influence the colorshifts.

It seems that the Whitebalance was not optimal for the highlights, because the R/G/B peaks in the histogram are not aligned. In my experience, the Stouffer stepwedge itself is pretty neutral in color, but you need to do a WB on the combined lightbox, and stepwedge, and lens, anyway.

The 10 stops DR you found is also influenced by the (inevitable) lens and camera internal veiling glare contribution. It will therefore alway be lower than the sensor DR, but closer to a real life scenario. Different lenses will give different optical dynamic range, and some real life scenes will produce a lower DR because there is more bright stray light bouncing around inside the lens and camera than in the stepwedge shot. You can simulate a worst case scenario by not masking the stepwedge on a lightbox, and having the lightbox extend beyond the FOV for the lens used. Better lenses still produce technically better images. Care must be taken in avoiding ambient light mixing with the backlit setup, so the front of the stepwedge setup should be a shielded dark environment, and the light emitted by the stepwedge should not reflect back onto the target because e.g. the operator is wearing a white T-shirt.

Technically you should verify that the background illumination is sufficiently uniform, or calibrate the results for such an non-uniformity, but maybe you checked and it was all well within the tolerances of the 0.10 OD step size. It is usually sufficient to use a non-calibrated Stouffer stepwedge, because it has quite a good quality, and the calibration only adds a document with density values as measured with a calibated densitometer (of the same physical stepwedge). The actual densities do usually not deviate more than 0.01 or 0.02 OD from the theoretical values, at least on the samples I have used.
 
Cheers,
Bart
Logged
Erik Kaffehr
 

RFPhotography

  • Guest
Re: An LR view of the Stouffer wedge
« Reply #5 on: August 19, 2011, 08:29:05 am »

Erik, I'm a little confused by something you say in your article.  You state that the grey areas of the histogram represent noise.  The LR user guide states that the grey in the histogram occurs when all 3 RGB channels overlap.  Further, and consistent with this, it states that the cyan, yellow and magenta occur when the blue/green, red/green and red/blue channels respectively overlap.  

This is consistent with the white histogram areas in ACR in PS and the grey overlap in the PS histogram (as well as the CMY colours in both).  Given that, it would make sense that you have more grey in the left side of your histo because there's more alignment of the RGB channels in the darker areas but as the graph shows, the right side is where the channels are more misaligned.

Could you clarify your comments about the grey representing noise?

Thanks.
« Last Edit: August 19, 2011, 08:51:42 am by BobFisher »
Logged

Bart_van_der_Wolf

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 8914
Re: An LR view of the Stouffer wedge
« Reply #6 on: August 19, 2011, 09:51:00 am »

Could you clarify your comments about the grey representing noise?

Hi Bob,

I'm sure Erik will make adjustments when he finds the time for it. You are correct that it's not so much the grey areas, but more the width of the spikes that represents the amount of noise at the respective brightness levels. Of course, when the width of each R/G/B spike is the same, and they are white balanced (no color shift), then the spikes will look grey (R/G/B aligned and added together).

Cheers,
Bart
Logged
== If you do what you did, you'll get what you got. ==

bjanes

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 3387
Re: An LR view of the Stouffer wedge
« Reply #7 on: August 19, 2011, 11:23:47 am »

Hi Erik,

Just a few observations.

The 10 stops DR you found is also influenced by the (inevitable) lens and camera internal veiling glare contribution. It will therefore alway be lower than the sensor DR, but closer to a real life scenario. Different lenses will give different optical dynamic range, and some real life scenes will produce a lower DR because there is more bright stray light bouncing around inside the lens and camera than in the stepwedge shot. You can simulate a worst case scenario by not masking the stepwedge on a lightbox, and having the lightbox extend beyond the FOV for the lens used. Better lenses still produce technically better images. Care must be taken in avoiding ambient light mixing with the backlit setup, so the front of the stepwedge setup should be a shielded dark environment, and the light emitted by the stepwedge should not reflect back onto the target because e.g. the operator is wearing a white T-shirt.


Excellent points, Bart. Here is the worst case scenario that you mentioned using the Nikon D3 with the 60 mm Micro Nikkor  with the nano lens coating. I don't have test data for flare with this lens, but it should have less than average flare, certainly less than with a zoom.

It is useful to plot the curve rather than merely looking at the histograms. One can see the departure from linearity in the shadows that I presume is mainly due to veiling glare.

Regards,

Bill
Logged

RFPhotography

  • Guest
Re: An LR view of the Stouffer wedge
« Reply #8 on: August 19, 2011, 12:21:36 pm »

Hi Bart.  Yes, that's what I understand as well.  In my crude understanding, the width represents the std devs away from the mean and if all pixels were the same (i.e., no noise) there'd be a single spike at the mean. 
Logged

Guillermo Luijk

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2005
    • http://www.guillermoluijk.com
Re: An LR view of the Stouffer wedge
« Reply #9 on: August 19, 2011, 04:10:41 pm »

I plotted the RAW histograms in EV divisions. For being a 12-bit camera they are difficult to follow in the deep shadows (just 1 level in -11EV, 2 levels in -10EV,...).

Sony Alpha 900


ejmartin

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 575
Re: An LR view of the Stouffer wedge
« Reply #10 on: August 19, 2011, 05:52:38 pm »

I plotted the RAW histograms in EV divisions. For being a 12-bit camera they are difficult to follow in the deep shadows (just 1 level in -11EV, 2 levels in -10EV,...).

Perhaps of some interest would be the raw histograms after performing a gaussian blur on each channel (I believe one can separate channels using eg libraw).  The eye perceives a coarse-grained image that is the average over the circle of confusion.  A blur at the CoC will not have any visible effect, but will smooth the quantization jumps and probably recover smoother Gaussians in the lower EV regime.  Where the Gaussians merge will indicate the DR for that spatial resolution; doing this for several blur ranges, one can then extrapolate back to get the pixel level DR perhaps a bit more cleanly.
Logged
emil

Guillermo Luijk

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2005
    • http://www.guillermoluijk.com
Re: An LR view of the Stouffer wedge
« Reply #11 on: August 19, 2011, 06:46:59 pm »

Perhaps of some interest would be the raw histograms after performing a gaussian blur on each channel (I believe one can separate channels using eg libraw).  The eye perceives a coarse-grained image that is the average over the circle of confusion.  A blur at the CoC will not have any visible effect, but will smooth the quantization jumps and probably recover smoother Gaussians in the lower EV regime.  Where the Gaussians merge will indicate the DR for that spatial resolution; doing this for several blur ranges, one can then extrapolate back to get the pixel level DR perhaps a bit more cleanly.

Good idea. I extracted the R channel with PS's 50% nearest neighbour resizing, blurred with 2px radius, and some new gaussians became visible. The already visible got thinner thanks to noise reduction:



I tried other blurring radius obtaining similar results.
« Last Edit: August 19, 2011, 06:53:46 pm by Guillermo Luijk »
Logged

ErikKaffehr

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 11311
    • Echophoto
Re: An LR view of the Stouffer wedge + Imatest
« Reply #12 on: August 22, 2011, 04:06:45 am »

Hi!

I made some updates to the my web page on the Stouffer edge. The main addition is that I added som analysis made with Imatest. A posting by Bill (bjanes) reminded me of Imatest having support for multistep wedges.

I used Imatest with both dcraw and LR. To my surprise it seems that LR can yield a significantly wider DR than dcraw. The image from LR was in prophoto RGB baut I think the Imatest takes the gamma into account.

Using luminance noise reduction in LR did not affect total DR according to Imatest, but did improve the usable DR.

The images I published do not pretend to be scientific, my setup is not good enough.

Best regards
Erik
Logged
Erik Kaffehr
 
Pages: [1]   Go Up