Optimizing horizontal Control Points

101 views
Skip to first unread message

Paco

unread,
Feb 16, 2012, 4:14:22 PM2/16/12
to PTGui Support
Hello,
I have updated to PTGui Pro version (9.1.3), and now when I tried
to use horizontal control points for a sea panorama I can't get them
optimized ¿Is required to select a specific option or it doesn't
works?.
Also, the tool doesn`t update correctly the "CP type:" combo for this
kind of points on the left side of a Control Point tab. But this is a
minor detail.

Best Regards,

Paco Lorente
Spain.

Erik Krause

unread,
Feb 16, 2012, 4:25:47 PM2/16/12
to pt...@googlegroups.com
Am 16.02.2012 22:14, schrieb Paco:
> I have updated to PTGui Pro version (9.1.3), and now when I tried
> to use horizontal control points for a sea panorama I can't get them
> optimized �Is required to select a specific option or it doesn't
> works?.

Works perfectly here. PTGui should ask to enable Pitch and Roll
optimization for all images if this isn't the case.

Could you provide your project file (without the images for the time
beeing) somewhere for download?

> Also, the tool doesn`t update correctly the "CP type:" combo for this
> kind of points on the left side of a Control Point tab.

In which case should it be updated? If you go to a new image it defaults
either to "Normal" (if two different images are chosen) or "Vertical
line" (if the same image is in both panes).

If you want to change the type later, right click on the list entry.

--
Erik Krause
http://www.erik-krause.de

Paco

unread,
Feb 16, 2012, 6:17:12 PM2/16/12
to PTGui Support
Hello Erik,
this is the project file.

# ptGui project file

#-encoding utf8
#-pathseparator \
#-fileversion 38
#-previewwidth 3000
#-previewheight 1500
#-vfov 180
#-resolution 300
#-fixaspect 1
#-outputfile
#-ccdcrop 1.621621621621622
#-hasbeenoptimized 1
#-morphmode 2
#-jpegparameters 100 0
#-tiffparameters 8bit packbits alpha_assoc
#-psdparameters 16bit packbits layered
#-qtvrparameters 800 600 1 1000 70 0 0 -180 180 0 -90 90 90 10 120 1
#-honorexiforientation 1
#-exrparameters noalpha
#-hdroutputhdrblended
#-hdroutputtonemapped
#-hdrfileformat hdr
#-hdrmethod fuse
#-hdrpsdparameters float none layered
#-tonemapsettings 0 0 0.5 1 0 20 0 0 2 0.27 0.67 0.06
#-fusesettings 0.5 0 0.2 0 0
#-cameracurve 3.441228 -0.551975 0.294423 -0.095632 0.072139
#-vignettingparams
#-wbexposure 0 0 0
#-pmoptexposuremode auto
#-pmoptvignettingmode enabled
#-pmoptwbmode disabled
#-pmoptflaremode disabled
#-pmoptcameracurvemode auto
#-exposurecorrection 0
#-blendweight 100 100 100 100 100 100 100 100
#-optviewpoint 00000000
#-colorcorrectlayers
#-useexif1
#-batchbuilder_useexif 0
#-stitcher ptgui
#-blender ptgui
#-blenderfeather 0
#-optimizer ptgui
#-interpolator default
#-autocpdone
#-templateapplied
#-imgrotate44444444
#-cpinactive 6 7
#-imginactive 6 7
#-linktoprevious
#-previewinactive
#-outputcrop 0 1 0 1
#-morphcp
#-nooptcp
#-alignsettings_generatecp 1
#-alignsettings_optimize 1
#-alignsettings_optimizeprealign 1
#-alignsettings_straighten 1
#-alignsettings_fit 1
#-alignsettings_chooseprojection 1
#-alignsettings_setoptimumsize 1
#-alignsettings_limitsize 500
#-alignsettings_optimizeexposure 0
#-hdrsettings_defaultlinkmode nolink
#-hdrsettings_donotask 0
#-batchsettings_align 0
#-batchsettings_stitch 1
#-batchsettings_stitchonlyifcontrolpoints 1
#-defaultprojectfilenamemode firstsourceimage
#-defaultprojectfilename_custom ""
#-defaultprojectfoldermode sourcefolder
#-defaultprojectfolder_custom ""
#-defaultpanoramafilenamemode asproject
#-defaultpanoramafilename_custom ""
#-defaultpanoramafoldermode projectfolder
#-defaultpanoramafolder_custom ""
#-userelativesourceimagepaths 1
#-optimizeraskreinitialize 0
#-applytemplate_lens 1
#-applytemplate_imageparams 1
#-applytemplate_crop 1
#-applytemplate_mask 1
#-applytemplate_panoramasettings 1
#-applytemplate_projectsettings 1
#-applytemplate_optimizer 1
#-globalcrop 0 0 0 0 0 0 0 0.5
#-theoreticalhfov 86.86246913305781
#-rect_compression_x 0
#-rect_compression_y 0
#-cylindrical_compression_y 0
#-transverse_cylindrical_compression_x 0
#-vedutismo_compression_x 1
#-transverse_vedutismo_compression_y 1
#-stereographic_compression 1
#-rectifisheye_compression 1
# Panorama settings:
p w10000 h5000 f2 v360 u20 n"PSD_mask"
m g1 i0 f0

# input images:
#-dummyimage
# The following line contains a 'dummy image' containing some global
parameters for the project
o w1 h1 y0 r0 p0 v82.9407051449103 a0 b-0.01219299215464287 c0 f3 d0
e0 g0 t0
#-imgfile 2592 3888 "Calella.TIF"
#-metadata 8 0.004 100 2011-08-15T17:02:13 3*16 0 0 -1 -1 * * * curve
10
#-viewpoint 0 0 0 0 0
#-exposureparams 0 0 0 0
o f3 y0.1150649514618181 r1.061373920299559 p1.445895160500214 v=0 a=0
b=0 c=0 d=0 e=0 g=0 t=0
#-imgfile 2592 3888 "Calella_1.TIF"
#-metadata 8 0.004 100 2011-08-15T17:02:24 3*16 0 0 -1 -1 * * * curve
10
#-viewpoint 0 0 0 0 0
#-exposureparams 0 0 0 0
o f3 y61.39116766715279 r0.3137554608550488 p1.03622454697944 v=0 a=0
b=0 c=0 d=0 e=0 g=0 t=0
#-imgfile 2592 3888 "Calella_2.TIF"
#-metadata 8 0.004 100 2011-08-15T17:02:28 3*16 0 0 -1 -1 * * * curve
10
#-viewpoint 0 0 0 0 0
#-exposureparams 0 0 0 0
o f3 y119.6215029512102 r1.42268434909812 p0.7782480592950662 v=0 a=0
b=0 c=0 d=0 e=0 g=0 t=0
#-imgfile 2592 3888 "Calella_3.TIF"
#-metadata 8 0.004 100 2011-08-15T17:02:31 3*16 0 0 -1 -1 * * * curve
10
#-viewpoint 0 0 0 0 0
#-exposureparams 0 0 0 0
o f3 y-173.0676935232776 r-0.01574352300880832 p2.672435137281866 v=0
a=0 b=0 c=0 d=0 e=0 g=0 t=0
#-imgfile 2592 3888 "Calella_4.TIF"
#-metadata 8 0.004 100 2011-08-15T17:02:34 3*16 0 0 -1 -1 * * * curve
10
#-viewpoint 0 0 0 0 0
#-exposureparams 0 0 0 0
o f3 y-114.3702242555606 r1.960614251490881 p0.7176927402944102 v=0
a=0 b=0 c=0 d=0 e=0 g=0 t=0
#-imgfile 2592 3888 "Calella_6.TIF"
#-metadata 8 0.004 100 2011-08-15T17:02:45 3*16 0 0 -1 -1 * * * curve
10
#-viewpoint 0 0 0 0 0
#-exposureparams 0 0 0 0
o f3 y-68.64165686197688 r-0.2023820795643019 p0.9166832571784482 v=0
a=0 b=0 c=0 d=0 e=0 g=0 t=0
#-imgfile 2592 3888 "Calella_7.TIF"
#-metadata 8 0.004 100 2011-08-15T17:03:13 3*16 0 0 -1 -1 * * * curve
10
#-viewpoint 0 0 0 0 0
#-exposureparams 0 0 0 0
o f3 y0.1352946462959892 r4.035701634178963 p1.917993232741623 v=0 a=0
b=0 c=0 d=0 e=0 g=0 t=0
#-imgfile 2592 3888 "Calella_8.TIF"
#-metadata 8 0.004 100 2011-08-15T17:03:26 3*16 0 0 65535 -1 * * *
curve 10
#-viewpoint 0 0 0 0 0
#-exposureparams 0 0 0 0
o f3 y0.1352946462959892 r4.035701634178963 p1.917993232741623 v=0 a=0
b=0 c=0 d=0 e=0 g=0 t=0

# Control points:
c n2 N3 x2148 y2196 X337 Y2214 t0
# Control Point No 0: 7.816748772309797
c n2 N3 x2408 y1688 X591 Y1704 t0
# Control Point No 1: 12.40663835950433
c n2 N3 x1723 y2765 X42 Y2850 t0
# Control Point No 2: 4.45425785591218
c n2 N3 x1858 y3285 X403 Y3353 t0
# Control Point No 3: 10.0827226885416
c n4 N3 x208 y2498 X2286 Y2414 t0
# Control Point No 4: 4.568512989053527
c n4 N3 x145 y2903 X2122 Y2807 t0
# Control Point No 5: 3.294915534121363
c n4 N3 x596 y3149 X2457 Y3123 t0
# Control Point No 6: 14.41317969633261
c n4 N3 x386 y1887 X2479 Y1796 t0
# Control Point No 7: 10.32541786432851
c n1 N2 x2003 y1861 X78 Y1858 t0
# Control Point No 8: 6.62954904570213
c n1 N2 x2353 y3167 X702 Y3134 t0
# Control Point No 9: 7.882945064334708
c n1 N2 x2431 y2581 X568 Y2572 t0
# Control Point No 10: 4.472042025355317
c n1 N8 x1421 y3456 X536 Y3336 t0
# Control Point No 11: -1
c n1 N8 x488 y3346 X1482 Y3356 t0
# Control Point No 12: -1
c n1 N8 x896 y3699 X1050 Y3095 t0
# Control Point No 13: -1
c n1 N8 x684 y2927 X1367 Y3802 t0
# Control Point No 14: -1
c n1 N8 x1922 y3639 X94 Y2977 t0
# Control Point No 15: -1
c n8 N4 x1497 y1146 X1772 Y3732 t0
# Control Point No 16: -1
c n8 N4 x1870 y1287 X2201 Y3569 t0
# Control Point No 17: -1
c n8 N4 x220 y322 X151 Y3115 t0
# Control Point No 18: -1
c n8 N4 x961 y690 X993 Y3518 t0
# Control Point No 19: -1
c n8 N4 x686 y260 X585 Y3102 t0
# Control Point No 20: -1
c n7 N3 x2545 y3481 X1999 Y1769 t0
# Control Point No 21: -1
c n7 N3 x427 y3759 X160 Y1935 t0
# Control Point No 22: -1
c n7 N3 x1322 y3689 X903 Y1681 t0
# Control Point No 23: -1
c n7 N3 x965 y3613 X590 Y1622 t0
# Control Point No 24: -1
c n7 N3 x1679 y3710 X1214 Y1730 t0
# Control Point No 25: -1
c n8 N3 x824 y470 X2529 Y3333 t0
# Control Point No 26: -1
c n8 N3 x37 y822 X1671 Y3411 t0
# Control Point No 27: -1
c n8 N3 x266 y699 X1932 Y3415 t0
# Control Point No 28: -1
c n8 N3 x731 y248 X2511 Y3064 t0
# Control Point No 29: -1
c n8 N3 x242 y346 X2057 Y3046 t0
# Control Point No 30: -1
c n8 N5 x2020 y371 X61 Y2754 t0
# Control Point No 31: -1
c n8 N5 x1988 y1787 X1437 Y3509 t0
# Control Point No 32: -1
c n8 N5 x1826 y1185 X744 Y3467 t0
# Control Point No 33: -1
c n8 N5 x1598 y867 X325 Y3475 t0
# Control Point No 34: -1
c n8 N5 x1833 y1610 X1204 Y3617 t0
# Control Point No 35: -1
c n6 N8 x2502 y3547 X1051 Y3375 t0
# Control Point No 36: -1
c n6 N8 x2059 y3371 X1558 Y3255 t0
# Control Point No 37: -1
c n6 N8 x1994 y3715 X1316 Y3020 t0
# Control Point No 38: -1
c n6 N8 x2314 y3339 X1386 Y3421 t0
# Control Point No 39: -1
c n6 N8 x1743 y3314 X1814 Y3070 t0
# Control Point No 40: -1
c n1 N6 x157 y3400 X1843 Y3296 t0
# Control Point No 41: 18.46242462926679
c n1 N6 x238 y2257 X2384 Y2216 t0
# Control Point No 42: 13.27127033674921
c n1 N6 x313 y1832 X2470 Y1792 t0
# Control Point No 43: 8.374038083290905
c n2 N7 x2024 y1677 X516 Y3569 t0
# Control Point No 44: -1
c n2 N7 x2552 y1838 X1119 Y3832 t0
# Control Point No 45: -1
c n2 N7 x2263 y1739 X778 Y3695 t0
# Control Point No 46: -1
c n2 N7 x1927 y1941 X360 Y3757 t0
# Control Point No 47: -1
c n2 N7 x1683 y1824 X111 Y3542 t0
# Control Point No 48: -1
c n5 N4 x102 y1964 X1938 Y1980 t0
# Control Point No 49: 9.181133419125672
c n5 N4 x864 y3472 X2201 Y3568 t0
# Control Point No 50: 8.476599300429029
c n5 N4 x139 y2801 X1840 Y2779 t0
# Control Point No 51: 1.231356909737926
c n2 N8 x256 y3578 X296 Y3254 t0
# Control Point No 52: -1
c n2 N8 x40 y3620 X535 Y3338 t0
# Control Point No 53: -1
c n2 N8 x106 y3383 X294 Y3463 t0
# Control Point No 54: -1
c n2 N8 x835 y3772 X47 Y2742 t0
# Control Point No 55: -1
c n2 N8 x493 y3546 X70 Y3121 t0
# Control Point No 56: -1
c n5 N6 x1590 y3465 X476 Y3541 t0
# Control Point No 57: 4.810326789547134
c n5 N6 x1324 y3527 X267 Y3647 t0
# Control Point No 58: 3.401923038371267
c n5 N6 x1526 y3592 X483 Y3677 t0
# Control Point No 59: 3.032962298359693
c n4 N4 x1511 y1971 X2542 Y1948 t2
# Control Point No 60: -1
c n5 N5 x83 y1944 X2514 Y1895 t2
# Control Point No 61: -1
c n6 N6 x85 y1934 X1838 Y1948 t2
# Control Point No 62: -1
c n5 N6 x776 y1925 X1303 Y1943 t2
# Control Point No 63: -1

# optimizer:
v v b r1 p1 y2 r2 p2 y3 r3 p3 y4 r4 p4 y5 r5 p5 y6 r6 p6

And about the second question all is Ok. Now I have understood your
criteria.

Also, a pair of requests for the tool.
1- A low cost request. At Tool/Options/Control Point Generator/
Generate at most XXX control points per image pair. If I put less than
5 please only show the warning, not to force a minimum of 5 control
points. Why? Because I always made handheld panoramas and in my
experience with 3 points I get good results, better than with some
more points.
2.- A high cost request. That control points generated between two
images, could be uniformly distributed along a straight line, more-
less. This would define the seam between the images, it works for my
case.
3.- If possible/optionally, avoid control points in clouds or in the
sky.


Thanks you very much.

Paco Lorente



On Feb 16, 10:25 pm, Erik Krause <erik.kra...@gmx.de> wrote:
> Am 16.02.2012 22:14, schrieb Paco:
>
> > I have updated to PTGui Pro version (9.1.3), and now when I tried
> > to use horizontal control points for a sea panorama I can't get them
> > optimized Is required to select a specific option or it doesn't

John Houghton

unread,
Feb 17, 2012, 4:16:05 AM2/17/12
to PTGui Support
Paco, I was able to run your project file with PTGui Pro. You have
horizontal line control points, but on the Optimizer tab you have not
checked p & r for all images - including those that are not checked in
the "use control points of" list. As Erik said, you will get a
message that offers to check p & r for all images when you try to run
the optimizer. You can choose not to do this and do the optimization
anyway, in which case the image does not get levelled. However, you
can then level the panorama by going to the Panorama Editor window and
run Edit->Level Panorama. This does not care about the current state
of the y,p,r settings.

It is worth noting that the horizontal line control points are not
used in the general optimization, but are actioned in a separate
levelling process applied to the entire composite image at the end.
This levelling process is the same as that provided in the Panorama
Editor window.

The alternative Panorama Tools optimizer (PTOptimizer.exe available
from the PTGui wed site) WILL optimize as per the settings in your
project file, as that optimizer does take the horizontal line control
points into account in the normal optimization.

John

Paco

unread,
Feb 17, 2012, 1:49:30 PM2/17/12
to PTGui Support
John,
thanks you very much for your response. But I think that I am
missing something, I have checked all p & r with PTGui Optimizer and
horizontal line control points are not optimized. For the moment I
will try the other options.

Best Regards
Paco Lorente

John Houghton

unread,
Feb 17, 2012, 2:18:13 PM2/17/12
to PTGui Support
On Feb 17, 6:49 pm, Paco <pacor...@gmail.com> wrote:

> I have checked all p & r with PTGui Optimizer and
> horizontal line control points are not optimized.

Paco, I don't, of course, have your images (only dummies), but if I
rotate the panorama in the Panorama Editor window by, say, 30 degrees,
running the optimizer clearly brings the panorama back to its original
orientation. This shows that the horizontal line control points are
being used to level the panorama, though they take no part in the main
optimization as I said.

John

Paco

unread,
Feb 22, 2012, 4:51:35 PM2/22/12
to PTGui Support
Thanks you, John.
I think that there are not necessary horizontal line control
points to level a panorama, all is a problem of math numerical methods
and this kind of points are more parameters in the equations. PTGui
team owns the response in this case.

Best Regards
Reply all
Reply to author
Forward
0 new messages