← Back to team overview

hugin-devs team mailing list archive

[Bug 2016362] Re: Feature request: Add "Fit crop around images" button

 

*** This bug is a duplicate of bug 679939 ***
    https://bugs.launchpad.net/bugs/679939

Attached is the patch to add this functionality.  It adds a new "Fit
Crop Around Images" button below the "Fit Crop to Images" button on the
"Stitcher" tab.  The code crops the panorama so that all source pixels
visible in the current field of view are present in the output panorama.

Code has been tested against ~50 panoramas with no issues.

Patch generated with: diff -Naur original_dir modified_dir

Apply patch by entering the source's root directory (the one containing
"authors.txt") and running: patch -p1 <
/PATH/TO/CalculateMaximalROI.patch

Patch works with the current Mercurial version (hugin-
hugin-b003111da6884594f315177298fbb10e2b5bc5af) and the hugin-2022.0.0
release (albeit with a couple of offset warnings).

** Patch added: "CalculateMaximalROI.patch"
   https://bugs.launchpad.net/hugin/+bug/2016362/+attachment/5664358/+files/CalculateMaximalROI.patch

-- 
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Hugin.
https://bugs.launchpad.net/bugs/2016362

Title:
  Feature request: Add "Fit crop around images" button

Status in Hugin:
  New

Bug description:
  It would be useful to have a button that sets the crop so that all of
  the pixels in the source images are in the final image (i.e. set the
  bounding box to surround all of the source images).

  This is similar (kind of opposite) in behavior to the "Stitcher→Fit
  Crop to Images" button that sets the crop so that there are no non-
  image pixels in final image.

  This is useful for when you want to be able to see all of the source
  images in the final image and don't care if it looks pretty.  The
  specific use-case that I have is documenting locations for
  cartography.  I want to be able to see all of a location and currently
  I have to manually set the crop for each panorama.

To manage notifications about this bug go to:
https://bugs.launchpad.net/hugin/+bug/2016362/+subscriptions



References