• site home
  • blog home
  • galleries
  • contact
  • underwater
  • the bleeding edge

the last word

Photography meets digital computer technology. Photography wins -- most of the time.

You are here: Home / The Last Word / Nonlinearities in autohalftoning

Nonlinearities in autohalftoning

March 31, 2014 JimK Leave a Comment

Before I get started with some of what you can do with autohalftoning, I need to say a few words about workflow. In most digital photography, you do all your creative work on the file at its original resolution, and resize and sharpen just before printing. By following that procedure, you are prepared to make prints of many different sizes with the minimum effort.

Not so with autohalftoning, or probably any other creative halftoning approach. This kind of halftoning has to be done at the end of the image editing cycle, after the printer and the image size has been determined. Since the halftoned image contains only a limited range of tones – only pure black and pure white in the ones I’m doing – you don’t want some resizing algorithm doing any interpolation and producing intermediate tones. Every time you make a different sized print, you have to start all over. That’s one more argument for doing the halftoning in a programming language that allows parameterizing operations so that they are appropriately tailored to the output image size, rather than trying to get Photoshop to do something it wasn’t designed for.

If you subtract two images in Photoshop, numbers less than zero are truncated, so the result is biased towards black. If you subtract two images in Matlab, nothing is truncated unless you want it to be. It turns out that the unclipped, linear images tend to be boring, and clipping is a reasonable way to bias the output. However, more flexibility than that provided by Photoshop is useful.

The first improvement is to allow the difference image to be clipped from the top instead of from the bottom. Clipping from the bottom produces a low-key effect:

fh15hpc0sigmam1offout

While clipping from the top gives a high-key look:

fhhikey13hpc0sigamma0offout

Another option is to change the clipping level so that it can occur at any number, not just zero. In order to make this tractable, I’ve implemented a clipping offset that is specified as a multiple of the standard deviation of the difference image. Numbers from 0.02 to 0.2 seem to give the best results so far.

Tomorrow, we will take a one-day vacation from autohalftoning, and this blog will be given over to a special product announcement.

The Last Word

← Rolling my own autohalftoning Irrational aspect ratios →

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

May 2025
S M T W T F S
 123
45678910
11121314151617
18192021222324
25262728293031
« Apr    

Articles

  • About
    • Patents and papers about color
    • Who am I?
  • How to…
    • Backing up photographic images
    • How to change email providers
    • How to shoot slanted edge images for me
  • Lens screening testing
    • Equipment and Software
    • Examples
      • Bad and OK 200-600 at 600
      • Excellent 180-400 zoom
      • Fair 14-30mm zoom
      • Good 100-200 mm MF zoom
      • Good 100-400 zoom
      • Good 100mm lens on P1 P45+
      • Good 120mm MF lens
      • Good 18mm FF lens
      • Good 24-105 mm FF lens
      • Good 24-70 FF zoom
      • Good 35 mm FF lens
      • Good 35-70 MF lens
      • Good 60 mm lens on IQ3-100
      • Good 63 mm MF lens
      • Good 65 mm FF lens
      • Good 85 mm FF lens
      • Good and bad 25mm FF lenses
      • Good zoom at 24 mm
      • Marginal 18mm lens
      • Marginal 35mm FF lens
      • Mildly problematic 55 mm FF lens
      • OK 16-35mm zoom
      • OK 60mm lens on P1 P45+
      • OK Sony 600mm f/4
      • Pretty good 16-35 FF zoom
      • Pretty good 90mm FF lens
      • Problematic 400 mm FF lens
      • Tilted 20 mm f/1.8 FF lens
      • Tilted 30 mm MF lens
      • Tilted 50 mm FF lens
      • Two 15mm FF lenses
    • Found a problem – now what?
    • Goals for this test
    • Minimum target distances
      • MFT
      • APS-C
      • Full frame
      • Small medium format
    • Printable Siemens Star targets
    • Target size on sensor
      • MFT
      • APS-C
      • Full frame
      • Small medium format
    • Test instructions — postproduction
    • Test instructions — reading the images
    • Test instructions – capture
    • Theory of the test
    • What’s wrong with conventional lens screening?
  • Previsualization heresy
  • Privacy Policy
  • Recommended photographic web sites
  • Using in-camera histograms for ETTR
    • Acknowledgments
    • Why ETTR?
    • Normal in-camera histograms
    • Image processing for in-camera histograms
    • Making the in-camera histogram closely represent the raw histogram
    • Shortcuts to UniWB
    • Preparing for monitor-based UniWB
    • A one-step UniWB procedure
    • The math behind the one-step method
    • Iteration using Newton’s Method

Category List

Recent Comments

  • bob lozano on The 16-Bit Fallacy: Why More Isn’t Always Better in Medium Format Cameras
  • JimK on Goldilocks and the three flashes
  • DC Wedding Photographer on Goldilocks and the three flashes
  • Wedding Photographer in DC on The 16-Bit Fallacy: Why More Isn’t Always Better in Medium Format Cameras
  • JimK on Fujifilm GFX 100S II precision
  • Renjie Zhu on Fujifilm GFX 100S II precision
  • JimK on Fuji 20-35/4 landscape field curvature at 23mm vs 23/4 GF
  • Ivo de Man on Fuji 20-35/4 landscape field curvature at 23mm vs 23/4 GF
  • JimK on Fuji 20-35/4 landscape field curvature at 23mm vs 23/4 GF
  • JimK on Fuji 20-35/4 landscape field curvature at 23mm vs 23/4 GF

Archives

Copyright © 2025 · Daily Dish Pro On Genesis Framework · WordPress · Log in

Unless otherwise noted, all images copyright Jim Kasson.