Turn off "cropped images"

203 views
Skip to first unread message

Bob Bright

unread,
Mar 9, 2011, 1:27:08 PM3/9/11
to hugin and other free panoramic software
Hi all,

On the Stitching tab in hugin's preferences under the nona section
there's an option to "Create cropped images by default". When this
option is selected and you create a new project and save it, hugin
writes a .pto with a p line that includes an r:CROP instruction, like so:

# hugin project file
#hugin_ptoversion 2
p f2 w3000 h1500 v360 E0 R0 n"TIFF_m c:LZW r:CROP"
m g1 i0 f0 m2 p0.00784314

Unsetting the option and then re-saving the project does NOT remove the
r:CROP instruction. (Similarly, if you create a new project when
"cropped images" is not selected, the p line doesn't include the r:CROP
instruction, and subsequently setting the option doesn't make any
difference. I'm currently running the 2011.0.0beta2 version of hugin,
but I don't think anything has changed recently in this regard.)

Is this the expected behavior? Is there no way to remove the r:CROP
instruction short of manually editing the .pto file? I ask because I
inadvertently created a new project a few days ago with "cropped images"
selected, and ended up getting some rather funky results out of enblend,
owing to the fact that I was feeding it images of different sizes. :-)

Cheers,
BBB

--
Bob Bright
Vancouver Island Digital Imaging
(250) 857-9887
BBBr...@VictoriaVR.ca
http://VictoriaVR.ca

T. Modes

unread,
Mar 9, 2011, 1:38:50 PM3/9/11
to hugin and other free panoramic software
> Is this the expected behavior?  
Yes. The setting in the preferences is the default for *new* projects
and not for existing projects.

> Is there no way to remove the r:CROP
> instruction short of manually editing the .pto file?  

Pano/stitcher panel -> Nona -> Options -> unselect Save cropped images

Bruno Postle

unread,
Mar 9, 2011, 1:43:19 PM3/9/11
to hugin and other free panoramic software
On Wed 09-Mar-2011 at 10:27 -0800, Bob Bright wrote:
>
>On the Stitching tab in hugin's preferences under the nona section
>there's an option to "Create cropped images by default". When this
>option is selected and you create a new project and save it, hugin
>writes a .pto with a p line that includes an r:CROP instruction

>Unsetting the option and then re-saving the project does NOT remove
>the r:CROP instruction.

This is the intended behaviour, though suggestions for making it
more obvious are welcome.

Basically these Preferences settings only concern the creation of
new projects, you change settings for the current project in the
Stitcher tab. In this case Stitcher tab -> Remapper -> Options.

--
Bruno

Bob Bright

unread,
Mar 9, 2011, 2:31:30 PM3/9/11
to hugi...@googlegroups.com
Ah, silly me! I completely missed the Processing options at the bottom
of the Stitcher tab! (I normally have the main hugin window open on my
1280x800 display, with the preview window open on my 1920x1080 display.
On the smaller display, the Stitcher tab cuts off right after the Layers
output option, and I somehow failed to notice the scroll bar on the
right of the screen. So I've been assuming ever since the Stitcher tab
was reorganized that the Processing options had been removed and rolled
into Preferences. Doh!)

Thanks very much, Thomas and Bruno, for setting me straight!

Cheers,
BBB

--
Bob Bright
Vancouver Island Digital Imaging
(250) 857-9887
BBBr...@VictoriaVR.ca
http://VictoriaVR.ca

Frederic Da Vitoria

unread,
Oct 13, 2012, 5:34:15 AM10/13/12
to hugi...@googlegroups.com

I know this thread is 19 months old, but I have a suggestion which seems simple: add a mention in the Preferences/Programs dialog explaining where to change the setting for a pre-existing project.This could be as a text (like the Default Arguments in the Enblend and Enfuse boxes) or as a hint, if there is not enough room.

--
Frederic Da Vitoria
(davitof)

Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org

Bruno Postle

unread,
Oct 14, 2012, 6:19:46 PM10/14/12
to Hugin ptx
On Sat 13-Oct-2012 at 02:34 -0700, Frederic Da Vitoria wrote:
>>
>> Basically these Preferences settings only concern the creation of
>> new projects, you change settings for the current project in the
>> Stitcher tab. In this case Stitcher tab -> Remapper -> Options.
>
>I know this thread is 19 months old, but I have a suggestion which seems
>simple: add a mention in the Preferences/Programs dialog explaining where
>to change the setting for a pre-existing project.

What problems would there be if changing the preferences changed the
settings for current project at the same time?

--
Bruno

Rogier Wolff

unread,
Oct 15, 2012, 3:27:39 AM10/15/12
to hugi...@googlegroups.com
I think it's mainly a "code neatness" question. The preferences are
actually "new project defaults". Maybe calling it that would already
help.

I'm guessing that changing the settings for the current project from
that panel is not uniform for different settings. So a lot of special
code would be needed.

Roger.

--
** R.E....@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2600998 **
** Delftechpark 26 2628 XH Delft, The Netherlands. KVK: 27239233 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
The plan was simple, like my brother-in-law Phil. But unlike
Phil, this plan just might work.
Reply all
Reply to author
Forward
0 new messages