'Create panorama' is disabled in single photo projects

Bug #847433 reported by Bruno Postle
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Hugin
Fix Released
Undecided
Unassigned

Bug Description

When starting a project, both 2. Align... and 3. Create panorama are greyed out which makes sense.

However if I load a single photo into Hugin, they are still greyed. This is a problem as a common use of Hugin for me is to load a single image and remap it to a different projection.

Revision history for this message
Bruno Postle (brunopostle) wrote :

I hadn't noticed there is still a Stitch! button in the Stitcher tab, it had just moved to the corner where I lost it, so this isn't so critical.

Though I think the Assistant is still too strict, Align... with a single photo should run linefind, level and crop, this is something that a user should want to then stitch.

Revision history for this message
tmodes (tmodes) wrote :

Hi Bruno,

The assistant is running the following commands:
cpfind
optional linefind, celeste, cleancp
autooptimiser -a -m -l -s
pano_modify --crop=AUTO

But what should happen with only one image?
linefind - but what's when linedfind is deactivated in preferences?
autooptimiser: what options are sensible for only one image? (-m and -l can be disregarded, works -a with only one image, or is an other optimiser strategy more suitable?)
pano_modify --crop=AUTO: this can stay unchanged

Could you please test/comment on the mentioned issues. Then I can try to implement it.

Revision history for this message
Yuv (yuv) wrote :

My 2 cents to the question raised in comment #2: What should happen with only one image? Nothing.
If the user adds images, then go with the assistant's commands listed above.
If the user makes changes to the panorama project in the Projection, Move/Drag, Crop tabs, activate the 2. Align... button and the 3. Create panorama... button in the Assistant tab and wait for user input.

If the user clicks on 2. Align... when there is only one image in the project, run autooptimiser -l

s would fiddle with the manual changes the user has done in the Projection, Move/Drag, and Crop tabs without adding value and the other options are not applicable to a single image scenario

While the issue is not too critical, switching to Advanced interface to find the Stitch! button in the Stitcher tab for something so simple defeats the purpose of having a Simple Interface. Remapping of a single image should not require advanced manipulations when all the process is so WYSIWYG in the Simple Interface.

Revision history for this message
tmodes (tmodes) wrote :

Fixed in repository: the create button is now activated similar to description in comment #3.
Also the assistant got a special case for single image projects.

Changed in hugin:
milestone: none → 2017.0beta1
status: New → Fix Committed
tmodes (tmodes)
Changed in hugin:
status: Fix Committed → Fix Released
Revision history for this message
Bruno Postle (brunopostle) wrote :

Reopening this as there is a regression!

I tried to use the 'equi and cubic' output to convert a single equirectangular image to cubic, but 'Create Panorama' isn't enabled unless the 'Align' step has completed so this isn't available.

Workaround is to create a dummy vertical control-point with zero error, then Align, and Create Panorama > Equi and cubic.

Changed in hugin:
status: Fix Released → New
Revision history for this message
tmodes (tmodes) wrote :

There are some special checks for the activation of the create pano button if the project contains only one image.
But these are ignored directly after loading the image.
This can be easily changed.
But what checks would be sensible for single image projects?
Currently it enables create button when
* output projection != equirectangular
* crop set
But this may not be so useful when using an user defined output.

I thought of adding
* image projection === euquirectangular

Do you have other ideas what checks to do?

Revision history for this message
Bruno Postle (brunopostle) wrote :

I think that loading an equirectangular and extracting a single manually chosen narrow angle view image is something lots of people would want to do. This came up because somebody asked me how to create cube faces, in this case it should be possible to do this with just a 'load' and 'create' click.

Revision history for this message
tmodes (tmodes) wrote :

This use case is already covered by the existing checks.

Should now be fixed in repository.

Changed in hugin:
milestone: 2017.0beta1 → 2023.0beta1
status: New → Fix Committed
tmodes (tmodes)
Changed in hugin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.