PTOSORT(1)

πŸ“¦
version 0.29 Β· 2 versions
, in fedora 43

πŸ’– PTOSORT(1) πŸ’–

okay so bestie, welcome to the ptosort page β€” it's a User Contributed Perl Documentation joint, and it's about to sort your whole pto life out ✨


🌸 NAME 🌸

ptosort β€” sort pto files with variable criteria. that's it, that's the girl πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

ptosort [options] infile.pto outfile.pto

and the options, in all their glory:

 Options:
  -p | --point order    Provide a sorting order for control points
  -i | --image order    Provide a sorting order for images
  -c | --clean yes/no   Switch removal of duplicate control points
                        on/off, default is on
  -h | --help           Show the full manpage

✨ DESCRIPTION ✨

so ptosort takes a pto file as input, sorts it, and writes a sorted pto file back out as output. no cap, that's the whole gig 🫢

by default? images get sorted according to their filename, and control points get sorted by left image number, then right image number, then y pixel coordinate. very demure, very mindful.

now here's where it gets iconic β€” the --point and --image command line options let you change up the sorting order. the order string should be a list of letters separated by commas, identifying which values get compared. e.g. for images y means yaw, or r means roll. iykyk.

by default, sorting for yaw (y), pitch (p), roll (r) and exposure (Eev) is fuzzy β€” meaning values within an interval of 10 degress for yaw are considered to be the same πŸ‘€. this is especially useful when sorting multirow panoramas, lowkey a lifesaver.

  • append a colon to the sort parameter and it forces strict sorting, no fuzziness, zero chill πŸ’€
  • append a tilde and a numerical value to specify the fuzziness in terms of intervall width 🌈

πŸ”₯ EXAMPLES πŸ”₯

ptosort --image n --point n,N,y in.pto out.pto

sort the images by filename and the control points by left image number, right image number and y pixel coordinate. this is identical to the default behaviour without options β€” so if you do nothing, you're already doing this, main character energy ✨

ptosort --image y in.pto out.pto

sort images by yaw, and control points using the default πŸ’…

ptosort --image y,p,Eev in.pto out.pto

sort images in a multiraw panorama by position and exposure value πŸŽ€

ptosort --image Eev:,y~5.5,p in.pto out.pto

sort strict without fuzziness by exposure value, with a fuzziness interval of 5.5 degree by yaw, and by pitch πŸ¦‹


πŸ‘‘ LICENSE πŸ‘‘

this program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. slay, and also legally binding πŸ’œ


🌟 AUTHOR 🌟

Felix Hagemann, July 2008 🌸


okay that's the whole page bestie, go forth and sort 🫢✨

this beauty lives in perl v5.42.0, dated 2025-07-25 β€” PTOSORT(1), periodt πŸ’…πŸŽ€
πŸ“¦ where this page comes from