Using Hugin

112 views
Skip to first unread message

Cmexota Sub

unread,
Mar 17, 2015, 1:36:18 PM3/17/15
to Hugin

Hello.
I am trying to include Hugin sources into my project.
Is there some sort of manual for this?
Thank you.

Terry Duell

unread,
Mar 17, 2015, 5:12:30 PM3/17/15
to hugi...@googlegroups.com
On Wed, 18 Mar 2015 04:36:14 +1100, Cmexota Sub <real.c...@gmail.com>
wrote:
It's not clear what your problem is. Can you explain in a bit more detail?

Cheers,
--
Regards,
Terry Duell

Cmexota Sub

unread,
Mar 18, 2015, 3:30:51 AM3/18/15
to hugi...@googlegroups.com
I am using Ubuntu now. My goal was to stitch several images to make some sort of panorama using my project. So, I decided to use Hugin for that. To use Hugin from my project I simply generated terminal commands like:
cpfind --multirow -o <projectName> <projectName>
It worked fine, but the goal was to use my project together with Hugin. After downloading source code, I included the main.cpp from hugin/src/hugin_cpfind/cpfind (because the first step is to make some control points on both images, right?). Then I found out that Hugin uses Java and Boost. After setting them up I have several errors in this main.cpp:
../huginsrc/hugin_cpfind/cpfind/main.cpp:35: error: multiple definition of `printVersion()'
So, I decided to write to you. Maybe there is some sort of manual of how to use Hugin source?
Thank you.

вторник, 17 марта 2015 г., 21:12:30 UTC пользователь Tduell написал:

Cmexota Sub

unread,
Mar 18, 2015, 5:33:16 AM3/18/15
to hugi...@googlegroups.com
I figured it out, my project already had method main... Anyway, makefile was messed up because of that.
After renaming my main I have another trouble:

../hugin_cpfind/cpfind/main.cpp:421: error: undefined reference to `PanoDetector::PanoDetector()'

Here is my include path:


INCLUDEPATH
+= "huginsrc/hugin_base/makefilelib/" \
"huginsrc/hugin_base/" \
"huginsrc/" \
"huginsrc/hugin_cpfind/" \
"huginsrc/hugin_cpfind/cpfind/" \
"huginsrc/foreign/zthread/src/" \
"huginsrc/foreign/zthread/include/" \
"huginsrc/foreign/vigra/" \
"huginsrc/foreign/"

What am I doing wrong?

Terry Duell

unread,
Mar 18, 2015, 5:48:24 AM3/18/15
to hugi...@googlegroups.com
On Wed, 18 Mar 2015 20:33:16 +1100, Cmexota Sub <real.c...@gmail.com>
wrote:
I believe there are regular builds of hugin for ubuntu available as
discussed here...
<http://wiki.panotools.org/Hugin_Compiling_Ubuntu#Shortcut>
which may help, otherwise the advice there on building hugin may be
helpful.
Message has been deleted

Cmexota Sub

unread,
Mar 23, 2015, 6:25:05 AM3/23/15
to hugi...@googlegroups.com
I managed to include libpano into my project (because, Hugin is based on it, yes?).
To do so, I installed libpano packet and all it dependencies.
Then, included library into my project
LIBS += -lpano13
After that I included libpano header like this:
extern "C" {
#include <pano13/PTcommon.h>
}
There were a lot of errors, if there was standard include option.

Still, I cannot understand the sequence of operations I have to init to get two or more images stitched.
For now I can only load images like this:
fullPath* p1 = new fullPath();
StringtoFullPath(p1, (char *)"/home/user/Images/1.jpg");
Image* im1 = new Image();
panoJPEGRead
(im1, p1);
Reply all
Reply to author
Forward
0 new messages