Cropping using hugin_executor

78 views
Skip to first unread message

Jon James

unread,
Oct 19, 2023, 5:32:06 AM10/19/23
to hugi...@googlegroups.com
Hi All,

I am just starting to generate panoramas from the command line using hugin_executor rather than from the GUI and I have a query about controlling how the final panorama image is cropped.
When I was using the GUI I used to adjust the crop bounds by hand, so that all of the panorama image was included, rather than the default which was to crop to the maximum rectangle that could be filled by image - i.e. no black borders. 
The problem is that I can't see how to achieve this same crop when using the executor.  Can someone tell me if this is possible please and if so how to do it?

Many thanks

Jon 

T. Modes

unread,
Oct 19, 2023, 11:52:07 AM10/19/23
to hugin and other free panoramic software
Hi Jon,

hugin and other free panoramic software schrieb am Donnerstag, 19. Oktober 2023 um 11:32:06 UTC+2:
The problem is that I can't see how to achieve this same crop when using the executor.  Can someone tell me if this is possible please and if so how to do it?

It is possible. But the way depends on the exact workflow.
Hugin_executor itself does not calculate the crop. It delegates the function to other program.

The crop function itself can be called by pano_modify:
pano_modify --crop=autooutside ..

If you already calling pano_modify in your script simply adopt the call from pano_modify --crop=auto to the above.

If you are using the default assistant, you can create an user-defined assistant. You can use the example normal.assistant (under <Program File>\Hugin\share\hugin\data\assistant under windows or /usr/local/share/hugin/data/assistant under Linux) file as starting point and modify the pano_modify call.

In the current 2023.0 beta 1 you could instead also using an user-defined output options (File/Preferences, Assistant tab) and use the outside crop from there.

Thomas

Jon James

unread,
Oct 19, 2023, 12:33:16 PM10/19/23
to hugi...@googlegroups.com
Hi Thomas,
Thank you so much for this. I will look into all the options you mention.
I am generally extremely impressed with Hugin - amazing software!

Thanks again.
Jon

--
A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ
---
You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hugin-ptx+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hugin-ptx/e54bf114-e613-4b08-8fc3-7b6304a0d788n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages