Page 1 sur 1

[PTGui] Horizontalité

Publié : 6 juin 2009, 17:34 35
par Firetazz81
Salut,

Depuis la rencontre de panophto à LOdève, je me suis mis à PT Gui que je trouve très réatif.
Par contre je ne suis pas toujours satisfais de la correction de l'horizontalité qu'il propose.
Avec APP il y à l'outil lignes verticales, existe t-il un équivalent avec PT Gui?

Amitiés ;-)
Anthony

Re: [PT Gui] Horizontalité

Publié : 6 juin 2009, 17:51 41
par Mattpano
Salut,

Depuis la rencontre panophoto à Lodève, je me suis mis à Hugin que je trouve très réactif. :langue2:

Et pour l'outil lignes verticales, dans l'onglet des points de contrôles, je sélectionne à gauche et à droite la même image, puis je mets un ou plusieurs points.
Par exemple, s'il y a un poteau, dans l'image de gauche, je mets le point en haut du poteau, dans l'image de droite en bas du poteau, et il reconnait que c'est une ligne verticale ... puis je repasse par une optimisation

Je ne sais pas si ça peut t'aider, mais vu que ces deux logiciels sont très proches, ça doit être similaire :)

Re: [PT Gui] Horizontalité

Publié : 6 juin 2009, 19:31 50
par luc6x6
Mat .

jette un œil à photos Lodève !!

Re: [PT Gui] Horizontalité

Publié : 9 juin 2009, 22:19 47
par Mael B.
C'est vrai qu'il manque un vrai outil de redressement des verticales dans PTGui :???: il y a bien le bouton 'Straighten panorama' (fenêtre 'Panorama Editor') pour un alignement automatique, mais quand ça foire, il faut le faire 'à la main' !
Pour cela, j'utilise beaucoup les 'numerical transform' (bouton '123') :
- placer une ligne verticale au centre de l'équi avec le param. 'Yaw'
- redresser la verticale du centre avec le param. 'Roll' : mettre une petite valeur du style 1 ou -1 et l'appliquer plusieurs fois (ATTENTION: pensez à remettre 0 dans 'Yaw' avant !!)
- modifier la taille de la grille avec le petit curseur placé en bas au centre de l'équi (fenêtre 'Panorama Editor') puis redresser les autres lignes verticales avec le param. 'Pitch' (ATTENTION: pensez à remettre 0 dans 'Roll' avant !!)

Re: [PT Gui] Horizontalité

Publié : 9 juin 2009, 22:28 45
par sagedavid
Euh... moi je fais selon la technique de Matt, c'est pareil avec PTGui...

Re: [PT Gui] Horizontalité

Publié : 9 juin 2009, 22:48 39
par Mael B.
sagedavid a écrit :Euh... moi je fais selon la technique de Matt, c'est pareil avec PTGui...
Ah ouai ??!! C'est où dans PTGui ? j'ai jamais fait gaffe à ça !! 8/

Re: [PT Gui] Horizontalité

Publié : 9 juin 2009, 23:03 14
par sagedavid
Dans l'onglet "points de contrôle"
Tu places un point sur une ligne et son pendant décalé sur la photo à côté, puis tu choisis "Horizontale" ou "Verticale" dans la petite boite en bas > optimisation

Re: [PT Gui] Horizontalité

Publié : 9 juin 2009, 23:11 30
par gibie
Mael B. a écrit :Ah ouai ??!! C'est où dans PTGui ? j'ai jamais fait gaffe à ça !! 8/
C'est expliqué en détails dans ces tutorials : voir lien ou lien 2

Il y a aussi cette possibilité : voir lien

Re: [PT Gui] Horizontalité

Publié : 10 juin 2009, 11:11 59
par Mael B.
merci Gibie :)
Moi qui croyait avoir fait le tour de PTGui... et bein non !!

Re: [PT Gui] Horizontalité

Publié : 10 juin 2009, 12:13 43
par Germain
Si j'ai bien compris , avec les lignes verticales et horizontales on a pas besoin d'avoir un point identique sur les 2 images mais seulement un bout et l'autre d'une ligne ou d'un horizon?

Re: [PT Gui] Horizontalité

Publié : 10 juin 2009, 12:43 04
par sagedavid
oui, tu as bien compris ;)

Re: [PT Gui] Horizontalité

Publié : 10 juin 2009, 18:56 11
par Cyril
Mael B. a écrit :- placer une ligne verticale au centre de l'équi avec le param. 'Yaw'
Pareil.
Mais je vais voir la technique de David. :merci:

Re: [PT Gui] Horizontalité

Publié : 10 juin 2009, 19:24 06
par pmllc
La technique david que je pratique sous Hugin fonctionne très bien !

Re: [PT Gui] Horizontalité

Publié : 10 juin 2009, 19:40 08
par Mattpano
Pmllc pratique la technique de David
David pratique la technique de Matt
et Matt pratique la méthode de Pmllc

La boucle est bouclée :hehe:

Re: [PT Gui] Horizontalité

Publié : 11 juin 2009, 22:08 47
par gibie
Il est bon de relire de temps en temps la FAQ de PTGui : voir lien car on y trouve pleins d'informations interessantes

Ainsi au paragraphe 6.19

6.19. How do I level/straighten a panorama using horizontal / vertical line control points?
Besides straightening a panorama manually in the Panorama Editor, it's also possible to level a panorama using 'horizontal line' and 'vertical line' control points. Such control points indicate points that should end up on a horizontal or a vertical line in the panorama. PTGui is able to modify the orientation of the panorama in such a way that the horizontal / vertical line control points are aligned on a horizontal or vertical line, respectively, in the panorama.

Vertical line control points can be placed on any vertical feature in the panorama, such as the side of a building. Horizontal line control points should only be placed on the horizon itself: in a spherical panorama, all horizontal lines are curved, except for the horizon itself. For most panoramas (in particular cityscapes) it's easiest to use only vertical line control points. One exception would be a panorama of a sea shore: here you could place horizontal line control points on the horizon.

To add horizontal / vertical line control points, switch PTGui to Advanced mode by pressing the Advanced button in the Project Assistant. While regular control points can only be placed between two different images, horizontal / vertical line control points can be placed within the same image. To do so, choose the same image in the left and the right pane in the Control Points tab. The 'CP type' listbox sets the type of control point that will be created next. Choose 'horizontal line' or 'vertical line'. Then click on two points (one in the left pane and one in the right pane) that should be aligned horizontally or vertically. Even if the two points are within the same image, place one point in the left pane and one point in the right pane.

For most panoramas it's sufficient to place two pairs of horizontal line or vertical line control points. The best results are achieved if the two pairs are at different sides of the panorama.

Now there are two ways to have PTGui align the panorama based on the horizontal / vertical line control points:
In the Panorama Editor menu bar, choose Edit | Level Panorama.

PTGui will rotate and move the panorama in such a way that the horizontal / vertical line control points are aligned as much as possible. This is similar to dragging the panorama in the Panorama Editor in 'Panorama Edit' mode: since the panorama is moved as a whole, the alignment of individual images is not affected. Or:

Use the optimizer by pressing the 'Optimizer' or 'Run optimizer' buttons.

PTGui will first optimize the alignment of the images based on the normal control points. The horizontal / vertical line control points are ignored in this step. In a second pass the optimizer levels the panorama as described above, using only the horizontal / vertical line control points.

If you use the optimizer in Advanced mode (you have pressed the Advanced button in the Optimizer tab), be sure to give the optimizer enough freedom to modify the panorama orientation: The pitch and roll checkboxes for all images should be checked, and the yaw checkboxes for all images except one should be checked.

If you use the optimizer in Simple mode (you will see the 'anchor image' listbox in the Optimizer tab) PTGui will use the correct settings automatically.
If you are used to using the Panorama Tools optimizer, note the different behaviour of the PTGui optimizer. The Panorama Tools optimizer optimizes the project in a single pass, attempting to find a best fit for both the normal and the horizontal / vertical line control points in one go. A drawback of this method is that in order to achieve alignment of the horizontal / vertical line control points, the optimizer may choose to allow slight misalignments between the individual images. With the PTGui optimizer, the alignment of individual images takes priority and is not affected by the horizontal / vertical line control points. Please note the requirement to enable pitch and roll optimization for all images. After using the PTGui optimizer, the 'distance' column in the Control Points table will be empty for the horizontal / vertical line control points, since the optimization criterium for leveling is not related to the alignment of individual images
.