|(7 intermediate revisions by 3 users not shown)|
Use the '''Crop''' tab to indicate the
areas of the input images that [[hugin]] should |+|
Use the '''Crop''' tab to indicate the of the that should output. crop doesn't the images the .
|−|exclude from the stitching output. Note that unlike [[PTGui]], setting [[crop parameters]] in | |
|−|hugin doesn't change the [[Field of View]] or optical centre of your images , it simply | |
|−|indicates areas of the image to be masked out. | |
| || |
|−|(In detail, [[ hugin]] uses the '''S''' 'selection' parameter in the '''i''' and '''o''' |+|
|−|script lines instead of the '''C''' 'crop' parameter) |+|
| || |
|−|Note that this image cropping shouldn't be confused with a camera's [[ Crop factor]] , which is |+|
that image be [].
|−|something else entirely. | |
| || |
|−|There are three situations where you might want to use crop parameters in hugin: |+|
where you want to
| || |
|−|* With a scanned input image, there are usually black edges or marks along the sides of the image. |+|
[] the the you to .
|−|* With a circular [[ Fisheye Projection]] image there are black unexposed areas outside the image circle. | |
|−|* Some lenses have a lot of flaring around the edges which you don't want to keep. | |
| || |
|−|Depending on the input image type, cropping has two different behaviours: |+|
| || |
|−|* For circular fisheye photos the crop area is a circle. |+|
[[Hugin tab]] for , you .. fisheye images in the that to
|−|* For any other input image, the crop area is a rectangle. |+|
be '''' .
|−|(Change the input image type in the [[Hugin Camera and Lens tab]] ) | |
|−|The '''Crop''' tab features four text boxes for '''Left''', '''Top''', '''Right''' and '''Bottom''' | |
|−|where you can manually enter the positions of the four edges. The origin is top left and numbers | |
|−|indicate the distance in pixels from this origin. | |
|−|Note that numbers can be negative and can extend beyond the width and height of the photo, this is | |
|−|primarily useful for partial fisheye images where the full circle is not visible, in this case the crop circle | |
|−|extends beyond the picture frame. | |
|−|The default '''Always center crop on d,e''' assumes that all cropping is symmetrical around the | |
|−|optical centre of the lens. This is normal unless you are using the crop feature to | |
|−|remove lens flare, in which case the crop may need to be asymmetrical. | |
|−|The '''d''' and ''' e' '' lens parameters setting the position of the optical centre are used by the | |
|−|[[Lens correction model]] and are set in the [[Hugin Camera and Lens tab]]. | |
|−|Select the image to be cropped in the list to the left, you can adjust the position of the crop area | |
|−|by dragging the perimeter in the image preview on the right. | |
| || |
The "Autocrop" and "HDR Autocrop" buttons will adjust the crop rectangle so that it is entirely within the image area, i.e. there will be no "black" borders in the final stitched image (In other words: it determines the maximum number of pixels having no empty, black space). It does this by maximising the area of the rectangle rather than the width or height. This is automatically done when running the Hugin Assistant tab.
To change the cropping at each edge, move the mouse towards that edge until a semi-transparant white box appears along it; then drag with the left mouse button until the edge is where you want it. The area outside the dragging rectangle represents the areas that will be cropped off the panorama. You can move two edges at once by moving the mouse towards the corner shared by the edges until both white boxes appear. If you wish to move the whole region at once, move the mouse into the middle so that all four edges have boxes along them and drag.