Showing posts with label sharpening. Show all posts
Showing posts with label sharpening. Show all posts

Thursday, June 20, 2013

Infrared--RT's simple workflow.

I've never been that wild about taking infrared images. Not because I don't enjoy looking at them. Rather it because I spent multiple years of my working life designing, building and servicing unusual and very expensive infrared instruments. Learning the ins and outs of IR photography wasn't going to teach me anything I didn't already know.

So I was more interested in seeing how flickr's new interface worked when I happened to visit the discussion area in flickr's Digital Infrared group three day ago.  The thread that caught my eye was on Lightroom, infrared images and some over complicated problems you face using that editor.  I was about to jump into the discussion and shout out all the ways RawTherapee works better, when I thought it wouldn't hurt to process an IR image to check that I knew what I was taking about.

After searching around in my backup folders-- I had vaguely remembered taking a infrared set three or four years ago--I found these images.  And yes, the much simpler RT workflow that produced these little masterpieces is worth blogging and bragging about.



My IR camera is a digital antique, a 3.2 MP Olympus 3020Z, the first digital camera I owned. It has, by today's standards, a weak IR blocking filter. When combined with a Hoya R72 filter it takes a decently exposed sunny day image using shutter speeds of 1/8 of a second.

I must have used a tripod when I took this in 2011. But while preparing for this post I discovered I could loop my camera strap around my neck and use my two legs and my monopod/walking stick to create an impromptu tripod stable enough for shake-free IR images. Big advantage. I'm a handheld photographer.  I'm not interested in lugging a tripod around when I'm out hiking with a camera.




Now the workflow using 64 bit RT 4.0.11.1.


Although I didn't highlight it, up at the top you can see this is a tif file. Without any post processing it loads up with  a perfect 'white balance.'  This is caused by the camera's unusual sensor, one that uses a yellow, cyan, magenta demosaicing filter instead of the standard Bayer red, green, blue filter.

During the camera's internal calculations to create an RGB image that can be displayed on normal monitors several things happen.

1-The camera creates identical RGB channels from the internal IR RAW values. This is an excellent starting point for B&W images and a no-go for any false color IR images. For those I'm going to have to use a different camera.

2-The blue sky noise is half of what one would expect using a RGB demosaicing filter. At the time this was a marketing tool. I remember one salesman holding up a 30in print of mostly blue sky to promote the noise figure of the camera his store was pushing that month.  He also ignored me or didn't understand me when I pointed out some of the technical reasons his big print didn't prove anything.

3-The biggest and most not technical reason was that in normally printed,  real world images blue sky doesn't need  noise reduction. My 3020Z has low noise highlights coupled with high noise shadows with about twice the noise of a similar RGB camera.. Why? There is a signal averaging step in the calculations which degrades the low signal results when making this type of comparison.

As for the TIF file--whatever version of RT I was using 3 years ago didn't do jpgs. So I was stuck with oversized tifs, 7 images only in the 128MB memory cards that were considered huge storage back when I bought the camera.

From the history pane, I played around with the noise reduction before I did any sharpening. You can do the same thing in two steps by switching to a default ISO noise profile and tweeking the exposure slider. With no sharpening and RT's noise reduction there is no visible noise in the black sky even when displayed 400%


While I've brought up a trace of noise with sharpening , look at the detail in the trees full size to see what I've done to improve the overall image.


With a camera this old it's not surprising to find a hot pixel that require a trip to GIMP.


The clone stamp tool fixed that problem.

 Once again here is what I loaded into my flickr account. In the last two day it has gotten a decent number of views, comments and favorites from other IR photographers.  http://www.flickr.com/photos/scribble1/9078069848/




This is an image I took yesterday-one not as visually interesting but taken only a few steps away from my front door.  It is the street entrance to the greenway that  loops around behind my back yard and leads to Pilgrim park.  Long time viewers of my flickr account might remember the nature walks with young Charlotte that always seem to end at the slides and swing sets there.

With this I tried a different sharpening tool-Contrast by Detail. Notice that I dragged the first slider back to reduce single pixel noise.



While this is out of order and happened before the sharpening,  I found the line of trees a bit boring and added an artifical vignette,



For one final editing step I flipped the image.  The jury is still out on the question 'improved composition?' What do you think?


Or?


 To download RawTherapee 4,0.11.1
http://rawtherapee.com/downloads

An up to date english  manual come with the download package. You can also find it plus non english language manuals that arrives as RT volunteers translate them at:
http://rawtherapee.com/blog/documentation











Saturday, March 23, 2013

Shoot at ISO21000--Print at 30 by 45 inches

Sounds insane.  ISO21000 noise. Huge print size.  Welcome to the world of RAWTherapee noise reduction.


Rhianna is letting the world know she just bowled a strike.



The gory photo details. The camera was set to ISO6400-- which is just a conventional way of saying the D7000's sensor's true and only ISO100 signal is preamp boosted  by a factor of 64 before it enters the A/D.    Since the photo had to be boosted again by an exposure compensation of 1.8EV to shift the red histogram I multiplied the camera's ISO by 3.24 (1.8 squared)  to get a correct noise IS0 of 21000.

Ain't a cheating fudge factor. That's how sensor physics works.

Now the triumph of  RT noise reduction. But first here is what not to do.


I set the exposure compensation correctly before I went to the CIECAM02 tools to improve the color, contrast and lightness. But I forgot to return to exposure to readjust the histograms  When I caught my mistake, I checked the red color channel ( box at top) for blooming (red areas).  Because I liked my CIECAM02 fine tunings,  only one channel was effected  and the blooming area areas weren't in any critical part of the image (see http://scribble-jpc.blogspot.com/2013/02/rescuing-really-important-snapshots.html ) I decided to go with my mistake. After all I was getting a WOW Signal to Noise of 20!


Wrong move.  After wasting a bunch of time and discovering a few nagging inconsistencies  I corrected the exposure comp.  One measurement later and I discoverer the real double WOW WOW S/N was to be 28!!

A few points on experimental techniques. I took the noise line profile off Jilly's arm because that area has constant color--the curves are flat-- and the arm is close to the center of the tonal range--95 in a range of 0-255. These curves have to come out flat or don't bother doing the extra work to come up with a numerical signal to noise.  You will be measuring bumps and slopes.  Not the noise.

Looking more closely I should have shortened the length of the line profile of the last measurement  to get rid of the bump at the beginning. That error added about 0.5-1 to the last StdDev (standard deviation) number.  That's why I averaged 7 measurements to clean up these errors. Even without these moments of carelessness, remember we are dealing with noise. Three measurement are a minimum, 7 to 9 are better and a 100 measurements  would be an insane overkill.  We are doing a square law experiment and the Law of Diminishing Returns kicks in with the second measurment

Plus what's so wow about a S/N of 28. Why not 280 or even 2800. If you got  the bucks to buy the camera, like the Hubble Space Telescope or the Kepler Cosmic Background Radiation Telescope in the news recently, you can go for those high S/N ratios.  But for the rest of us, with this image taken under these exposure conditions, a S/N of 28 does equal a 30X45 poster pined to a bedroom wall.


With modern tech we can pixel-peep (and complain about what we see) far too easily. Rhianna's face is 8 inches wide on my super calibrated monitor (something that the world can't see --- for the complaint  http://scribble-jpc.blogspot.com/2013/02/in-search-of-perfect-eyeball-monitor.html ) . It is 3 inches on a 11 by 14 print I had made using the older 4.0.9.185 noise reduction.  Do the math and this is what you will see on a 30 X 45 inch wall poster.



That  print had a S/N of ~15.  If you were looking for noise there was a hint of it on Rhianna's face and in the brown area under the big number one in the background. But it's nothing that jumps out at you. I sure Rianna's mom won't complain when I give her the print next time I'm over in her part of the city.

EDIT--If you looked at this post before you might notice that Jilly has suddenly morphed into Rhianna.
Rhianna is Jilly's stepsister. They both live across the street from Charlotte. I got their names mixed up. Sorry girls. :-(

After I posted this I remember I do have a big display my flat screen LCD TV with its port in the side for usb sticks and memory cards.  When I displayed this image big it looked just like I said it would from my calculations.


The details from the pp3. I started with the HighISO profile. The exposure  comp of 0.88 I set. I may have fiddled with that other setting. Or they may have come with the profile.


[Exposure]
Auto=false
Clip=0.02
Compensation=0.88
Brightness=2
Contrast=22
Saturation=5
Black=332
HighlightCompr=0
HighlightComprThreshold=33
ShadowCompr=50
CurveMode=Standard
CurveMode2=Standard
Curve=0;
Curve2=0;

The image needed some sharpening. Except for 'only edges' the setting are the defaults. If it wasn't for the 'only edges' algorithm I never would have dared using sharpening on a high noise image.

[Sharpening]
Enabled=true
Method=usm
Radius=0.5
Amount=125
Threshold=20;80;2000;1200;
OnlyEdges=true
EdgedetectionRadius=1.8999999999999999
EdgeTolerance=1800
HalocontrolEnabled=false
HalocontrolAmount=85
DeconvRadius=0.75
DeconvAmount=75
DeconvDamping=20
DeconvIterations=30

White balance off Jilly's shirt

[White Balance]
Setting=Custom
Temperature=3058
Green=0.80500000000000005

The color and appearance fine tuning

[Color appearance]
Enabled=true
Degree=100
AutoDegree=true
Surround=Average
AdaptLum=16
Model=RawT
Algorithm=JC
J-Light=27.100000000000001
Q-Bright=-1
C-Chroma=-5
S-Chroma=0
M-Chroma=0
J-Contrast=44.5
Q-Contrast=64.5
H-Hue=0

The HighIso defaults. I could have fiddled with them for a better S/N but why bother. My 30 inch printer-imaginary- is out of ink-imaginary- and will stay that way given the cost of feeding a real printer. For five bucks and change I can get a 12 by 18 inch print from my local Woodmans-one that matches the image on my screen. As long as I switch the room lights back ovet to 5000K spots. Perfect color management ain't easy.

[Directional Pyramid Denoising]
Enabled=true
Luma=50
Ldetail=50
Chroma=50.689999999999998
Method=Lab
Redchro=0
Bluechro=0
Gamma=1.7


Find RAWTherapee  4.0.11.1 here
http://www.visualbakery.com/RawTherapee/Downloads.aspx

For an excellent tutorial on noise by Emil, the guru behind RT's new noise reduction systen
 http://theory.uchicago.edu/~ejm/pix/20d/tests/noise/noise-p2.html




Sunday, November 20, 2011

Sharpening--My Workflow

My next RAW Therapee tutorial was going to be a comparison of RT's vs ACR's noise reduction routines.  Unfortunate ACR was winning. Then I learned RT's noise reduction routines were having a major rewrite--see issue 1052 on the forum. So that tutorial is on hold while I wait for the new goodies to show up in an official build.

This tutorial on sharpening is short and I hope sweet.

I'm using a combination of RL Deconvolution and Microcontrast on most of my images. I can push things too hard and oversharpen but even then I don't create unsharp mask style halos. Compare the siding of the house in 200% box. Click on the screen captures and flip between the two images at the bottom of the screen for the best views.

With sharpening on and at or close to the default settings.


And sharpening off.