Enfuse Manual
Enfuse Manual
Andrew Mihal
This manual is for Enfuse (version 4.0-753b534c819d, 21 December 2009), a program to merge different exposures of the same scene to produce an image that looks much like a tonemapped image. Copyright c 20042009 Andrew Mihal. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
Short Contents
List of Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv List of Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v 1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 Workflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3 Invocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 4 Weighting Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 5 Understanding Masks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 6 Tuning Memory Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 7 Applications of Enfuse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 8 Helpful Additional Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 A Bug Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 B Authors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 C GNU Free Documentation License . . . . . . . . . . . . . . . . . . . . . . . 53 Program Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Syntactic-Comment Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 Option Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 General Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
ii
Table of Contents
List of Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv List of Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v 1 2 3 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Workflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Invocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3.1 Response Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 3.1.1 Response File Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 3.1.2 Syntactic Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3.1.3 Globbing Algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3.2 Common Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3.3 Extended Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.4 Fusion Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.5 Expert Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.6 Option Delimiters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Weighting Functions . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4.1 Weighting Pixels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1.1 Weighted Average . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1.2 Disabling Averaging: Option --hard-mask . . . . . . . . . . . . . . 4.2 Exposure Weighting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3 Saturation Weighting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.4 Local Contrast Weighting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.4.1 Standard Deviation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.4.1.1 Statistical Moments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.4.1.2 Estimators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.4.2 Laplacian of Gaussian . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.4.3 Blend Standard Deviation and Laplacian of Gaussian . . . . . 4.4.4 Scaling and Choice of Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.5 Local Entropy Weighting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 22 23 23 24 25 25 26 27 27 29 29 30
Understanding Masks . . . . . . . . . . . . . . . . . . . . . . . . . 32
5.1 5.2 Masks in Input Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Weight Mask Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
iii
Applications of Enfuse . . . . . . . . . . . . . . . . . . . . . . . . 36
7.1 7.2 7.3 What Makes Images Fusable? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Repetition Noise Reduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Exposure Series Dynamic Range Increase . . . . . . . . . . . . . . . . . . . . 7.3.1 Tips For Beginners . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.3.2 Common Misconceptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.4 Flash Exposure Series Directed Lighting . . . . . . . . . . . . . . . . . . . . . 7.5 Polarization Series Saturation Enhancement . . . . . . . . . . . . . . . . . 7.6 Focus Stacks Depth-of-Field Increase . . . . . . . . . . . . . . . . . . . . . . . . 7.6.1 Why create focus stacks? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.6.2 Preparing Focus Stacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.6.3 Local Contrast Based Fusing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.6.4 Basic Focus Stacking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.6.5 Advanced Focus Stacking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.6.5.1 A Detailed Look at the Problem . . . . . . . . . . . . . . . . . . . . . 7.6.5.2 Laplacian Edge Detection . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.6.5.3 Local Contrast Enhancement . . . . . . . . . . . . . . . . . . . . . . . . 7.6.5.4 Suppressing Noise or Recognizing Faint Edges . . . . . . . 7.6.5.5 Focus Stacking Decision Tree . . . . . . . . . . . . . . . . . . . . . . . . 7.6.6 Tips For Focus Stacking Experts . . . . . . . . . . . . . . . . . . . . . . . . . 36 37 37 38 38 39 39 39 39 39 40 40 41 41 43 44 44 46 47
Appendix A
A.1 A.2 A.3
Have You Really Found a Bug? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 How to Report Bugs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 Sending Patches for Enblend or Enfuse . . . . . . . . . . . . . . . . . . . . . . . . 51
Appendix B
Authors . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Appendix C GNU Free Documentation License . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 Program Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Syntactic-Comment Index . . . . . . . . . . . . . . . . . . . . . . . . 60 Option Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 General Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
List of Tables
iv
List of Tables
Table Table Table Table Table Table 1.1: 3.1: 3.2: 3.3: 3.4: 6.1: Weighting criteria . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Grammar of response files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Grammar of syntactic comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Globbing algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Mask template characters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Suggested cache-size settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
List of Figures
List of Figures
Figure Figure Figure Figure Figure Figure Figure Figure Figure 2.1: 3.1: 4.1: 4.2: 4.3: 4.4: 7.1: 7.2: 7.3: Photographic workflow with Enblend and Enfuse. . . . . . . . . . . . . . . . . . . . . . . . 3 Entropy cutoff function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Gaussian function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Local analysis window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Laplacian-of-Gaussian . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Entropy function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Sharp edge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 Smooth edge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Focus stacking decision tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Chapter 1: Overview
1 Overview
Enfuse merges overlapping images using the Mertens-Kautz-Van Reeth exposure fusion algorithm.1 This is a quick way for example to blend differently exposed images into a nice output image, without producing intermediate high-dynamic range (HDR) images that are then tonemapped to a viewable image. This simplified process often works much better than tonemapping algorithms. Enfuse can also be used to build extended depth-of-field (DOF) images by blending a focus stack. The idea is that pixels in the input images are weighted according to qualities such as, for example, proper exposure, good local contrast, or high saturation. These weights determine how much a given pixel will contribute to the final image. A Burt-Adelson multiresolution spline blender2 is used to combine the images according to the weights. The multiresolution blending ensures that transitions between regions where different images contribute are difficult to spot. Enfuse uses up to four criteria to judge the quality of a pixel, which Table 1.1 briefly describes. Exposure The exposure criteria favors pixels with luminance close to the middle of the range. These pixels are considered better exposed than those with high or low luminance levels.
Saturation The saturation criteria favors highly-saturated pixels. (Note that saturation is only defined for color pixels.) Local Contrast The contrast criteria favors pixels inside a high-contrast neighborhood. Enfuse can use standard deviation, Laplacian magnitude, or a blend of both as local contrast measure. Local Entropy The entropy criteria prefers pixels inside a high-entropy neighborhood. In addition, Enfuse allows the user to mitigate the problem of noisy images when using entropy weighting by setting a black threshold. Table 1.1: Enfuses four weighting criteria. For the concept of pixel weighting, and details on the different weighting functions, see Chapter 4 [Weighting Functions], page 22. Adjust how much importance is given to each criterion by setting the weight parameters on the command line. For example, if you set --exposure-weight=1.0 and --saturation-weight=0.5, Enfuse will favor well-exposed pixels over highly-saturated pixels when blending the source images. The effect of these parameters on the final result will not always be clear in advance. The quality of the result is subject to your artistic
1 2
Tom Mertens, Jan Kautz, and Frank van Reeth, Exposure Fusion, Proceedings of the 15th Pacific Conference on Computer Graphics and Applications, pages 382390. Peter J. Burt and Edward H. Adelson, A Multiresolution Spline With Application to Image Mosaics, ACM Transactions on Graphics, Vol. 2, No. 4, October 1983, pages 217236.
Chapter 1: Overview
interpretation. Playing with the weights may or may not give a more pleasing result. The authors encourage you to experiment, perhaps using down-sized3 or cropped images for speed. Enfuse expects but does not require each input image to have an alpha channel. By setting the alpha values of pixels to zero, users can manually remove those pixels from consideration when blending. If an input image lacks an alpha channel, Enfuse will issue a warning and continue assuming all pixels should contribute to the final output. Any alpha value other than zero is interpreted as this pixel should contribute to the final image. Enfuse reads all layers of multi-layer images, like, for example, multi-directory TIFF images4 . The input images are processed in the order they appear on the command line. Multi-layer images are processed from the first layer to the last before Enfuse considers the next image on the command line. Find out more about Enfuse on its SourceForge web page.
3 4
Downsampling with a good interpolator reduces noise, which might not desired to judge the image quality of the original-size image. Cropping might be an alternative, though. Use utilities like, e.g., tiffcopy and tiffsplit of LibTIFF to manipulate multi-directory TIFF images. See Chapter 8 [Helpful Programs], page 48.
Chapter 2: Workflow
2 Workflow
Enblend and Enfuse are parts of a chain of tools to assemble images. Enblend combines a series of pictures taken at the same location but in different directions. Enfuse merges photos of the same subject at the same location and same direction, but taken with varying exposure parameters. Figure 2.1 shows where Enblend and Enfuse sit in this tool chain.
Figure 2.1: Photographic workflow with Enblend and Enfuse. Take Images Take multiple images to form a panorama, an exposure series, a focus stack, etc.
There is one exception with Enfuse when a single raw image is converted multiple times to get several typically differently exposed images.
Exemplary Benefits Many pictures taken from the same vantage point but showing different viewing directions. Panorama
Chapter 2: Workflow
Pictures of the same subject exposed with different shutter speeds. Exposure series Images of the same subject focussed at differing distances. Focus stack Remaining Problem: The overlayed images may not fit together, that is the overlay regions may not match exactly. Convert Images Convert the raw data exploiting the full dynamic range of the camera and capitalize on a high-quality conversion. Align Images Align the images so as to make them match as well as possible.
Again there is one exception and this is when images naturally align. For example, a series of images taken from a rock solid tripod with a cable release without touching the camera, or images taken with a shift lens, can align without further user intervention.
This step submits the images to affine transformations. If necessary, it rectifies the lens distortions (e.g. barrel or pincushion), too. Sometimes even luminance or color differences between pairs of overlaying images are corrected (photometric alignment). Benefit: The overlay areas of images match as closely as possible given the quality if the input images and the lens model used in the transformation. Remaining Problem: The images may still not align perfectly, for example, because of parallax errors, or blur produced by camera shake. Combine Images Enblend and Enfuse combine the aligned images into one. Benefit: The overlay areas become imperceptible for all but the most malaligned images. Remaining Problem: Enblend and Enfuse write images with an alpha channel. (For more information on alpha channels see Chapter 5 [Understanding Masks], page 32.) Furthermore, the final image rarely is rectangular. Postprocess Postprocess the combined image with your favorite tool. Often the user will want to crop the image and simultaneously throw away the alpha channel. View Print Enjoy
Chapter 3: Invocation
3 Invocation
enfuse [OPTIONS ] [--output=IMAGE ] INPUT . . . Fuse the sequence of images INPUT . . . into a single IMAGE. Input images are either specified literally or via so-called response files (see below). The latter are an alternative to specifying image filenames on the command line.
Chapter 3: Invocation
image-05.png image-06.png image-07.png Ultimate order: image-01.png, image-02.png, image-03.png, image04.png, image-05.png, image-06.png, image-07.png, image-08.png, image-09.png, image-10.png,
Chapter 3: Invocation
response-file: true enblend-response-file: true enfuse-response-file: true Finally, here is an example of a valid response file. # 4\pi panorama! # These pictures were taken with the panorama head. @round-shots.list # Freehand sky shot. zenith.tif # "Legs, will you go away?" images. nadir-2.tif nadir-5.tif nadir.tif
Chapter 3: Invocation
literal
Do not glob. Interpret all filenames in response files as literals. This is the default. Please keep in mind that whitespace at both ends of a line in a response file always gets discarded. Glob using the wildcard characters ?, *, [, and ]. The W*N32 implementation only globs the filename part of a path, whereas all other implementations perform wildcard expansion in all path components. Also see glob(7). Alias for literal. The shell globbing algorithm works as literal does. In addition, it interprets the wildcard characters {, }, and ~. This makes the expansion process behave more like common UN*X shells. Alias for shell.
wildcard
none shell
sh
Table 3.3: Globbing algorithms for the use in response files Example: # Horizontal panorama # 15 images # filename-globbing: wildcard image_000[0-9].tif image_001[0-4].tif
COMPRESSION is a JPEG quality level ranging from 0100. COMPRESSION is one of the keywords: NONE DEFLATE Do not compress. This is the default. Use the Deflate compression scheme also called ZIPin-TIFF. Deflate is a lossless data compression algorithm that uses a combination of the LZ77 algorithm and Huffman coding. Use Lempel-Ziv-Welch (LZW) adaptive compression scheme. LZW compression is lossless.
LZW
Chapter 3: Invocation
PACKBITS Use PackBits compression scheme. PackBits is a particular variant of run-length compression; it is lossless. Any other format Other formats do not accept a COMPRESSION setting. However, VIGRA automatically compresses png-files with the Deflate method. -h --help Print information on the available options then exit.
-l LEVELS --levels=LEVELS Use at most this many LEVELS for pyramid1 blending if LEVELS is positive, or reduce the maximum number of levels used by LEVELS if LEVELS is negative. The number of levels used in a pyramid controls the balance between local and global image features (contrast, saturation, . . . ) in the blended region. Fewer levels emphasize local features and suppress global ones. The more levels a pyramid has, the more global features will be taken into account. As a guideline, remember that each new level works on a linear scale twice as large as the previous one. So, the zeroth layer, the original image, obviously defines the image at single-pixel scale, the first level works at two-pixel scale, and generally, the n-th level contains image data at 2n -pixel scale. This is the reason why an image of widthheight pixels cannot be deconstructed into a pyramid of more than log2 (min(width, height)) levels. If too few levels are used, halos around regions of strong local feature variation can show up. On the other hand, if too many levels are used, the image might contain too much global features. Usually, the latter is not a problem, but is highly desired. This is the reason, why the default is to use as many levels as is possible given the size of the overlap regions. Enfuse may still use a smaller number of levels if the geometry of the overlap region demands. Positive values of LEVELS limit the maximum number of pyramid levels. Depending on the size and geometry of the overlap regions this may or may not influence any pyramid. Negative values of LEVELS reduce the number of pyramid levels below the maximum no matter what the actual maximum is and thus always influence all pyramids. The valid range of the absolute value of LEVELS is 1 to 29.
1
As Dr. Daniel Jackson correctly noted, actually, it is not a pyramid: Ziggaurat, its a Ziggaurat.
Chapter 3: Invocation
10
-o --output=FILE Place output in FILE. If --output is not specified, the default is to put the resulting image in a.tif. -v --verbose[=LEVEL ] Without an argument, increase the verbosity of progress reporting. Giving more --verbose options will make Enfuse more verbose. Directly set a verbosity level with a non-negative integral LEVEL. Each level includes all messages of the lower levels. Level 0 1 2 3 4 5 6 Messages only warnings and errors reading and writing of images mask generation, pyramid, and blending reading of response files, color conversions image sizes, bounding boxes and intersection sizes detailed information on the optimizer runs (Enblend only) estimations of required memory in selected processing steps
The default verbosity level of Enfuse is 1. -V --version Output information on the Enfuse version. Team this option with --verbose to show configuration details, like the extra features that have been compiled in. -w --wrap=MODE Blend around the boundaries of the panorama. With this option, Enfuse treats the panorama of width w and height h as an infinite data structure, where each pixel P (x, y ) of the input images represents the set of pixels SP (x, y )2 . MODE takes the following values: none open This is a no-op; it has the same effect as not giving --wrap at all. The set of input images is considered open at its boundaries.
Chapter 3: Invocation
11
This is useful for 360 horizontal panoramas as it eliminates the left and right borders. vertical Wrap around vertically: SP (x, y ) = {P (x, y + nh) : n Z }. This is useful for 360 vertical panoramas, as it eliminates the top and bottom borders. both horizontal+vertical vertical+horizontal Wrap around both horizontally and vertically: SP (x, y ) = {P (x + mw, y + nh) : m, n Z }. In this mode, both left and right borders, as well as top and bottom borders, are eliminated. Specifying --wrap without MODE selects horizontal wrapping.
-d --depth=DEPTH Force the number of bits per channel and the numeric format of the output image. Enfuse always uses a smart way to change the channel depth, to assure highest image quality (at the expense of memory), whether requantization is implicit because of the output format or explicit with option --depth.
Chapter 3: Invocation
12
If the output-channel width is larger than the input-channel width of the input images, the input images channels are widened to the output channel width immediately after loading, that is, as soon as possible. Enfuse then performs all blending operations at the output-channel width, thereby preserving minute color details which can appear in the blending areas. If the output-channel width is smaller than the input-channel width of the input images, the output images channels are narrowed only right before it is written to disk, that is, as late as possible. Thus the data benefits from the wider input channels for the longest time. All DEPTH specifications are valid in lowercase as well as uppercase letters. For integer format use 8, uint8 int16 16, uint16 Unsigned 16 bit; range: 0..65535 int32 32, uint32 Unsigned 32 bit; range: 0..4294967295 For floating-point format use r32, real32, float
IEEE754 single precision floating-point, 32 bit wide, 24 bit signifi-
cant Minimal normalized value: 1.2 1038 Epsilon: 1.2 107 Maximal finite value: 3.4 1038 r64, real64, double
IEEE754 double precision floating-point, 64 bit wide, 53 bit signifi-
cant Minimal normalized value: 2.2 10308 Epsilon: 2.2 1016 Maximal finite value: 1.8 10308 If the requested DEPTH is not supported by the output file format, Enfuse warns and chooses the DEPTH that matches best. The OpenEXR data format is treated as IEEE754 float internally. Externally, on disk, OpenEXR data is represented by half precision floating-point numbers.
OpenEXR half precision floating-point, 16 bit wide, 10 bit significant
Minimum normalized value: 9.3 1010 Epsilon: 2.0 103 Maximum finite value: 4.3 109
Chapter 3: Invocation
13
-f WIDTH xHEIGHT -f WIDTH xHEIGHT +xX-OFFSET +yY-OFFSET Set the size of the output image manually to WIDTH HEIGHT. Optionally specify the X-OFFSET and Y-OFFSET, too. This option is useful when the input images are cropped TIFF files, such as those produced by nona. The stitcher nona is part of Hugin. See Chapter 8 [Helpful Programs], page 48. -g Save alpha channel as associated. See the TIFF documentation for an explanation. Gimp (before version 2.0) and CinePaint (see Chapter 8 [Helpful Programs], page 48) exhibit unusual behavior when loading images with unassociated alpha channels. Use option -g to work around this problem. With this flag Enfuse will create the output image with the associated alpha tag set, even though the image is really unassociated alpha. -m CACHESIZE Set the CACHESIZE in megabytes (MB) of Enfuses image cache. This is the amount of memory Enfuse will use for storing image data before swapping to disk. The default is 1024 MB, which is good for systems with 3 4 gigabytes (GB) of RAM. See Chapter 6 [Tuning Memory Usage], page 34 for details. Note that Enfuse must have been compiled with the image-cache feature for this option to be effective. Find out about extra features with enfuse --version --verbose.
Chapter 3: Invocation
14
Sets the relative WEIGHT of the well-exposedness criterion. Increasing this weight relative to the others will make well-exposed pixels contribute more to the final output. Default: 1.0. Valid range: 0 WEIGHT 1. See Section 4.2 [Exposure Weighting], page 23. --exposure-mu=MEAN (This option supersedes the deprecated option --wExposureMu.) Set the MEAN (this is, the center) of the Gaussian exposure weight curve. Default: 0.5. Valid range: 0 MEAN 1. Use this option to fine-tune exposure weighting (see Section 4.2 [Exposure Weighting], page 23). --exposure-sigma=STD-DEV (This option supersedes the deprecated option --wExposureSigma.) Standard deviation STD-DEV of the Gaussian exposure weight curve. Default: 0.2. Low numbers give less weight to pixels that are far from --wMu and vice versa. Valid range: 0 STD-DEV. Use this option to fine-tune exposure weighting (see Section 4.2 [Exposure Weighting], page 23). --saturation-weight=WEIGHT (This option supersedes the deprecated option --wSaturation.) Sets the relative WEIGHT of high-saturation pixels. Increasing this weight makes pixels with high saturation contribute more to the final output. Default: 0.2. Valid range: 0 WEIGHT 1. Saturation weighting is only defined for color images. See Section 4.3 [Saturation Weighting], page 24.
Chapter 3: Invocation
15
A non-zero value for EDGE-SCALE switches on the Laplacian-of-Gaussian (LoG) edge detection algorithm. EDGE-SCALE is the radius of the Gaussian used in the search for edges. Default: 0.0 pixels. A positive LCE-SCALE turns on local contrast enhancement (LCE) before the LoG edge detection. LCE-SCALE is the radius of the Gaussian used in the enhancement step, LCE-FACTOR is the weight factor (strength).
LCE-SCALE defaults to 0.0 pixels and LCE-FACTOR defaults to 0.0. Append % to LCE-SCALE to specify the radius as a percentage of EDGE-SCALE. Append % to LCE-FACTOR to specify the weight as a percentage.
--entropy-cutoff=LOWER-CUTOFF --entropy-cutoff=LOWER-CUTOFF :UPPER-CUTOFF (This option supersedes the deprecated option --EntropyCutoff.) The first form defines the lower cutoff value below which pixels are treated as pure black when calculating the local entropy. The second form also defines the upper cutoff value above which pixels are treated as pure white. For color images LOWER-CUTOFF and UPPER-CUTOFF are applied separately and independently to each channel. Defaults: 0% for LOWER-CUTOFF and 100% for UPPER-CUTOFF, that is, all pixels values are taken into account. Append a % to specify the cutoff relative to maximum pixel value in the source image (for example 255 or 65535). Figure 3.1 shows an example.
Chapter 3: Invocation
16
Figure 3.1: Linear lightness Y in comparison with an entropy-cutoff function for LOWER-CUTOFF = 5% and UPPER-CUTOFF = 90% which are rather extreme values. Note that a high LOWER-CUTOFF value lightens the resulting image, as dark (and presumably noisy) pixels are averaged with equal weights. With --entropy-cutoff=0, the default, on the other hand, noise might be interpreted as high entropy and the noisy pixels get a high weight, which in turn renders the resulting image darker. Analogously, a low UPPER-CUTOFF darkens the output image. --entropy-window-size=SIZE (This option supersedes the deprecated option --EntropyWindowSize.) Window SIZE for local entropy analysis. The window will be a square of SIZE SIZE pixels. In the entropy calculation SIZE values of 3 to 7 yield an acceptable compromise of the locality of the information and the significance of the local entropy value itself. Valid range: SIZE 3. If given an even SIZE Enfuse will automatically use the next odd number. --gray-projector=PROJECTOR (This option supersedes the deprecated option --GrayProjector.)
Chapter 3: Invocation
17
Use gray projector PROJECTOR for conversion of RGB images to grayscale masks: (R, G, B ) Y. In version 4.0-753b534c819d of Enfuse, the option is effective for exposure weighting and local contrast weighting. Default: average. Valid values for PROJECTOR are: average Average red, green, and blue channel with equal weights. This is the default, and it often is a good projector for gamma = 1 data. Y = R+G+B 3
channel-mixer:RED-WEIGHT :GREEN-WEIGHT :BLUE-WEIGHT Weight the channels as given. Y = RED-WEIGHT R + GREEN-WEIGHT G + BLUE-WEIGHT B
The weights are automatically normalized to one, so --gray-projector=channel-mixer:0.25:0.5:0.25 --gray-projector=channel-mixer:1:2:1 --gray-projector=channel-mixer:25:50:25 all define the same mixer configuration. The three weights RED-WEIGHT, GREEN-WEIGHT, and BLUEWEIGHT define the relative weight of the respective color channel. The sum of all weights is normalized to one. l-star Use the L-channel of the L*a*b*-conversion of the image as its grayscale representation. This is a useful projector for gamma = 1 data. It reveals minute contrast variations even in the shadows and the highlights. This projector is computationally expensive. See Wikipedia for a detailed description of the Lab color space. lightness Compute the lightness of each RGB pixel as in an Hue-SaturationLightness (HSL) conversion of the image. Y = luminance Use the weighted average of the RGB pixels channels as defined by CIE (Commission Internationale de lEclairage) and the JPEG standard. Y = 0.30 R + 0.59 G + 0.11 B max(R, G, B ) + min(R, G, B ) 2
Chapter 3: Invocation
18
value
Take the Value-channel of the Hue-Saturation-Value (HSV) conversion of the image. Y = max(R, G, B )
--hard-mask (This option supersedes the deprecated option --HardMask.) Force hard blend masks on the finest scale. --soft-mask. This is the opposite flag of
This blending mode avoids averaging of fine details (only) at the expense of increasing the noise. However it considerably improves the sharpness of focus stacks. Blending with hard masks has only proven useful with focus stacks. See also Section 3.4 [Fusion Options], page 13 and --contrast-window-size above. --contrast-min-curvature=CURVATURE (This option supersedes the deprecated option --MinCurvature.) Define the minimum CURVATURE for the LoG edge detection. Default: 0. Append a % to specify the minimum curvature relative to maximum pixel value in the source image (for example 255 or 65535). A positive value makes Enfuse use the local contrast data (controlled with --contrast-window-size) for curvatures less than CURVATURE and LoG data for values above it. A negative value truncates all curvatures less than CURVATURE to zero. Values above CURVATURE are left unchanged. This effectively suppresses weak edges. --save-masks --save-masks=SOFT-MASK-TEMPLATE --save-masks=SOFT-MASK-TEMPLATE :HARD-MASK-TEMPLATE (This option supersedes the deprecated option --SaveMasks.) Save all weight files as TIFF images. First form: Save all soft weight masks in files. If option --hard-mask is effective also save the hard masks. The defaults are softmask-%n.tif and hardmask-%n.tif. In the second form, SOFT-MASK-TEMPLATE defines the names of the soft-mask files. In the third form, HARD-MASK-TEMPLATE additionally defines the names of the hard-mask files. Both SOFT-MASK-TEMPLATE and HARD-MASK-TEMPLATE define templates that are expanded for each mask file. In a template a percent sign (%) introduces a variable part. All other characters are copied literally. Lowercase letters refer to the name of the respective input file, whereas uppercase ones refer to the name of the output file (see Section 3.2 [Common Options], page 8). Table 3.4 lists all variables. A fancy mask filename template could look like this: %D/soft-mask-%02n-%f.viff
Chapter 3: Invocation
19
It puts the mask files into the same directory as the output file (%D), generates a two-digit index (%02n) to keep the mask files nicely sorted, and decorates the mask filename with the name of the associated input file (%f) for easy recognition. --soft-mask (This option supersedes the deprecated option --SoftMask.) Consider all masks when fusing. This is the default.
Chapter 3: Invocation
20
%% %i
Produces a literal %-sign. Expands to the index of the mask file starting at zero. %i supports setting a pad character or a width specification: % PAD WIDTH i PAD is either 0 or any punctuation character; the default pad character is 0. WIDTH is an integer specifying the minimum width of the number. The default is the smallest width given the number of input images, this is 1 for 29 images, 2 for 1099 images, 3 for 100999 images, and so on. Examples: %i, %02i, or %_4i. Expands to the number of the mask file starting at one. Otherwise it behaves identically to %i, including pad character and width specification. This is the full name (path, filename, and extension) of the input file associated with the mask. Example: If the input file is called /home/luser/snap/img.jpg, %p expands to /home/luser/snap/img.jpg, or shorter: %p /home/luser/ snap/img.jpg. This is the full name of the output file. Is replaced with the directory part of the associated input file. See Info file coreutils.info, node dirname invocation. Example (cont.): %d /home/luser/snap. Is replaced with the directory part of the output file. Is replaced with the non-directory part (often called basename) of the associated input file. See Info file coreutils.info, node basename invocation. Example (cont.): %b img.jpg. Is replaced with the non-directory part of the output file. Is replaced with the filename without path and extension of the associated input file. Example (cont.): %f img. Is replaced with the filename without path and extension of the output file. Is replaced with the extension (including the leading dot) of the associated input file. Example (cont.): %e .jpg. Is replaced with the extension of the output file. Table 3.4: Special characters to control the generation of mask filenames.
%n %p
%P %d
%D %b
%B %f
%F %e
%E
Chapter 3: Invocation
21
22
4 Weighting Functions
As has been noted in the Overview (see Chapter 1 [Overview], page 1), Enfuse supports four different types of weighting. The following subsections describe the concept of weighting and all weighting functions in detail.
where we have abbreviated P (i, x, y ) to P for simplicity. The user defines the constants wexp , wsat , wcont , and went with the options --exposure-weight, --saturation-weight, --contrast-weight, and --entropy-weight respectively. The functions fexp , fsat , fcont , and fent along with the window sizes rcont and rent are explained in the next sections.
23
Note that this averaging scheme lacks the nice noise-reduction property of the weighted average (W), because only a single input pixel contributes to the output.
projector, which defaults to average. Grayscale pixels are identified with luminance. In the normalized luminance interval 0.0 represents pure black and 1.0 represents pure white independently of the data type of the input image. This is, for a JPEG image the luminance 255 maps to 1.0 in the normalized interval and for a 32 bit TIFF picture the highest luminance value 4294967295 also maps to 1.0. The middle of the luminance interval, 0.5, is where a neutral gray tone ends up with every camera that had no exposure correction dialed in, for example the image of a gray- or white-card. The exposure weighting algorithm only looks at a single pixel at a time; the pixels neighborhood is not taken into account. The weighting function is the Gaussian
2
wexp (Y ) = exp
1 2
Y Mu Sigma
whose center M u and width Sigma are controlled by the command line options --exposure-mu and --exposure-sigma respectively. M u defaults to 0.5 and Sigma defaults to 0.2. Figure 4.1 shows a Gaussian.
24
Figure 4.1: Gaussian function with the parameters Mu = 0.5 and Sigma = 0.2. The options --exposure-mu and --exposure-sigma are for fine-tuning the final result without changing the set of input images. Option --exposure-mu sets the point Mu of optimum exposure. Increasing Mu makes Enfuse prefer lighter pixels, rendering the final image lighter, and vice versa. Option --exposure-sigma defines the range Sigma of acceptable exposures. Small values of Sigma penalize exposures that deviate from Mu more, and vice versa. Summary of influential options --exposure-weight Section 3.4 [Fusion Options], page 13 --exposure-mu Section 3.4 [Fusion Options], page 13 --exposure-sigma Section 3.4 [Fusion Options], page 13 --gray-projector Section 3.5 [Expert Options], page 14
25
Enfuse computes the saturation of a pixel according to the following algorithm. max := maximum(R, G, B ) min := minimum(R, G, B ) if max = min then saturation := 0 else sum := max + min difference := max - min if sum 1 then saturation := difference / sum else saturation := difference / (2 - sum ) end if end if Obviously, saturation weighting can only be defined for RGB images, not for grayscale ones! If you need something similar, check out Section 4.5 [Local Entropy Weighting], page 30; entropy weighting works for both RGB and grayscale pictures. The saturation weighting algorithm only looks at a single pixel at a time; the pixels neighborhood is not taken into account. Summary of influential options --saturation-weight Section 3.4 [Fusion Options], page 13
26
Figure 4.2: Examples of local analysis windows for the sizes 3 and 5. C marks the center where the pixel gets the weight. N are neighboring pixels, which all contribute equally to the weight. During the analysis, Enfuse scans the local analysis window across all rows and all columns1 of each of the input images to compute the contrast weight of every pixel. Summary of influential options --contrast-weight Section 3.4 [Fusion Options], page 13 --hard-mask Section 3.4 [Fusion Options], page 13 --contrast-window-size Section 3.5 [Expert Options], page 14 --gray-projector Section 3.5 [Expert Options], page 14
xi w (xi ).
Using the definition of the expectation value, we define the variance, or Second Moment as Var X := Ex (X Ex X )2 ,
1
In the current implementation a floor(contrast-window-size / 2) wide border around the images remains unprocessed and gets a weight of zero.
27
Var X.
Obviously, the variance of X is the expectation value of the squared deviation from the expectation value of X itself. Note that the variances dimension is X s dimension squared; the standard deviation rectifies the dimension to make it comparable with X itself again.
4.4.1.2 Estimators
In Enfuse, we assume that X follows a uniform probability function w(x) = const. That is, all pixel values in the local analysis window are considered to be equally probable. Thus, the expectation value and the variance can be estimated from the pixel values like this Ex X := 1 n
n
xi .
i=1
In other words: the expectation value is the arithmetic mean of the lightness of all pixels in the local analysis window. Analogously, the variance becomes Var X := 1 Ex (X Ex X )2 . n1
The parameter , the argument of option --contrast-edge-scale, is the length scale on which edges are detected by g (x, y ). We apply the Laplacian operator in Cartesian coordinates 2 2 + = x2 y 2 to g (x, y ), to arrive at a continuous representation of the two-dimensional filter kernel k (x, y ) = 2 1 exp( 2 ), 4
28
Enfuse uses a discrete approximation of k in the convolution with the image. The operator is radially symmetric with respect to the origin, which is why we can easily plot it in Figure 4.3, setting R = x2 + y 2 .
Figure 4.3: Laplacian-of-Gaussian function for = 0.5. See also HIPR2: Laplacian of Gaussian. Sometimes the LoG is plagued by noise in the input images. After all, it is a numerical approximation of the second derivative and deriving always roughens a function. The (normalized) mask files relentlessly disclose such problems. Use option --contrast-min-curvature with a negative argument CURVATURE to suppress all edges with a curvature below CURVATURE (which is a positive value). Check the effects with the mask files and particularly the hard-mask files (hardmask-%n.tif) if using option --hard-mask. To indicate the CURVATURE in relative terms, which is particularly comprehensible for humans, append a percent sign (%). Try minimum curvatures starting from 0.5% to 3%. Summary of influential options --contrast-weight Section 3.4 [Fusion Options], page 13 --hard-mask Section 3.4 [Fusion Options], page 13
29
--contrast-edge-scale Section 3.5 [Expert Options], page 14 --contrast-min-curvature Section 3.5 [Expert Options], page 14
30
per emitted message, where we assume the knowledge of the probability function p(S ). The expectation value Ha (n) is called entropy of the source S . Entropy measures our uncertainty if we are to guess which message gets chosen by the source in the future. The unit of the entropy depends on the choice of the constant a > 1. Obviously Hb (n) = Ha (n)/ loga (b) holds for all b > 1. We use a = 2 for entropy weighting and set the entropy of the impossible message to zero according to lim p loga (1/p) = 0.
p 0
Figure 4.4: Entropy function H for an experiment with exactly two outcomes. For more on (information) entropy visit Wikipedia.
31
Enfuse computes a pixels entropy by considering the pixel itself and its surrounding pixels quite similar to Section 4.4 [Local Contrast Weighting], page 25. The size of the window is set by --entropy-window-size. Choosing the right size is difficult, because there is a serious tradeoff between the locality of the data and the size of the sample used to compute H . A large window results in a large sample size and therefore in a reliable entropy, but considering pixels far away from the center degrades H into a non-local measure. For small windows the opposite holds true. Another difficulty arises from the use of entropy as a weighting function in dark parts of an image, that is, in areas where the signal-to-noise ratio is low. Without any precautions, high noise is taken to be high entropy, which might not be desired. Use option --entropy-cutoff to control the black level when computing the entropy. On the other extreme side of lightness, very light parts of an image, the sensor might already have overflown without the signal reaching 1.0 in the normalized luminance interval. For these pixels the entropy is zero and Enfuse can be told of the threshold by properly setting the second argument of --entropy-cutoff. Summary of influential options --entropy-weight Section 3.4 [Fusion Options], page 13 --entropy-window-size Section 3.5 [Expert Options], page 14 --entropy-cutoff Section 3.5 [Expert Options], page 14
32
5 Understanding Masks
A binary mask indicates for every pixel of an image if this pixel must be considered in further processing, or ignored. For a weight mask, the value of the mask determines how much the pixel contributes, zero again meaning no contribution. Masks arise in two places: as part of the input files and as separate files, showing the actual pixel weights prior to image blendung or fusion. We shall explore both occurrences in the next sections.
Alpha Channel The alpha channel stores the transpacency value for each pixel, typically in the range from zero to one. A value of zero means the pixel is completely
33
transparent, thus does not contribute to the image. A value of one on the other hand means the pixel is completely opaque. Matte The notion matte as used by ImageMagick refers to an inverted alpha channel, more precisely: 1 - alpha. See ImageMagick for further explanations.
Enblend and Enfuse only consider pixels that have an associated mask value other than zero. If an input image does not have an alpha channel, Enblend warns and assumes a mask of all non-zero values, that is, it will use every pixel of the input image for fusion. Stitchers like nona add a mask to their output images. Sometimes it is helpful to manually modify a mask before fusion. For example to suppress unwanted objects (insects and cars come into mind) that moved across the scene during the exposures. If the masks of all input images are black at a certain position, the output image will have a hole in that position.
34
35
On systems with considerably more than 4 GB of RAM it is recommended to run Enblend or Enfuse versions without image cache.
36
7 Applications of Enfuse
This section describes some of the novel possibilities that Enfuse offers the photographer. In contrast to the previous chapters, it centers around the image effects.
37
Prefer a monopod, or better, a rigid tripod with a heavy head. Use a cable release if possible. (This applies to cameras with a moving mirror only.) Engage mirror lockup. Consider automatic bracketing when applicable. Activate camera- or lens-based image stabilization if you are sure that it improves the image quality in your particular case; otherwise disengage the feature. For some lens-based image stabilization systems, it is known that they lock into different positions every time they are activated. Moreover, some stabilization systems decrease the image quality when the lens is mounted on a tripod. Fire in rapid succession.
38
on you. Accordingly, the photographic effects achieved range from subtle to surreal, like the late 1980s Max Headroom TV-Series, to really unreal. Like some time ago in the chemical days of photography, when a new developer opened unseen possibilities for artists, exposure fusion extends a photographers expressive space in the digital age. Whether the results look good or bad, whether the images are dull or exciting, is entirely up the artist. In the next sections we give assistance to starters, and rectify several misconceptions about Enfuse.
Paul E. Debevec defines: A light probe image is an omnidirectional, high dynamic range image that records the incident illumination conditions at a particular point in space.
39
All exposure values must be different. You can repeat any exposure as often as you like. That way you combine an exposure series with parts of Section 7.2 [Repetition], page 37, emphasizing the multiply occuring exposures and reducing noise.
40
in Hugin (see Chapter 8 [Helpful Programs], page 48) should not exceed 0.30.5 pixels to ensure perfect blending. As in all image fusion operations it is preferable to use 16 bit linear (gamma = 1) images throughout, but 8 bit gamma encoded images will do. Naturally, high SNR input data always is welcome.
41
where the distance of the seams from the middle of the edge is comparable to the contrast window size.
If your results do not show any of these artifacts, stick with the basic algorithm. Advanced focus stacking, as described in the next sections, delivers superior results in case of artifacts, though requires manually tuning several parameters.
sharp_edge =
0, 0, 0, 215, 200,
0, 225, 255, 0, 0,
200, 0, 0, 0, 0,
0, 0, 0, 0, 0,
0; 0; 0; 0; 0]
smooth_edge = [
0, 1, 2, 3, 5,
where ; separates the rows and , separates the columns. This is in fact Octave syntax.
Images Figure 7.1 and Figure 7.2 show plots of the matrices sharp_edge and smooth_ edge.
42
43
Figure 7.2: 3D plot augmented by contour plot of the matrix smooth_edge. Our intuition lets us see an extremely sharp edge in the first matrix, whereas the second one describes an extraordinarily smooth diagonal intensity ramp. Which one will be selected? Well, sharp_edge has a standard deviation of 88.07 and smooth_edge has 88.41. Thus, smooth_edge wins, contradicting our intuition, and even worse, our intention! Sadly, configurations like smooth_edge occur more often with high-quality, good bokeh lenses. In fact, they are the very manifestation of good bokeh. Therefore, Laplacian edge detection plays an important role when working with high-quality lenses.
44
and hard-mask files (default: hardmask-%n.tif). Check how different scales affect the artifacts. Also see Chapter 5 [Understanding Masks], page 32.
45
--contrast-edge-scale=0.3:3:300% Use LoG to detect edges on a scale of 0.3 pixels, pre-sharpen the input images by 300% on a scale of 3 pixels. Apply the default grayscale projector: average. --contrast-edge-scale=0.3 --contrast-min-curvature=0.5% Use LoG to detect edges on a scale of 0.3 pixels. Apply the default grayscale projector: average and throw away all edges with a curvature of less than 0.5%. --contrast-edge-scale=0.3 --contrast-min-curvature=0.5% -contrast-window-size=7 Use LoG to detect edges on a scale of 0.3 pixels. Apply the default grayscale projector: average and throw away all edges with a curvature of less than 0.5% and replace the LoG data between 0% and 0.5% with SDev data. Use a window of 77 pixel window to compute the SDev.
46
Figure 7.3: Focus stacking decision tree. Always start with the default, contrast weighting with a local contrast window. Only if seams appear as described in Section 7.6.5 [Advanced Focus Stacking], page 41 switch to Laplacian-of-Gaussian contrast detection.
47
If some seams remain even in LoG-mode, decrease the sensitivity of the edge detection with a positive --contrast-min-curvature. A too high value of --contrast-min-curvature suppresses fine detail though. Part of the detail can be brought back with pre-sharpening, that is, Section 7.6.5.3 [Local Contrast Enhancement], page 44 or combining LoG with local-contrast-window mode by using a negative --contrast-min-curvature. Carefully examining the masks (option --save-masks) that Enfuse uses helps to judge the effects of the parameters.
48
49
LittleCMS is the color management library used by Hugin, DCRaw, UFRaw, Enblend, and Enfuse. It supplies some binaries, too. tifficc, an ICC color profile applier, is of particular interest.
50
Bug reports play an important role in making Enblend and Enfuse reliable and enjoyable. When you encounter a problem, the first thing to do is to see if it is already known. On the packages SourceForge homepage click Develop and on the development page click Tracker. Search the trackers for your particular problem. If it is not known, then you should report the problem. In order for a bug report to serve its purpose, you must include the information that makes it possible to fix the bug.
51
The exact command line you use to call Enblend or Enfuse, which then triggers the bug. Examples: ~/local/bin/enblend -v \ --fine-mask \ --optimizer-weights=3:2 --mask-vectorize=12.5% \ image-1.png image-2.png or: /local/bin/enfuse \ --verbose \ --exposure-weight=0 --saturation-weight=0 --entropy-weight=1 \ --gray-projector=l-star \ --entropy-cutoff=1.667% \ layer-01.ppm layer-02.ppm layer-03.ppm If you call Enblend or Enfuse from within a GUI like, for example, Hugin or KImageFuser by Harry van der Wolf, copy&paste or write down the command line that launches Enblend or Enfuse. A description of what behavior you observe that you believe is incorrect. For example, The application gets a fatal signal, or, The output image contains black holes. Of course, if the bug is that the application gets a fatal signal, then one cannot miss it. But if the bug is incorrect output, we might not notice unless it is glaringly wrong.
Appendix B: Authors
52
Appendix B Authors
Andrew Mihal ([email protected]) has written Enblend and Enfuse. Contributors Pablo dAngelo ([email protected]) added the contrast criteria. Joe Beda: Win32 porting up to version 3.2. Kornel Benko, [email protected]: CMake support for version 4.0. Roger Goodman: Proofreading of the manuals. Max Lyons. Mark aka mjz: Win32 porting up to version 3.2. Thomas Modes, [email protected]: Win32 porting of version 4.0. Ryan Sleevi, [email protected]: Win32 porting of version 4.0. Christoph Spiel ([email protected]) added the gray projectors, the LoG-based edge detection, an O(n)-algorithm for the calculation of local contrast, entropy weighting, and various other features. Brent Townshend, [email protected]: HDR support. Thanks to Simon Andriot and Pablo Joubert for suggesting the Mertens-Kautz-Van Reeth technique and the name Enfuse.
53
54
under this License. If a section does not fit the above definition of Secondary then it is not allowed to be designated as Invariant. The Document may contain zero Invariant Sections. If the Document does not identify any Invariant Sections then there are none. The Cover Texts are certain short passages of text that are listed, as Front-Cover Texts or Back-Cover Texts, in the notice that says that the Document is released under this License. A Front-Cover Text may be at most 5 words, and a Back-Cover Text may be at most 25 words. A Transparent copy of the Document means a machine-readable copy, represented in a format whose specification is available to the general public, that is suitable for revising the document straightforwardly with generic text editors or (for images composed of pixels) generic paint programs or (for drawings) some widely available drawing editor, and that is suitable for input to text formatters or for automatic translation to a variety of formats suitable for input to text formatters. A copy made in an otherwise Transparent file format whose markup, or absence of markup, has been arranged to thwart or discourage subsequent modification by readers is not Transparent. An image format is not Transparent if used for any substantial amount of text. A copy that is not Transparent is called Opaque. Examples of suitable formats for Transparent copies include plain ascii without markup, Texinfo input format, LaTEX input format, SGML or XML using a publicly available DTD, and standard-conforming simple HTML, PostScript or PDF designed for human modification. Examples of transparent image formats include PNG, XCF and JPG. Opaque formats include proprietary formats that can be read and edited only by proprietary word processors, SGML or XML for which the DTD and/or processing tools are not generally available, and the machine-generated HTML, PostScript or PDF produced by some word processors for output purposes only. The Title Page means, for a printed book, the title page itself, plus such following pages as are needed to hold, legibly, the material this License requires to appear in the title page. For works in formats which do not have any title page as such, Title Page means the text near the most prominent appearance of the works title, preceding the beginning of the body of the text. A section Entitled XYZ means a named subunit of the Document whose title either is precisely XYZ or contains XYZ in parentheses following text that translates XYZ in another language. (Here XYZ stands for a specific section name mentioned below, such as Acknowledgements, Dedications, Endorsements, or History.) To Preserve the Title of such a section when you modify the Document means that it remains a section Entitled XYZ according to this definition. The Document may include Warranty Disclaimers next to the notice which states that this License applies to the Document. These Warranty Disclaimers are considered to be included by reference in this License, but only as regards disclaiming warranties: any other implication that these Warranty Disclaimers may have is void and has no effect on the meaning of this License. 2. VERBATIM COPYING You may copy and distribute the Document in any medium, either commercially or noncommercially, provided that this License, the copyright notices, and the license notice saying this License applies to the Document are reproduced in all copies, and
55
that you add no other conditions whatsoever to those of this License. You may not use technical measures to obstruct or control the reading or further copying of the copies you make or distribute. However, you may accept compensation in exchange for copies. If you distribute a large enough number of copies you must also follow the conditions in section 3. You may also lend copies, under the same conditions stated above, and you may publicly display copies. 3. COPYING IN QUANTITY If you publish printed copies (or copies in media that commonly have printed covers) of the Document, numbering more than 100, and the Documents license notice requires Cover Texts, you must enclose the copies in covers that carry, clearly and legibly, all these Cover Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on the back cover. Both covers must also clearly and legibly identify you as the publisher of these copies. The front cover must present the full title with all words of the title equally prominent and visible. You may add other material on the covers in addition. Copying with changes limited to the covers, as long as they preserve the title of the Document and satisfy these conditions, can be treated as verbatim copying in other respects. If the required texts for either cover are too voluminous to fit legibly, you should put the first ones listed (as many as fit reasonably) on the actual cover, and continue the rest onto adjacent pages. If you publish or distribute Opaque copies of the Document numbering more than 100, you must either include a machine-readable Transparent copy along with each Opaque copy, or state in or with each Opaque copy a computer-network location from which the general network-using public has access to download using public-standard network protocols a complete Transparent copy of the Document, free of added material. If you use the latter option, you must take reasonably prudent steps, when you begin distribution of Opaque copies in quantity, to ensure that this Transparent copy will remain thus accessible at the stated location until at least one year after the last time you distribute an Opaque copy (directly or through your agents or retailers) of that edition to the public. It is requested, but not required, that you contact the authors of the Document well before redistributing any large number of copies, to give them a chance to provide you with an updated version of the Document. 4. MODIFICATIONS You may copy and distribute a Modified Version of the Document under the conditions of sections 2 and 3 above, provided that you release the Modified Version under precisely this License, with the Modified Version filling the role of the Document, thus licensing distribution and modification of the Modified Version to whoever possesses a copy of it. In addition, you must do these things in the Modified Version: A. Use in the Title Page (and on the covers, if any) a title distinct from that of the Document, and from those of previous versions (which should, if there were any, be listed in the History section of the Document). You may use the same title as a previous version if the original publisher of that version gives permission.
56
B. List on the Title Page, as authors, one or more persons or entities responsible for authorship of the modifications in the Modified Version, together with at least five of the principal authors of the Document (all of its principal authors, if it has fewer than five), unless they release you from this requirement. C. State on the Title page the name of the publisher of the Modified Version, as the publisher. D. Preserve all the copyright notices of the Document. E. Add an appropriate copyright notice for your modifications adjacent to the other copyright notices. F. Include, immediately after the copyright notices, a license notice giving the public permission to use the Modified Version under the terms of this License, in the form shown in the Addendum below. G. Preserve in that license notice the full lists of Invariant Sections and required Cover Texts given in the Documents license notice. H. Include an unaltered copy of this License. I. Preserve the section Entitled History, Preserve its Title, and add to it an item stating at least the title, year, new authors, and publisher of the Modified Version as given on the Title Page. If there is no section Entitled History in the Document, create one stating the title, year, authors, and publisher of the Document as given on its Title Page, then add an item describing the Modified Version as stated in the previous sentence. J. Preserve the network location, if any, given in the Document for public access to a Transparent copy of the Document, and likewise the network locations given in the Document for previous versions it was based on. These may be placed in the History section. You may omit a network location for a work that was published at least four years before the Document itself, or if the original publisher of the version it refers to gives permission. K. For any section Entitled Acknowledgements or Dedications, Preserve the Title of the section, and preserve in the section all the substance and tone of each of the contributor acknowledgements and/or dedications given therein. L. Preserve all the Invariant Sections of the Document, unaltered in their text and in their titles. Section numbers or the equivalent are not considered part of the section titles. M. Delete any section Entitled Endorsements. Such a section may not be included in the Modified Version. N. Do not retitle any existing section to be Entitled Endorsements or to conflict in title with any Invariant Section. O. Preserve any Warranty Disclaimers. If the Modified Version includes new front-matter sections or appendices that qualify as Secondary Sections and contain no material copied from the Document, you may at your option designate some or all of these sections as invariant. To do this, add their titles to the list of Invariant Sections in the Modified Versions license notice. These titles must be distinct from any other section titles.
57
You may add a section Entitled Endorsements, provided it contains nothing but endorsements of your Modified Version by various partiesfor example, statements of peer review or that the text has been approved by an organization as the authoritative definition of a standard. You may add a passage of up to five words as a Front-Cover Text, and a passage of up to 25 words as a Back-Cover Text, to the end of the list of Cover Texts in the Modified Version. Only one passage of Front-Cover Text and one of Back-Cover Text may be added by (or through arrangements made by) any one entity. If the Document already includes a cover text for the same cover, previously added by you or by arrangement made by the same entity you are acting on behalf of, you may not add another; but you may replace the old one, on explicit permission from the previous publisher that added the old one. The author(s) and publisher(s) of the Document do not by this License give permission to use their names for publicity for or to assert or imply endorsement of any Modified Version. 5. COMBINING DOCUMENTS You may combine the Document with other documents released under this License, under the terms defined in section 4 above for modified versions, provided that you include in the combination all of the Invariant Sections of all of the original documents, unmodified, and list them all as Invariant Sections of your combined work in its license notice, and that you preserve all their Warranty Disclaimers. The combined work need only contain one copy of this License, and multiple identical Invariant Sections may be replaced with a single copy. If there are multiple Invariant Sections with the same name but different contents, make the title of each such section unique by adding at the end of it, in parentheses, the name of the original author or publisher of that section if known, or else a unique number. Make the same adjustment to the section titles in the list of Invariant Sections in the license notice of the combined work. In the combination, you must combine any sections Entitled History in the various original documents, forming one section Entitled History; likewise combine any sections Entitled Acknowledgements, and any sections Entitled Dedications. You must delete all sections Entitled Endorsements. 6. COLLECTIONS OF DOCUMENTS You may make a collection consisting of the Document and other documents released under this License, and replace the individual copies of this License in the various documents with a single copy that is included in the collection, provided that you follow the rules of this License for verbatim copying of each of the documents in all other respects. You may extract a single document from such a collection, and distribute it individually under this License, provided you insert a copy of this License into the extracted document, and follow this License in all other respects regarding verbatim copying of that document. 7. AGGREGATION WITH INDEPENDENT WORKS A compilation of the Document or its derivatives with other separate and independent documents or works, in or on a volume of a storage or distribution medium, is called
58
an aggregate if the copyright resulting from the compilation is not used to limit the legal rights of the compilations users beyond what the individual works permit. When the Document is included in an aggregate, this License does not apply to the other works in the aggregate which are not themselves derivative works of the Document. If the Cover Text requirement of section 3 is applicable to these copies of the Document, then if the Document is less than one half of the entire aggregate, the Documents Cover Texts may be placed on covers that bracket the Document within the aggregate, or the electronic equivalent of covers if the Document is in electronic form. Otherwise they must appear on printed covers that bracket the whole aggregate. 8. TRANSLATION Translation is considered a kind of modification, so you may distribute translations of the Document under the terms of section 4. Replacing Invariant Sections with translations requires special permission from their copyright holders, but you may include translations of some or all Invariant Sections in addition to the original versions of these Invariant Sections. You may include a translation of this License, and all the license notices in the Document, and any Warranty Disclaimers, provided that you also include the original English version of this License and the original versions of those notices and disclaimers. In case of a disagreement between the translation and the original version of this License or a notice or disclaimer, the original version will prevail. If a section in the Document is Entitled Acknowledgements, Dedications, or History, the requirement (section 4) to Preserve its Title (section 1) will typically require changing the actual title. 9. TERMINATION You may not copy, modify, sublicense, or distribute the Document except as expressly provided for under this License. Any other attempt to copy, modify, sublicense or distribute the Document is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 10. FUTURE REVISIONS OF THIS LICENSE The Free Software Foundation may publish new, revised versions of the GNU Free Documentation License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. See http://www.gnu.org/copyleft/. Each version of the License is given a distinguishing version number. If the Document specifies that a particular numbered version of this License or any later version applies to it, you have the option of following the terms and conditions either of that specified version or of any later version that has been published (not as a draft) by the Free Software Foundation. If the Document does not specify a version number of this License, you may choose any version ever published (not as a draft) by the Free Software Foundation.
Program Index
59
Program Index
A
ale . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 align_image_stack (Hugin) . . . . . . . . . . . . . . . . . . . 48
I
identify (ImageMagick) . . . . . . . . . . . . . . . . . . . 32, 48
C
cinepaint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13, 48 convert (ImageMagick) . . . . . . . . . . . . . . . . . . . . . . . . 48
M
montage (ImageMagick) . . . . . . . . . . . . . . . . . . . . . . . . 48
N D
dcraw . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3, 48 display (ImageMagick) . . . . . . . . . . . . . . . . . . . . . . . . 48 nona (Hugin) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13, 48
P
PanoTools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 pfshdrcalibrate (PFScalibration) . . . . . . . . . . . . . 48 pfsin (PFSTools) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 pfsout (PFSTools) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 pfstmo_* (PFStmo) . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 pfsview (PFSTools) . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 PTmender (PanoTools) . . . . . . . . . . . . . . . . . . . . . . . . . 48 PTOptimizer (PanoTools) . . . . . . . . . . . . . . . . . . . . . . 48
E
exiftool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 exrdisplay (OpenEXR) . . . . . . . . . . . . . . . . . . . . . . . 48
F
fulla (Hugin) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
G
gimp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3, 13, 48 gm (GraphicsMagick) . . . . . . . . . . . . . . . . . . . . . . . . . . 48
T
tifficc (LittleCMS) . . . . . . . . . . . . . . . . . . . . . . . . . . 49 tiffinfo (libtiff) . . . . . . . . . . . . . . . . . . . . . . . . . . 32, 48
H
hugin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3, 13, 36, 48
U
ufraw . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3, 48 ufraw-batch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Syntactic-Comment Index
60
Syntactic-Comment Index
E
enblend-response-file . . . . . . . . . . . . . . . . . . . . . . . . 7 enfuse-response-file . . . . . . . . . . . . . . . . . . . . . . . . . 7
G
glob . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 globbing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
F
filename-globbing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
R
response-file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Option Index
61
Option Index
--compression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 --contrast-edge-scale . . . . . . . . . . . . . . . . . . . . . . . 14 --contrast-min-curvature . . . . . . . . . . . . . . . . . . . 18 --contrast-weight . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 --contrast-window-size . . . . . . . . . . . . . . . . . . . . . . 14 --ContrastWindowSize (deprecated) . . . . . . . . . . . 14 --depth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 --EdgeScale (deprecated) . . . . . . . . . . . . . . . . . . . . . 14 --entropy-cutoff . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 --entropy-weight . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 --entropy-window-size . . . . . . . . . . . . . . . . . . . . . . . 16 --EntropyCutoff (deprecated) . . . . . . . . . . . . . . . . . 15 --EntropyWindowSize (deprecated) . . . . . . . . . . . . 16 --exposure-mu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 --exposure-sigma . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 --exposure-weight . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 --gray-projector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 --GrayProjector (deprecated) . . . . . . . . . . . . . . . . . 16 --hard-mask . . . . . . . . . . . . . . . . . . . . . . . . . . . 18, 23, 47 --HardMask (deprecated) . . . . . . . . . . . . . . . . . . . . . . 18 --help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 --levels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 --MinCurvature (deprecated) . . . . . . . . . . . . . . . . . . 18 --output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 --saturation-weight . . . . . . . . . . . . . . . . . . . . . . . . . 14 --save-masks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 --SaveMasks (deprecated) . . . . . . . . . . . . . . . . . . . . . 18 --soft-mask . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 --SoftMask (deprecated) . . . . . . . . . . . . . . . . . . . . . . 19 --verbose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 --version . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 --wContrast (deprecated) . . . . . . . . . . . . . . . . . . . . . 13 --wEntropy (deprecated) . . . . . . . . . . . . . . . . . . . . . . 13 --wExposureMu (deprecated) . . . . . . . . . . . . . . . 13, 14 --wExposureSigma (deprecated) . . . . . . . . . . . . . . . . 14 --wrap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 --wSaturation (deprecated) . . . . . . . . . . . . . . . . . . . 14 -b . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11, 34 -c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 -d . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 -f . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 -g . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 -h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 -l . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 -m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13, 34 -o . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 -v . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 -V . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 -w . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
General Index
62
General Index
#
# (response file comment) . . . . . . . . . . . . . . . . . . . . . . 6 contrast weighting using standard deviation . . . . 25 conversion, L*a*b* . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 conversion, raw . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
@
@ (response file prefix) . . . . . . . . . . . . . . . . . . . . . . . . . 5
D
dark frame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 decision tree, focus stacking . . . . . . . . . . . . . . . . . . . . 46 default output filename . . . . . . . . . . . . . . . . . . . . . . . . 10 deflate compression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 delimiters, option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 depth-of-field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 depth-of-focus increase . . . . . . . . . . . . . . . . . . . . . . . . . 39 digital blending . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 disabling average . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 double precision float, IEEE754 . . . . . . . . . . . . . . . . . 12 dynamic range increase . . . . . . . . . . . . . . . . . . . . 37, 39
3
360 panoramas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
A
a.tif . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 advanced focus stacking . . . . . . . . . . . . . . . . . . . . . . . 41 advanced focus stacking, recognizing faint edges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 advanced focus stacking, suppressing noise . . . . . 44 affine transformation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 algorithms, globbing . . . . . . . . . . . . . . . . . . . . . . . . . . 7, 8 alpha channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2, 4 alpha channel, associated . . . . . . . . . . . . . . . . . . . . . . 13 aperture, sweet spot . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 applications of enfuse . . . . . . . . . . . . . . . . . . . . . . . . . . 36 authors, list of . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 average, disabling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 average, weighted . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
E
edge detection, laplacian . . . . . . . . . . . . . . . . . . . . . . . entropy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . entropy, definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . estimators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . expectation value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . expert focus stacking tips . . . . . . . . . . . . . . . . . . . . . . exposure series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . exposure series, common misconceptions . . . . . . . exposure series, tips for beginners . . . . . . . . . . . . . . 43 30 30 27 26 47 37 38 38
B
basic focus stacking . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 binary mask . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 bits per channel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 blending exposures . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 bug reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 Burt-Adelson multiresolution spline . . . . . . . . . . . . . 1
F
filename template . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 filename, literal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 flash exposure series . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 focus stacking decision tree . . . . . . . . . . . . . . . . . . . . 46 focus stacking, advanced . . . . . . . . . . . . . . . . . . . . . . . 41 focus stacking, basic . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 focus stacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 focus stacks, fusing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 focus stacks, preparation . . . . . . . . . . . . . . . . . . . . . . . 39 focus stacks, why create them . . . . . . . . . . . . . . . . . . 39 format of response file . . . . . . . . . . . . . . . . . . . . . . . . . . 6 free documentation license (FDL) . . . . . . . . . . . . . . 53 fusing, local-contrast-based . . . . . . . . . . . . . . . . . . . . 40
C
channel width . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 channel, alpha . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 CIECAM02 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 circle-of-confusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 color appearance model . . . . . . . . . . . . . . . . . . . . . . . . 11 color space, sRGB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 compression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 compression, deflate . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 compression, JPEG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 compression, LZW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 compression, packbits . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 contrast enhancement, local . . . . . . . . . . . . . . . . . . . . 44 contrast weighting using a blend of methods . . . 29 contrast weighting using laplacian-ofgaussian . . 27
G
general index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 glob(7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 globbing algorithm literal . . . . . . . . . . . . . . . . . 7, 8 globbing algorithm none . . . . . . . . . . . . . . . . . . . . . . . 8 globbing algorithm sh . . . . . . . . . . . . . . . . . . . . . . . . . 8 globbing algorithm shell . . . . . . . . . . . . . . . . . . . . . . 8
General Index
63
globbing algorithm wildcard . . . . . . . . . . . . . . . . 7, 8 globbing algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . 7, 8 GNU free documentation license . . . . . . . . . . . . . . . 53 grammar, response file . . . . . . . . . . . . . . . . . . . . . . . . . . 6 grammar, syntactic comment . . . . . . . . . . . . . . . . . . . 7 gray projector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 gray projector, average . . . . . . . . . . . . . . . . . . . . . . 17 gray projector, channel-mixer . . . . . . . . . . . . . . . . 17 gray projector, l-star . . . . . . . . . . . . . . . . . . . . . . . . 17 gray projector, lightness . . . . . . . . . . . . . . . . . . . . 17 gray projector, luminance . . . . . . . . . . . . . . . . . . . . 17 gray projector, value . . . . . . . . . . . . . . . . . . . . . . . . . 18
local analysis window . . . . . . . . . . . . . . . . . . . . . . . . . . 25 local contrast enhancement . . . . . . . . . . . . . . . . . . . . 44 local contrast problem . . . . . . . . . . . . . . . . . . . . . . . . . 41 local-contrast-based fusing . . . . . . . . . . . . . . . . . . . . . 40 LZW compression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
M
mask template character, % . . . . . . . . . . . . . . . . . . . 20 mask template character, b . . . . . . . . . . . . . . . . . . . 20 mask template character, B . . . . . . . . . . . . . . . . . . . 20 mask template character, d . . . . . . . . . . . . . . . . . . . 20 mask template character, D . . . . . . . . . . . . . . . . . . . 20 mask template character, e . . . . . . . . . . . . . . . . . . . 20 mask template character, E . . . . . . . . . . . . . . . . . . . 20 mask template character, f . . . . . . . . . . . . . . . . . . . 20 mask template character, F . . . . . . . . . . . . . . . . . . . 20 mask template character, i . . . . . . . . . . . . . . . . . . . 20 mask template character, n . . . . . . . . . . . . . . . . . . . 20 mask template character, p . . . . . . . . . . . . . . . . . . . 20 mask template character, P . . . . . . . . . . . . . . . . . . . 20 mask template characters, table of . . . . . . . . . . . . . 20 mask, binary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 mask, filename template . . . . . . . . . . . . . . . . . . . . . . . 18 mask, input files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 mask, saving . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 mask, weight . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32, 33 masks, understanding . . . . . . . . . . . . . . . . . . . . . . . . . . 32 memory, tuning usage of . . . . . . . . . . . . . . . . . . . . . . . 34 Mertens-Kautz-Van Reeth exposure fusion . . . . . . 1 mode of operation (SDev, LoG, . . . ) . . . . . . . . . . . . 29 multi-directory TIFF . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 multi-layer image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
H
half precision float, OpenEXR . . . . . . . . . . . . . . . . . . helpful programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . hot pixels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Hugin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 48 47 51
I
ICC profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 IEEE754 double precision float . . . . . . . . . . . . . . . . . 12 IEEE754 single precision float . . . . . . . . . . . . . . . . . . 12
image cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 image cache, block size . . . . . . . . . . . . . . . . . . . . . . . . 11 image cache, cache size . . . . . . . . . . . . . . . . . . . . . . . . 13 image cache, location . . . . . . . . . . . . . . . . . . . . . . . . . . 34 image, multi-layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 images, fusable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 index, general . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 index, option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 index, program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 index, syntactic-comment . . . . . . . . . . . . . . . . . . . . . . 60 input mask . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 invocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
N
natural sharp-unsharp transition . . . . . . . . . . . . . . . 47 noise reduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
J
JPEG compression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
O K
KImageFuser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Octave . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 OpenEXR, data format . . . . . . . . . . . . . . . . . . . . . . . . . 12 OpenEXR, half precision float . . . . . . . . . . . . . . . . . . 12 option delimiters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 option index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 options, common . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 options, expert . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 options, extended . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 options, fusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 order, of processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 output file compression . . . . . . . . . . . . . . . . . . . . . . . . . 8 output filename, default . . . . . . . . . . . . . . . . . . . . . . . 10 output image, set size of . . . . . . . . . . . . . . . . . . . . . . . 13 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
L
L*a*b* conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 laplacian edge detection . . . . . . . . . . . . . . . . . . . . . . . 43 Laplacian of Gaussian (LoG) . . . . . . . . . . . . . . . . . . . 27 lens distortion, correction of . . . . . . . . . . . . . . . . . . . . 4 levels, pyramid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 LibJPEG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 LibPNG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 LibTiff . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 light probe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 literal filename . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
General Index
64
P
packbits compression . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 parallax error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 photometric alignment . . . . . . . . . . . . . . . . . . . . . . . . . . 4 pixels, hot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 polarization series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 probability function . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 problem reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 problem, local contrast . . . . . . . . . . . . . . . . . . . . . . . . 41 processing order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 profile, ICC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 program index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 programs, helpful additional . . . . . . . . . . . . . . . . . . . 48 pyramid levels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
T
TIFF, multi-directory . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
tiffcopy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 tiffsplit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 tips, focus stacking experts . . . . . . . . . . . . . . . . . . . . 47 TMPDIR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 tracker, SourceForge . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 transformation, affine . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 transition, natural sharp-unsharp . . . . . . . . . . . . . . 47
R
raw conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . response file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . response file, comment (#) . . . . . . . . . . . . . . . . . . . . . response file, force recognition of . . . . . . . . . . . . . . . . response file, format . . . . . . . . . . . . . . . . . . . . . . . . . . . . response file, grammar . . . . . . . . . . . . . . . . . . . . . . . . . . response file, syntactic comment . . . . . . . . . . . . . . . . 4 5 6 6 6 6 7
U
understanding masks . . . . . . . . . . . . . . . . . . . . . . . . . . 32
V
variance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
W
weight mask . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32, 33 weight, entropy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 weight, exposure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 weight, local contrast . . . . . . . . . . . . . . . . . . . . . . . . . . 13 weighted average . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 weighting functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 weighting, contrast using a blend of methods . . . 29 weighting, contrast using laplacian-ofgaussian . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 weighting, contrast using standard deviation . . . 25 weighting, exposure . . . . . . . . . . . . . . . . . . . . . . . . . 1, 23 weighting, general concept of . . . . . . . . . . . . . . . . . . 22 weighting, local contrast . . . . . . . . . . . . . . . . . . . . . 1, 25 weighting, local entropy . . . . . . . . . . . . . . . . . . . . . 1, 30 weighting, saturation . . . . . . . . . . . . . . . . . . . . . . . . 1, 24 window, local-analysis . . . . . . . . . . . . . . . . . . . . . . . . . 25 workflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 workflow with Enblend . . . . . . . . . . . . . . . . . . . . . . . . . . 3 workflow with Enfuse . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 wrap around . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
S
saturation enhancement . . . . . . . . . . . . . . . . . . . . . . . 39 scaling of parameters . . . . . . . . . . . . . . . . . . . . . . . . . . 29 sensor, use of clean . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 series, exposure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 series, flash exposure . . . . . . . . . . . . . . . . . . . . . . . . . . 39 series, polarization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 series, simple . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 simple series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 single precision float, IEEE754 . . . . . . . . . . . . . . . . . . 12 SourceForge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2, 50 SourceForge, tracker . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 sRGB color space . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 standard deviation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 statistical moments . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 subtraction of dark frame . . . . . . . . . . . . . . . . . . . . . . 47 sweet spot aperture . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 syntactic comment, grammar . . . . . . . . . . . . . . . . . . . 7