To speed things up Hugin keeps a copy in memory of as many input photos as possible. With very large projects, this would use all your system memory, so set Image cache memory to a value below your available free RAM. The default of 256MB should be ok for a system with 512MB of RAM, however this is very conservative, for large projects you will want to set this to a high proportion of your available system memory.
The Hugin Preview window is multi-threaded so can use more than one CPU/core if required. Set Number of CPUs to how many CPUs you wish to use.
Usually, Hugin will use the current locale to determine the language of buttons, menus etc... Set the Language if you need to switch languages temporarily or if you are using a platform such as Windows95 that doesn't support localised software. Hugin won't change language immediately, you will need to stop and restart it.
Some Hugin actions generate large temporary files, change the Temporary dir to specify an alternative location for writing these files. One reason for setting this independently to the operating system default would be to use a RAM disk to speed up stitching.
Note that intermediate stitching files are created in the output folder and not in this Temporary dir.
The Hugin Assistant tab automates the entire panorama creation process, these settings allow you to customise the assistant.
Select Automatically align images after loading to run the second Align... step immediately after loading the images.
Automatic control point checking after detecting control points
Select Remove cloud-like control points (Celeste) to run celeste after detecting control points. Celeste will remove Control points set to clouds, this is useful because clouds will move several pixels between shots and are therefore bad scene objects to use for alignment.
Select Remove outlying control points by statistical method to run cpclean, this will try to remove control points with positions that are not credible under pairwise optimisation.
Auto align uses autopano-sift or autopano to generate control points between pairs of images, set Number of Ctrl Points per overlap to control the number of control points. Note that although most pictures can be stitched with just three or four control points, automatically generated points tend not to be very evenly distributed, so this number should be set to ten or more
The size of the output Panorama Image Size is usually set in the Hugin Stitcher tab where it is also possible to Calculate Optimal Size based on the sizes of the input images. The Auto align process does something similar, though here you can set a smaller output as a percentage. Generally setting a percentage of 70% leads to no great loss of quality due to the way a camera CCD samples data.
After completing Align..., the Hugin Assistant tab will usually display the result in a preview window, here you can change this to Nothing for no preview at all, Fast Preview Window or Preview Window.
Control Points Editor
HDR and 16bit display
Hugin supports both HDR and 16bit imaging. These image formats contain a lot more brightness and colour information than can be displayed on a standard computer monitor, so Hugin only shows a rough representation of these pictures.
16bit data can have linear or corrected gamma. Linear images appear very dark on many monitors, so set the Curve to gamma 2.2.
For HDR data, try setting the Curve to logarithmic.
Changes to the HDR and 16bit display mode require restarting Hugin to take effect.
- When auto fine-tune is selected in the Hugin Control Points tab while picking control points.
- When clicking Fine-tune in the Hugin Control Points tab
- When picking Fine-tune all Points in the Hugin Main window Edit menu.
- Patch width, the size of the square of pixels taken from the left photo to match with the right photo when picking control points, reduce if this is taking a long time on your system.
- Search area width, the percentage area of the right photo that is searched when picking control points, reduce if this is taking a long time on your system.
- Local search area width, the region of the right photo searched when you click Fine-tune in the Hugin Control Points tab or Fine-tune all Points in the Hugin Main window Edit menu.
- Correlation Threshold. For each Fine-tune, Hugin calculates the quality of the control points match, raise this threshold to reject dubious matches.
- Peak Curvature Threshold, Currently unused.
Enable this if your photos:
- have a very wide angle Field of View or fisheye Projection.
- are tilted up or down, control points near the zenith or nadir may need to have full 360 degree rotation search
Control Point Detectors
- clicking 2. Align... in the Hugin Assistant tab.
- or clicking Create control points in the Hugin Images tab.
In list-box you can choose default Control point detector programs such as :
- autopano-sift-C - part of Hugin suite
- Panomatic (by Anael Orlinski)
- Align image stack - part of Hugin suite. Note that align_image_stack is not a general purpose control point detector, but is very effective for aligning images within stacks.
- Autopano (by A. Jenny), closed source, available for Linux i386 and Windows 32bit.
- Autopano-SIFT (by S. Nowozin), open source, available for Linux, Windows and OS X.
If you want to use a similar command-line tool that isn't already listed, this can configured with the New... button.
Parameters for these tools can be customized in the Parameters for Control Point Detectors window, which you can open using Edit... or New... buttons.
In the final stitching process nona reprojects and distorts images to fit, enblend takes these images as individual TIFF files and merges them using sophisticated seam positioning and blending and/or Exposure fusion into a single finished TIFF file.
Important note: The settings here are the defaults for new projects, change settings for the current project in the Hugin Stitcher tab.
Here you can set the Default interpolator used during stitching. Interpolation is a quality setting, but the default of Poly3 (Bicubic) is good for most purposes. You are unlikely to notice any difference between interpolators other than that Nearest neighbor is fast but very low quality.
You can Create cropped images by default, these Cropped TIFF images will speed up stitching, but some image editors do not process the offsets correctly.
Use GPU for remapping will activate experimental nona code to remap images using the shading language of the Graphics Processing Unit in modern video hardware .
enblend supports a range of Additional arguments, for example you may want to set:
- -a Pre-assemble non-overlapping images to speed up blending. This is generally useful, but will slow blending in rare cases.
- -l number Number of levels to use (1 to 29), larger numbers result in wider seams. E.g. setting 1 will result in a 2 pixel wide blend, 8 will result in a 256 pixel wide blend and you are extremely unlikely to want a blend level as high as 16.
- -b kilobytes Image cache block size (default=2MiB)
- -c Use CIECAM02 to blend colors. Your input images need to have embedded colour profiles for this to work.
- -m megabytes Use this much memory before going to disk (default=1GiB). Increase if you have a lot of memory on your system.
- --fine-mask Enables detailed mask generation.
- --no-optimize Turn off mask optimization.
Often a project has many control points attached to clouds in the sky, this is usually unwanted as clouds move between photos. celeste will attempt to identify 'sky' control points and delete them.