Algorithm relevant to SPIE paper Holden et al. 2012 (July 2011).