Am 08.03.21 um 18:02 schrieb Harry van der Wolf:
Hi,
I compiled 1.0.3 on my 64bit GalliumOS 3.1 (Ubuntu 18.04 LTS) laptop.
Started pv directly with 5 already aligned tifs.
This won't work.
(In Align_image_Stack I
created earlier both a pto and the aligned tifs: align_image_stack -v -p
8X.pto -a 8X P10048x.JPG )
command: pv 8X000?.tif
<snip>
interpreting trailing args as image files...
image file: 8X0000.tif
image file: 8X0001.tif
image file: 8X0002.tif
image file: 8X0003.tif
image file: 8X0004.tif
</snip>
Pressed 'u' and this happened
pv: pv_no_rendering.cc:9063: int inner_main(): Assertion `nfacets' failed.
Started pv again in the same way and pressed 'Shift-U' and exactly the
same error happened.
For *synoptic* displays of several images you need image registration
first - your invocation is fine for slideshows etc, where you look at
*one image after the other* - try pessing 'Tab' to get from one to the
next. If you want several images to show at the same time, you must use
a PTO file or an ini file to tell pv how they are positioned relative to
each other. That's why it says "assertion 'nfacets' failed": I use
nfacets as the number of images in a synoptic display, like a panorama
or a bracket. If it's 0, there is nothing synoptic - there are zero
facets. Hence the failed assertion.
Then I started pv with the pto as in: pv 8X.pto
Using 'U' or 'Shift-U' now works fine.
I did not do further tests yet.
So there. in a PTO it's fine. Maybe I should be less harsh about
people trying to fuse single images...
I hope to eventually offer services to do simple image registration in
pv - this would require control point detection and optimization - but
that's a major step and I'm not ready yet to do it.
If you have images which you know are aligned perfectly, an alternative
to a PTO is an 'ini' file, which is not very hard to make. Please refer
to the documentation - look e.g in README.rst line 1746ff, here's an
example:
In an ini file feeding a synoptic view, use projection=facet_map and
introduce each image with image=8X0000.tif etc - every key-value pair
has to go into a separate line. blending=hdr is just for looking at the
images correcly and the fov is mandatory:
projection=facet_map
blending=hdr
facet_hfov=50.0
image=8X0000.tif
image=8X0001.tif
image=8X0002.tif
image=8X0003.tif
image=8X0004.tif
Save that as xx.ini, then load it with pv's file select dialog or pass
it on the command line *as if it were an image*. Works like opening PTO
files. When loaded, you'll need to light-balance, because the file is
missing brightness values, so press 'Shift+L'. Then you can
exposure-fuse the images with 'U' or 'Shift+U'
You may also want to look at the sections in the documentation titeled
'Acceptable Input' and 'Displaying Several Images in one Session'.
Kay
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/hugin-ptx/5a1763d1-d8f0-8c38-cb48-81b126c24ce7%40yahoo.com.