align_image_stack: image sizes not consistent

Bug #1670593 reported by Oto
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Hugin
Fix Committed
Undecided
Unassigned

Bug Description

align_image_stack crashes with error "image sizes not consistent" when given differently sized photos to align even if -C switch is used. If using -p switch PTO file is generated correctly.

----------
align_image_stack version 2016.2.0.be8da0221960 built by Thomas

"C:\Program Files\Hugin\bin\align_image_stack.exe" -C -a aligned *.tif
Run called
Inner 1024 20074496: 512 4224 - 512 5920
Starting 1024: 512 4224 - 512 5920
Starting 512: 512 4224 - 512 5920
Starting 256: 0 4224 - 512 5920
Starting 128: 0 4480 - 256 6176
Starting 64: 0 4608 - 128 6304
Starting 32: 0 4608 - 64 6304
Starting 16: 0 4640 - 32 6336
Starting 8: 0 4640 - 32 6352
Starting 4: 0 4640 - 24 6360
Starting 2: 0 4640 - 24 6360
Starting 1: 0 4642 - 22 6360
Set crop size to 0,22,4643,6361
ERROR: caught exception:
Precondition violation!
RemappedPanoImage<RemapImage,AlphaImage>::remapImage(): image sizes not consistent
(C:\Prog\Hugin\dynamic_vs2015\hugin-hg\src\hugin_base\nona/RemappedPanoImage.h:442)

Revision history for this message
tmodes (tmodes) wrote :

Align_image_stack works currently only with images of the same size, but the error message was not displayed correct. This is fixed in the repository.

The created pto file is not correctly in this case.

Changed in hugin:
milestone: none → 2017.0beta1
status: New → Fix Committed
Revision history for this message
Oto (otoluk) wrote :

Thanks. Is there a change request for this?

I have workflow where we scan old photos and do the scan 4 times each time rotating the photo by 90 degrees and later would need to align it and merge so to minimize noise and make lighting more uniform. This works if doing multiple scans without rotation as the size is the same but some noise/dust is still present as photo is not moved. Tried to make them the same size but then align_image_stack creates too much distortion as too much transformation is done.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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