cpfind bad performance in version 2017.0.0

67 views
Skip to first unread message

weiyu...@gmail.com

unread,
Oct 31, 2017, 2:52:15 AM10/31/17
to hugin and other free panoramic software
Hello,

Here is a issue about cpfind performance in version 2017.0.0. I use this command

cpfind --prealigned -o {origin_pto} {final_pto}

to update control points in pto based on six fisheye images.

The cpfind command costs about 90s in hugin version 2017.0.0, but only costs about 30s in hugin version 2016.2.0

I see the changed about cpfind in 2017 release notes, should I change my command arguments or maybe is it a performance bug?

Thank you for your help.
demo.pto

T. Modes

unread,
Oct 31, 2017, 4:29:48 AM10/31/17
to hugin and other free panoramic software
Am Dienstag, 31. Oktober 2017 07:52:15 UTC+1 schrieb weiyu...@gmail.com:
The cpfind command costs about 90s in hugin version 2017.0.0, but only costs about 30s in hugin version 2016.2.0
I see the changed about cpfind in 2017 release notes, should I change my command arguments or maybe is it a performance bug?

The changes in 2017.0 should only affect some pre-processing. I can't imaging that this changes do increase the processing time in this extend.
You have not mentioned your os and if you compiled Hugin itself or using a packaged version.
First thing to check if Hugin/cpfind is compiled with OpenMP support: Add -v to cpfind command line.
It should print something like:
Hugin's cpfind Pre-Release 2017.1.0.03aad827e9f9 built by Thomas
based on Pan-o-matic by Anael Orlinski
Input file           : demo.pto
Output file          : demo2.pto
Number of threads  : 4 <-- the number here should be bigger than 1

Input image options
  Downscale to half-size : yes
Sieve 1 Options
<snip>

Also your pto file contains some strange settings: a FOV of 357.4 is very big, also for a fisheye. Also the lens distortion parameter a very high (a1.2 b-2.5 c0.46), probably to tweak the wrong fov.

Thomas

PS: Please post only once. A second, identical post is not necessary.

weiyu...@gmail.com

unread,
Nov 1, 2017, 2:25:56 AM11/1/17
to hugin and other free panoramic software
my os is ubuntu 14.04
I install hugin by apt-get
add-apt-repository -y ppa:hugin/hugin-builds
apt-get update 
apt-get install -y hugin

the "cpfind -v demo.ptoi" shows

Hugin's cpfind 2017.0.0.eac5e8cc546e
based on Pan-o-matic by Anael Orlinski
Input file           : test1/8bd82ed4bd9df7159d006cfa5e6ea0db.pto
Output file          : default.pto
Number of threads  : 2


Input image options
  Downscale to half-size : yes
Sieve 1 Options
  Width : 10
  Height : 10
  Size : 100
  ==> Maximum keypoints per image : 10000
KDTree Options
  Search steps : 200
  Second match distance : 0.25
 ......
--- Write Project output ---
Written output to default.pto

Detection took 97.044 seconds
 

PS: sorry for two posts, I will delete another on.

在 2017年10月31日星期二 UTC+8下午4:29:48,T. Modes写道:

T. Modes

unread,
Nov 1, 2017, 1:07:13 PM11/1/17
to hugin and other free panoramic software


Am Mittwoch, 1. November 2017 07:25:56 UTC+1 schrieb weiyu...@gmail.com:
my os is ubuntu 14.04
I install hugin by apt-get
add-apt-repository -y ppa:hugin/hugin-builds
apt-get update 
apt-get install -y hugin

the "cpfind -v demo.ptoi" shows

Hugin's cpfind 2017.0.0.eac5e8cc546e
based on Pan-o-matic by Anael Orlinski
Input file           : test1/8bd82ed4bd9df7159d006cfa5e6ea0db.pto
Output file          : default.pto
Number of threads  : 2
Okay, that's not the cause. The OpenMP support is compiled in.


Also your pto file contains some strange settings: a FOV of 357.4 is very big, also for a fisheye. Also the lens distortion parameter a very high (a1.2 b-2.5 c0.46), probably to tweak the wrong fov.

I would recommend first to fix the mentioned issues in the pto file.
After this run the same pto file in 2016.2 and 2017.0 with the -v switch. When running check at runtime which step takes longer. Also post the full log of both invocations.
Reply all
Reply to author
Forward
0 new messages