How do I implement a standard stitching model in 1 independent pts file?

104 views
Skip to first unread message

Yohan Kim

unread,
Aug 12, 2022, 5:38:03 AM8/12/22
to PTGui Support
I am trying to implement stitching automation, but the information referenced by the pts file is too specific to use. I know that the pts file is in json format, but I want to make a universal pts file for any drone or camera model and stitch it. I tried applying it to several samples with a pts file with minimal settings, but it didn't work. How can I implement a universal pts file?

PTGui Support

unread,
Aug 12, 2022, 5:41:11 AM8/12/22
to pt...@googlegroups.com
Hi,

I don't think you can. At the very least, the number of images and their
file names in the .pts should match the actual images.

Kind regards,

Joost Nieuwenhuijse
www.ptgui.com
> --
> You received this message because you are subscribed to the Google
> Groups "PTGui Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ptgui+un...@googlegroups.com
> <mailto:ptgui+un...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ptgui/5a9e5345-e578-4e44-915d-cfcc36e3e5e0n%40googlegroups.com
> <https://groups.google.com/d/msgid/ptgui/5a9e5345-e578-4e44-915d-cfcc36e3e5e0n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Yohan Kim

unread,
Aug 15, 2022, 8:48:12 PM8/15/22
to PTGui Support
Does it mean that it can be implemented if  take file name and number of images as arguments?
On the premise that the file name and number of images are known, what is the natural way to stitch each pano with the command line?

PTGui Support

unread,
Aug 16, 2022, 3:23:39 AM8/16/22
to pt...@googlegroups.com
I'm sorry, it's more complicated. I think you can create a project file
for a give number of images with a given lens type. The color space (ICC
profile) should also be predefined.

File - New Project
Load the particular number of images (using that particular lens) into PTGui
File - Save Project

Now you have a .pts file to use as a starting point. The .pts is a JSON
file. You can modify the source file names and image dimensions to
accommodate your use case.

Kind regards,

Joost Nieuwenhuijse
www.ptgui.com

On 16-08-2022 02:48, Yohan Kim wrote:
> Does it mean that it can be implemented if  take file name and number of
> images as arguments?
> On the premise that the file name and number of images are known, what
> is the natural way to stitch each pano with the command line?
> On Friday, August 12, 2022 at 6:41:11 PM UTC+9 PTGui Support wrote:
>
> Hi,
>
> I don't think you can. At the very least, the number of images and
> their
> file names in the .pts should match the actual images.
>
> Kind regards,
>
> Joost Nieuwenhuijse
> www.ptgui.com <http://www.ptgui.com>
>
> On 12-08-2022 11:28, Yohan Kim wrote:
> > I am trying to implement stitching automation, but the information
> > referenced by the pts file is too specific to use. I know that
> the pts
> > file is in json format, but I want to make a universal pts file
> for any
> > drone or camera model and stitch it. I tried applying it to several
> > samples with a pts file with minimal settings, but it didn't
> work. How
> > can I implement a universal pts file?
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "PTGui Support" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send
> > an email to ptgui+un...@googlegroups.com
> > <mailto:ptgui+un...@googlegroups.com>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/ptgui/5a9e5345-e578-4e44-915d-cfcc36e3e5e0n%40googlegroups.com
> <https://groups.google.com/d/msgid/ptgui/5a9e5345-e578-4e44-915d-cfcc36e3e5e0n%40googlegroups.com>
>
> >
> <https://groups.google.com/d/msgid/ptgui/5a9e5345-e578-4e44-915d-cfcc36e3e5e0n%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/ptgui/5a9e5345-e578-4e44-915d-cfcc36e3e5e0n%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "PTGui Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ptgui+un...@googlegroups.com
> <mailto:ptgui+un...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ptgui/3079d450-9390-4ea1-b257-276112bece83n%40googlegroups.com
> <https://groups.google.com/d/msgid/ptgui/3079d450-9390-4ea1-b257-276112bece83n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Yohan Kim

unread,
Aug 16, 2022, 5:06:54 AM8/16/22
to PTGui Support

For example, I copied only the pts file of a project shot with one camera and applied it to images shot with another camera, 
and the result was like this. The first image is an image in Ptgui application, and the second image is the result of applying the pts file of another camera. Is this caused by lens distortion? Or is there some other cause?

There seems to be a basic stitching error.. Can you solve it if you only know the lens model?


33.png

PTGui Support

unread,
Aug 16, 2022, 12:00:06 PM8/16/22
to pt...@googlegroups.com
You need to tell PTGui to align the images (by generating control points).

In your project, make sure there are no control points.
In Project Settings - Batch Stitcher Actions, enable the 'Do Align
Images' checkbox and also the Create the Panorama checkbox.

The batch stitcher will then analyze the images, generate control points
and align the images based on those control points.

Kind regards,

Joost Nieuwenhuijse
www.ptgui.com

> 33.png
>
> --
> You received this message because you are subscribed to the Google
> Groups "PTGui Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ptgui+un...@googlegroups.com
> <mailto:ptgui+un...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ptgui/016ed36c-c508-4f03-96fa-de2055fa5e99n%40googlegroups.com
> <https://groups.google.com/d/msgid/ptgui/016ed36c-c508-4f03-96fa-de2055fa5e99n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Yohan Kim

unread,
Aug 16, 2022, 8:43:10 PM8/16/22
to PTGui Support
Doesn't the command line support such an align operation? 
I used the -stitchnogui option but it doesn't seem to support such align.(https://ptgui.com/support.html#6_32)
I want to automate it, but please tell me the option to align the image considering even manipulating the inside of the pts file.

John Houghton

unread,
Aug 17, 2022, 2:18:57 AM8/17/22
to PTGui Support
On Wednesday, August 17, 2022 at 1:43:10 AM UTC+1 yoha...@cupix.com wrote:
Doesn't the command line support such an align operation? 
I used the -stitchnogui option but it doesn't seem to support such align.(https://ptgui.com/support.html#6_32)
I want to automate it, but please tell me the option to align the image considering even manipulating the inside of the pts file.

The Align Images option is on the Project Settings tab of your pts file, along with many other options  that you need to consider.

John

PTGui Support

unread,
Aug 17, 2022, 3:47:59 AM8/17/22
to pt...@googlegroups.com
I just verified and it works fine here. I've created a project with 'Do
Align Images' enabled. When I run it with PTGui -stitchnogui, control
points are added and the modified project file is saved.

If you would like me to take a look, please make your project file and
the source images available for download.

Kind regards,

Joost Nieuwenhuijse
www.ptgui.com

On 17-08-2022 02:43, Yohan Kim wrote:
> Doesn't the command line support such an align operation?
> I used the -stitchnogui option but it doesn't seem to support such
> align.(https://ptgui.com/support.html#6_32)
> I want to automate it, but please tell me the option to align the image
> considering even manipulating the inside of the pts file.
>
> On Wednesday, August 17, 2022 at 1:00:06 AM UTC+9 PTGui Support wrote:
>
> You need to tell PTGui to align the images (by generating control
> points).
>
> In your project, make sure there are no control points.
> In Project Settings - Batch Stitcher Actions, enable the 'Do Align
> Images' checkbox and also the Create the Panorama checkbox.
>
> The batch stitcher will then analyze the images, generate control
> points
> and align the images based on those control points.
>
> Kind regards,
>
> Joost Nieuwenhuijse
> www.ptgui.com <http://www.ptgui.com>
>
> On 16-08-2022 11:06, Yohan Kim wrote:
> >
> > For example, I copied only the pts file of a project shot with one
> > camera and applied it to images shot with another camera,
> > and the result was like this. The first image is an image in Ptgui
> > application, and the second image is the result of applying the
> pts file
> > of another camera. Is this caused by lens distortion? Or is there
> some
> > other cause?
> >
> > There seems to be a basic stitching error.. Can you solve it if
> you only
> > know the lens model?
> >
> >
> > 33.png
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "PTGui Support" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send
> > an email to ptgui+un...@googlegroups.com
> > <mailto:ptgui+un...@googlegroups.com>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/ptgui/016ed36c-c508-4f03-96fa-de2055fa5e99n%40googlegroups.com
> <https://groups.google.com/d/msgid/ptgui/016ed36c-c508-4f03-96fa-de2055fa5e99n%40googlegroups.com>
>
> >
> <https://groups.google.com/d/msgid/ptgui/016ed36c-c508-4f03-96fa-de2055fa5e99n%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/ptgui/016ed36c-c508-4f03-96fa-de2055fa5e99n%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "PTGui Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ptgui+un...@googlegroups.com
> <mailto:ptgui+un...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ptgui/94e12644-b839-431d-a409-2db8a336b277n%40googlegroups.com
> <https://groups.google.com/d/msgid/ptgui/94e12644-b839-431d-a409-2db8a336b277n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Yohan Kim

unread,
Aug 22, 2022, 2:56:29 AM8/22/22
to PTGui Support
Thanks. 
The align problem for the same lens model has been solved. 
But why isn't a single pts file independent of the lens model? 
Distortion occurred when trying to stitch drone files from different lens models. 
Can't we automate the lens model, too?

PTGui Support

unread,
Aug 22, 2022, 4:15:20 AM8/22/22
to pt...@googlegroups.com
Currently that's not possible but extending the command line options is
on the wish list.

You can use the batch builder though. Just point it to a folder
containing your source images. With the default settings it will look at
the exif data and apply the proper lens type.

Kind regards,

Joost Nieuwenhuijse
www.ptgui.com

On 22/08/2022 08:56, Yohan Kim wrote:
> Thanks.
> The align problem for the same lens model has been solved.
> But why isn't a single pts file independent of the lens model?
> Distortion occurred when trying to stitch drone files from different
> lens models.
> Can't we automate the lens model, too?
>
> On Wednesday, August 17, 2022 at 4:47:59 PM UTC+9 PTGui Support wrote:
>
> I just verified and it works fine here. I've created a project with 'Do
> Align Images' enabled. When I run it with PTGui -stitchnogui, control
> points are added and the modified project file is saved.
>
> If you would like me to take a look, please make your project file and
> the source images available for download.
>
> Kind regards,
>
> Joost Nieuwenhuijse
> www.ptgui.com <http://www.ptgui.com>
>
> On 17-08-2022 02:43, Yohan Kim wrote:
> > Doesn't the command line support such an align operation?
> > I used the -stitchnogui option but it doesn't seem to support such
> > align.(https://ptgui.com/support.html#6_32
> <https://ptgui.com/support.html#6_32>)
> > I want to automate it, but please tell me the option to align the
> image
> > considering even manipulating the inside of the pts file.
> >
> > On Wednesday, August 17, 2022 at 1:00:06 AM UTC+9 PTGui Support
> wrote:
> >
> > You need to tell PTGui to align the images (by generating control
> > points).
> >
> > In your project, make sure there are no control points.
> > In Project Settings - Batch Stitcher Actions, enable the 'Do Align
> > Images' checkbox and also the Create the Panorama checkbox.
> >
> > The batch stitcher will then analyze the images, generate control
> > points
> > and align the images based on those control points.
> >
> > Kind regards,
> >
> > Joost Nieuwenhuijse
> > www.ptgui.com <http://www.ptgui.com> <http://www.ptgui.com
> <https://groups.google.com/d/msgid/ptgui/94e12644-b839-431d-a409-2db8a336b277n%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/ptgui/94e12644-b839-431d-a409-2db8a336b277n%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "PTGui Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ptgui+un...@googlegroups.com
> <mailto:ptgui+un...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ptgui/cbd61180-6d94-4f61-ae68-0bdde7420ab1n%40googlegroups.com
> <https://groups.google.com/d/msgid/ptgui/cbd61180-6d94-4f61-ae68-0bdde7420ab1n%40googlegroups.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages