On 04/25/2016 04:08 AM, T. Modes wrote:
> Am Dienstag, 19. April 2016 05:39:01 UTC+2 schrieb Abrimaal:
>
> *Build 2016: *
>
> The line find routine detects horizontal lines in the images, but
> they are listed as vertical. It causes problems with straightening
> of panoramas.
>
>
> linefind searches only for vertical line. Either the orientation of your
> images does not match (wrong rotation information) or you rotated the
> images in Hugin.
> If you don't provide more information, it is impossible to fix it.
Sorry for the delay.
Here's a link to a zipped up PTO, raw images and converted TIFF images
(converted using RawTherapee), plus the RawTherapee settings files:
http://clanjones.org/linefind-finds-horizontal-lines-test.zip
Running linefind on these two images (while using the workflow I've
always used with Hugin) resulted in 10 vertical lines, 5 of which are
actually horizontal lines.
Note: The images are not rotated in camera or any other software, these
are landscape orientation from start to finish.
Steps I used to produce it using Expert interface:
1. On Photos tab, add the images.
2. Run CPFind.
3. Run linefind.
4. Click Show Control Points button.
6. Sort list by Alignment so vert. Line is at top. Note 10 "vert.
Lines". Five have distances between 0.59 and 1.08. Five others have
distances between 37.26 and 44.93.
7. Click on any vertical line with small distances. Note that each is
visibly a vertical line.
8. Click on any verical line with large distances. Note that each is
visibly a HORIZONTAL line.
That process produced linefind-finds-horizontal-lines-test1.pto
Continuing on from there using the rest of my usual workflow (optimize
for position, clean control points, optimize everything) produced
linefind-finds-horizontal-lines-test2.pto.
So, linefind is finding horizontal lines but marking them as vertical lines.
In this particular small panorama, Hugin didn't end up rotating the
entire panorama 90 degrees. Doing my usual workflow steps on a panorama
using 11 frames gave me 55 vertical lines, 25 of which were visibly
horizontal lines, not vertical.
On the larger panorama, I tried changing the large-distance vertical
lines to horizontal lines; that changed distances from 60-120 to 0-10
distances. Optimizing for position in with those reported errors of 300.
Following that with optimize everything without translation gave error
of 949. Cleaning control points, removing 37 and reoptimizing reduced
error to 18. That eventually produced a panorama with a tilt toward the
right on the right hand side. Running the Straighten tool on it produced
a panorama with vertical alignments on the right side that tilted a bit
toward the right.
Executive summary:
With Hugin 2016.0.0.3b4e2790cb90 (newest one in Debian Testing), do this
extra step that wasn't needed in Hugin 2015: Sort control points by type
and delete all "vertical lines" that are actually horizontal lines. They
usually have large distances. Changing them to horizontal lines and
deleting any new horizontal lines that still had larger distances,
didn't help much. Best to delete the vertical lines found by linefind
that are actually horizontal lines.