Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Cpfind should accept filenames and wildcards
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
John Eklund  
View profile  
 More options Jun 24 2012, 8:47 pm
From: John Eklund <jclo...@gmail.com>
Date: Sun, 24 Jun 2012 17:47:41 -0700 (PDT)
Local: Sun, Jun 24 2012 8:47 pm
Subject: Cpfind should accept filenames and wildcards

In short:
I strongly suggest making Cpfind accept filenames and wildcards to make it
usable for scripting.

Elaborated:

For the last few years I've been on-off working on a big panorama project
where over 60.000
individual images of mine are to be stitched into a couple of hundred
panormas for a virtual tour.
With this huge amount of material, a streamlined workflow becomes crucial.
I have developed a tightly slimmed workflow where I develop several
panoramas
in parallel through my processing pipeline. I work mostly in the command
prompt
through batch scripts and avoid the Hugin GUI for the most part.

My control point generator of choice has always been Alexandre Jenny's
great old Autopano 1.03,
which wins out over Autopano-SIFT in ease of use (Autopano-SIFT does not
interpret wildcards,
which makes usage a pain on Windows systems where the shell does not expand
them for me).

After upgrading my system, I've found that Autopano crashes on Windows 7
and I'm suddenly out of control point generator. The introduction of CPFind
in the Hugin package
is even worse from a batch-usage standpoint as it inconceivably expects a
complete
pre-made project file as input which would force me to handle every
panorama in the GUI.
As most of my images are preprocessed (including a stacking utility I
developed myself),
EXIF information is usually not preserved. This has never meant any trouble
as Autopano
doesn't need it anyway (thus I'd venture to say no control point generator
or panorama stitcher
should ever need it). Now having to manually add images and enter bogus
lens parameters
in Hugin to make CPFind work seems ridiculous.

I'd wholeheartedly suggest adding an alternative method of calling CPFind
by supplying images and making it process wildcards.

I'm currently unsure how to get past this setback. I guess until CPfind is
fixed,
either I'll have to adjust to using Autopano-SIFT (and spend most of my time
editing endless command lines of filenames), change to Linux or install
Windows XP
on a virtual machine just to get good old Autopano to work again.

Any suggestions?

Best regards
John Eklund, Sweden


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tduell  
View profile  
 More options Jun 25 2012, 2:01 am
From: Tduell <tdu...@iinet.net.au>
Date: Sun, 24 Jun 2012 23:01:16 -0700 (PDT)
Local: Mon, Jun 25 2012 2:01 am
Subject: Re: Cpfind should accept filenames and wildcards
Hello John,

On Jun 25, 10:47 am, John Eklund <jclo...@gmail.com> wrote:

> In short:
> I strongly suggest making Cpfind accept filenames and wildcards to make it
> usable for scripting.

It's not something I am familiar with through use, but if I understand
it correctly, pto_gen should be able to build a pto file using
filenames and wildcards, which can then be passed to cpfind.

i.e pto_gen -o fred.pto *.jpg
    cpfind -o output_project fred.pto

Cheers,
Terry


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruno Postle  
View profile  
 More options Jun 25 2012, 2:03 am
From: Bruno Postle <brunopos...@googlemail.com>
Date: Mon, 25 Jun 2012 07:03:13 +0100
Local: Mon, Jun 25 2012 2:03 am
Subject: Re: [hugin-ptx] Cpfind should accept filenames and wildcards

On 25 Jun 2012 06:39, "John Eklund" <jclo...@gmail.com> wrote:

> In short:
> I strongly suggest making Cpfind accept filenames and wildcards to make

it usable for scripting.

cpfind doesn't take filenames on the command line in part because of
limitations if the Windows shell.

Hugin now has a tool called pto_gen for preparing the input files for
cpfind and autopano-sift-c: http://wiki.panotools.org/Pto_gen

This does take filenames as input. If you have problems with the command
line length, you can use pto_merge to do it in steps:
http://wiki.panotools.org/Pto_merge

--
Bruno


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bart van Andel  
View profile   Translate to Translated (View Original)
 More options Jun 25 2012, 1:04 pm
From: Bart van Andel <bavanan...@gmail.com>
Date: Mon, 25 Jun 2012 10:04:20 -0700 (PDT)
Local: Mon, Jun 25 2012 1:04 pm
Subject: Re: Cpfind should accept filenames and wildcards

If you like you could also create a little batch script to create your
command line. The following script just creates a set of filenames based on
a wildcard. The wildcard has been hard coded here, but I assume you know a
bit about scripting already so you could easily modify this to your needs.

@echo off & setlocal enabledelayedexpansion

set wildcard=*
set files=

echo Generating a list of files using wildcard: %wildcard%

for %%f in (%wildcard%) do (
  rem For full path, use %%~ff
  rem For just filename and extension, use %%~nxf
  rem For plain use, use %%f

  set file=%%f

  rem Check for spaces and escape if necessary
  if not "!file!"=="!file: =_!" (
    set file="!file!"
  )

  rem Add file to our list of files
  set files=!files! !file!
)

echo Done.
echo.
echo List:
echo %files%
echo.

Good luck with your giant set of photos! What kind of your are we walking
about?

--
Bart


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Eklund  
View profile   Translate to Translated (View Original)
 More options Jun 25 2012, 1:35 pm
From: John Eklund <jclo...@gmail.com>
Date: Mon, 25 Jun 2012 10:35:29 -0700 (PDT)
Local: Mon, Jun 25 2012 1:35 pm
Subject: Re: [hugin-ptx] Cpfind should accept filenames and wildcards

On Monday, June 25, 2012 8:03:13 AM UTC+2, Bruno Postle wrote:

> cpfind doesn't take filenames on the command line in part because of
> limitations if the Windows shell.

> Hugin now has a tool called pto_gen for preparing the input files for
> cpfind and autopano-sift-c: http://wiki.panotools.org/Pto_gen

> This does take filenames as input. If you have problems with the command
> line length, you can use pto_merge to do it in steps:
> http://wiki.panotools.org/Pto_merge

Thanks! Pto_gen was new to me. I assume it will be in the regular Hugin
package?

Yes the Windows shell seems to have a relatively narrow limitation on
command line length but if you interpret wildcards that limitation is
invisible for most users. (I'd be happy to contribute - I'm a programmer).
If nothing else maybe Hugin could include a batch script to call pto_gen
and cpfind, making it more straight-forward.

It still seems pto_gen needs an FOV number for non-EXIF files. I'm not
knowledgeable on the complex optic math but just pragmatically notice that
Autopano was fine without. :-) AFAIK that's something that can be deduced
at a later stage with control points in place? Supplying a number by hand
always makes me nervous about introducing errors if I make up an initial
number that's too far off reality. Can I be safe that it's still
recalculated just fine regardless what I supply it? How accurate do I have
to be?

/John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Eklund  
View profile   Translate to Translated (View Original)
 More options Jun 25 2012, 2:46 pm
From: John Eklund <jclo...@gmail.com>
Date: Mon, 25 Jun 2012 11:46:28 -0700 (PDT)
Local: Mon, Jun 25 2012 2:46 pm
Subject: Re: Cpfind should accept filenames and wildcards

On Monday, June 25, 2012 7:04:20 PM UTC+2, Bart van Andel wrote:

> If you like you could also create a little batch script to create your
> command line. The following script just creates a set of filenames based on
> a wildcard. The wildcard has been hard coded here, but I assume you know a
> bit about scripting already so you could easily modify this to your needs.

> Good luck with your giant set of photos! What kind of your are we walking
> about?

Thanks!
It's a labor of love but sometimes overwhelming (world record?)
I've been documenting an old power station that 's subject of an ongoing
industrial preservation effort combined with a leisure / entertainment
facility currently being built. Nothing is officially published yet and the
project has been in suspended animation for some time, regrettably. You can
find a few excerpts of my work below: (some hotspots are clickable but not
all are finished). I make a point out of banning nadir caps. :)

http://www.angkraftverket.se/panorama/

/John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bart van Andel  
View profile   Translate to Translated (View Original)
 More options Jun 25 2012, 6:23 pm
From: Bart van Andel <bavanan...@gmail.com>
Date: Mon, 25 Jun 2012 15:23:53 -0700 (PDT)
Local: Mon, Jun 25 2012 6:23 pm
Subject: Re: Cpfind should accept filenames and wildcards

On Monday, June 25, 2012 8:46:28 PM UTC+2, John Eklund wrote:

> I've been documenting an old power station that 's subject of an ongoing
> industrial preservation effort combined with a leisure / entertainment
> facility currently being built. Nothing is officially published yet and the
> project has been in suspended animation for some time, regrettably. You can
> find a few excerpts of my work below: (some hotspots are clickable but not
> all are finished). I make a point out of banning nadir caps. :)

> http://www.angkraftverket.se/panorama/

Wow, that's really cool! How big a part have you finished until now? It's
like moving around in a Myst III-like world, but then for real, amazing!
I'd definitely like to see more when you're done!

--
Bart


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruno Postle  
View profile   Translate to Translated (View Original)
 More options Jun 26 2012, 5:26 pm
From: Bruno Postle <br...@postle.net>
Date: Tue, 26 Jun 2012 22:26:24 +0100
Local: Tues, Jun 26 2012 5:26 pm
Subject: Re: [hugin-ptx] Cpfind should accept filenames and wildcards
On Mon 25-Jun-2012 at 10:35 -0700, John Eklund wrote:

>On Monday, June 25, 2012 8:03:13 AM UTC+2, Bruno Postle wrote:

>> Hugin now has a tool called pto_gen for preparing the input files for
>> cpfind and autopano-sift-c: http://wiki.panotools.org/Pto_gen

>> This does take filenames as input. If you have problems with the command
>> line length, you can use pto_merge to do it in steps:
>> http://wiki.panotools.org/Pto_merge

>Thanks! Pto_gen was new to me. I assume it will be in the regular Hugin
>package?

It should be in any recent snapshot since December and will be in
the 2012.0.0 release.

>If nothing else maybe Hugin could include a batch script to call pto_gen
>and cpfind, making it more straight-forward.

A Windows batch script for this would be welcome and can be distributed
with Hugin.

>It still seems pto_gen needs an FOV number for non-EXIF files. I'm not
>knowledgeable on the complex optic math but just pragmatically notice that
>Autopano was fine without. :-) AFAIK that's something that can be deduced
>at a later stage with control points in place?

Yes it can, but a good initial estimate will get you a better spread
of control points.  With a 'normal' lens you can usually do ok
giving a FoV of 50, with any other lens it would be better to try
and estimate the actual angle.

--
Bruno


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JohnPW  
View profile  
 More options Jul 2 2012, 9:34 pm
From: JohnPW <johnpwatk...@gmail.com>
Date: Mon, 2 Jul 2012 18:34:26 -0700 (PDT)
Local: Mon, Jul 2 2012 9:34 pm
Subject: Re: Cpfind should accept filenames and wildcards

Wow. Quite a big project. And very nice images.
Nice work.
John

Thanks!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »