SourceForge.net | 3 May 2010 01:40
Picon
Favicon

[ panotools-Bugs-2995662 ] Uninitialized variable used

Bugs item #2995662, was opened at 2010-05-03 01:40
Message generated for change (Tracker Item Submitted) made by gloinson
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=613954&aid=2995662&group_id=96188

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: windows build
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Christian Georg Becker (gloinson)
Assigned to: Nobody/Anonymous (nobody)
Summary: Uninitialized variable used

Initial Comment:
My compiler (VC9) tells me, that in 'math.c', line 1103 the uninitialized local variable 'a' is used. I
looked over the code and do not find any macro that might initialize 'a'. The line has been comitted with
rev1251 and I really can't extrapolate how to initalize 'a' ...

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=613954&aid=2995662&group_id=96188

------------------------------------------------------------------------------
(Continue reading)

SourceForge.net | 3 May 2010 14:28
Picon
Favicon

[ panotools-Bugs-2995662 ] Uninitialized variable used

Bugs item #2995662, was opened at 2010-05-02 19:40
Message generated for change (Comment added) made by tksharpless
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=613954&aid=2995662&group_id=96188

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: windows build
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Christian Georg Becker (gloinson)
Assigned to: Nobody/Anonymous (nobody)
Summary: Uninitialized variable used

Initial Comment:
My compiler (VC9) tells me, that in 'math.c', line 1103 the uninitialized local variable 'a' is used. I
looked over the code and do not find any macro that might initialize 'a'. The line has been comitted with
rev1251 and I really can't extrapolate how to initalize 'a' ...

----------------------------------------------------------------------

Comment By: Tom Sharpless (tksharpless)
Date: 2010-05-03 08:28

Message:
Thanks for catching this bug.  It may have been causing part of the trouble
(Continue reading)

tennevin yves | 10 May 2010 00:49
Picon

Theorical question about Exposure Values...

Hello,
I am trying to implement an idea I have since sometimes about enfuse and 
stacks:

The background:
My camera can do 7 different exposure in bracketting mode.

The idea:
Find a way to determine which combinaison of image should be enfused for 
the best setting.

How to determine it:
Test all the available simple possibility to enfuse: equals to  
2^(number of brackets)-1 images.

An example:
http://esby.free.fr/perso/images/temp/EV/list.html

The first seven images are reducted images of the bracket.
The other images are combinaisons of them.
labelled like: P1350354-P1350360-123567.png where 123567 corresponds to 
the bracketted images actually used to make the image in enfuse.

Now the problem:
Source Images are coming with EV in the exif, which are:
Light Value                     : 15.6
Light Value                     : 15.6
Light Value                     : 14.9
Light Value                     : 14.3
Light Value                     : 13.6
(Continue reading)

Tomasz Meger | 12 May 2010 15:09
Picon

Re: GSoC - Regression tests for pano13

Hi Daniel,

OK so I have schedule for next days :).

Firstly I'll integrate tests and scripts with the build process in
libpano and add scaled reference images.

Then, I'll extend existing test generating script with options
described in doc/stitch.txt.

I have no questions about these two tasks yet. But I'm sure it is a
matter of time and I won't hesitate to write those question on this
mailing list :).

Anyway I already have question about comparing reference images with
the results. Should I assume that test and reference images will be
the same in all type of tests, and mark test as not passed otherwise?
Or should I use other method of comparison. Some of the methods are
described in: http://www.imagemagick.org/Usage/compare/ but most of
them aren't useful for automatic tests. However
http://www.imagemagick.org/Usage/compare/#statistics might be.

Best regards,
Tom

2010/5/12 D M German <dmg@...>:
>
>
> Hi Tomasz,
>
(Continue reading)

dmg | 12 May 2010 17:44
Picon
Picon
Favicon

Re: GSoC - Regression tests for pano13

> Anyway I already have question about comparing reference images with
> the results. Should I assume that test and reference images will be
> the same in all type of tests, and mark test as not passed otherwise?
> Or should I use other method of comparison. Some of the methods are
> described in: http://www.imagemagick.org/Usage/compare/ but most of
> them aren't useful for automatic tests. However
> http://www.imagemagick.org/Usage/compare/#statistics might be.
>

Yes, comparing images is not trivial. PTmender is always deterministic in its
creation of the data, and hence we can use tiffcmp -t (the heathers
might be differentt).

but to compare nona and PTmender we need something less deterministic, and
here is where compare can help. But I am not sure how, and that could be
one of your duties: to find the right parameters so we can compare with relative
confidence the output of both.

> Best regards,
> Tom
>
> 2010/5/12 D M German <dmg@...>:
>>
>>
>> Hi Tomasz,
>>
>> let us move this discussion to the mailing list, since it might benefit
>> from the input of others.
>>
>> I'll fix the bug of the TIFF_M. I have been procrastinating about it.
(Continue reading)

Bruno Postle | 12 May 2010 19:35
X-Face

Re: GSoC - Regression tests for pano13

On Wed 12-May-2010 at 08:44 -0700, Daniel M. German wrote:
>
>Yes, comparing images is not trivial. PTmender is always deterministic in its
>creation of the data, and hence we can use tiffcmp -t (the heathers
>might be differentt).
>
>but to compare nona and PTmender we need something less deterministic, and
>here is where compare can help. But I am not sure how, and that could be
>one of your duties: to find the right parameters so we can compare with relative
>confidence the output of both.

Gimp has a 'grain extract' tool which subtracts one image from the 
other (using signed values) and adds 128, the result is a 50% grey 
image if the two are identical, any variation from grey indicates 
that the two images are different.

A new command-line tool could do the same, then look at the average 
variation and/or maximum variation and pass/fail on a threshold 
provided as a parameter.

--

-- 
Bruno

------------------------------------------------------------------------------
dmg | 12 May 2010 19:48
Picon
Picon
Favicon

Re: GSoC - Regression tests for pano13

>
> Gimp has a 'grain extract' tool which subtracts one image from the
> other (using signed values) and adds 128, the result is a 50% grey
> image if the two are identical, any variation from grey indicates
> that the two images are different.
>
> A new command-line tool could do the same, then look at the average
> variation and/or maximum variation and pass/fail on a threshold
> provided as a parameter.

That is a good idea if the pixels are perfectly overlapped. My
understanding is that
compare (from imagemagick) does something similar with one of its
metrics, but it also capable
of dealing with pixel offsets using statistics.

one problem I ran into using compare is that it does not respect
masks, which creates a huge problem
because the masks data is identical, but not relevant.

--dmg

>
> --
> Bruno
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> PanoTools-devel mailing list
(Continue reading)

Thomas Sharpless | 15 May 2010 16:24
Picon

Re: Hugin builds

Hi Tom

On Sat, May 15, 2010 at 5:28 AM, Tom Glastonbury <tg-VlzpuMDywAyhBdjdy8MwptBPR1lH4CV8@public.gmane.org> wrote:
Hi Tom,

Thanks for your message.

First off, let me note that this is my first open source project, so I'm not really clued up about the etiquette, procedures and so on of how it all works from a development perspective. For example, I've just had an email from Thomas Modes (via hugin-ptx) noting that I can submit patches including diff files via the patch tracker. However, I assume that if I am to work on getting the whole Windows SDK into SCC, I'd need permission to check in directly. How does that happen? Also, I note that my suggested change to ver 0.19 of exiv2 was implicitly accepted by Thomas Modes as he checked in the required changes: however, I might have expected there to be some review process, allowing others to have the opportunity to chime in and say "oh no, there's such-and-such a problem with that version, we can't use it". Or does it mean that I'm free to update to a new version of a 3rd party library without consultation?

It seems to me that Hugin is less structured than many open source communities -- it has no formal submission or review process, and relies mostly on the expertise and good character of its contributors.  To check into the source archive you just need to be designated as a Hugin developer on Source Forge.  As a developer you can also add new subdirectories and even create new branches (it is just a virtual copy operation, no impact on old files).

My own opinion is that one should modify 3rd party libraries only as a very last resort, because creating local variants of published packages creates all kinds of maintenance problems.  Usually there is some way to get the same effect with glue code; and many packages let you customize them with configuration files, which are supposed to be local.

You mention Bruno - who is he? What's his email address? And you mention matters of configuration - do you mean SCC configuration, CMake configuration or some other configuration?

Bruno Postle (bruno-I6Uu+xO5j5OsTnJN9+BGXg@public.gmane.org) is a Hugin (and PanoTools) admin who has been involved from the beginning and probably knows what is going on better than Pablo or Yuval Levy.  He is not a C++ programmer but is very good with scripting and applications (for example: ).
I generally rely on Bruno's opinions as to what makes sense for the project.

One way to get the attention of the Hugin admins and several active developers is to use PanoTools developer mailing list at SF, to which I'm forwarding this message (oddly there is no hugin-devel list).  Another is via the Google group on Hugin: http://groups.google.com/group/hugin-ptx.

I'm happy to produce the Windows snapshots as this would seem to be very helpful for a lot of people out there. Would the binaries/installer get hosted at the Sourceforge project?

I would favor that, however Hugin traditionally does not put snapshot builds on SF.  Ask Bruno.

Regarding the current Windows SDK:

1. The libpano13 I used (having followed the instructions at http://wiki.panotools.org/Hugin_SDK_%28MSVC_2008%29#Panorama_Tools) comes from:

https://panotools.svn.sourceforge.net/svnroot/panotools/trunk/libpano
Is that the right source? The SDK docs don't use CMake for libpano, instead relying upon a pre-existing .sln file (although it's for an older version of VC but apparently auto-converts to vs2008 without problems.

That is the right source.  Windows builds should preferably use the CMake scripts to build libpano13, as the VC projects are unstable -- they contain lots of local state, which changes depending on who last committed them.

2. The biggest problem I see at present, notably when producing 32 and 64 bit builds, is that there seems to be no support for the coexistence of 32 and 64 bit libs and dlls being built in the SDK - in fact the Wiki instructions require that in several cases I copy the x64 .lib files to where the 32 bit ones would normally live. Even if the SDK were "fixed", it appears to me that the CMake files within hugin that go looking for external libs have no mechanism for finding 32 and 64 bit libs, and producing make/VC files that link to different libs depending upon the target architecture. From my very limited knowledge of CMake, this would require quite a lot of work.

As far as I can see, the only way around this at present is to maintain two copies of the SDK, one producing 32-bit libs and the other producing 64-bit ones.

 

3. If I'm sorting the Windows SDK out, I'd suggest using VC2010 Express rather than the now out-dated VS2008. Do you see any problem with this?

No knowledge. But I certainly would not like to see the code to get incompatible with 2008 as lots of people have that.

Regards, Tom

Many thanks,

Tom


On 14/05/2010 9:29 PM, Thomas Sharpless wrote:
Hi Tom

I think it would be great if you take up building Windows snapshots regularly.  32 and 64 bit.

The two biggest outstanding problems with the Windows SDK , to my limited knowledge, are 1) it is not under SCC at the Hugin archive, and should be; 2) it includes a source tree for libpano13, and should not.  The official PanoTools source now has the CMake scripts for building libpano13 in the SDK environment (they sort of work on Linux, too, but Linux builders rarely use them) so it should not be hard to revise the SDK to use the current Panotools source and get rid of the bootleg one.

As always, I recommend you get Bruno's wisdom about all matters of configuration.

Good luck with this,
Tom


On Thu, May 13, 2010 at 4:02 PM, Tom Glastonbury <tg-VlzpuMDywAyhBdjdy8MwptBPR1lH4CV8@public.gmane.org> wrote:
Hi Tom,

I looked at Zoran's page, but he doesn't do 64-bit builds. I have myself since produced a working win x64 svn 5145 build, and have posted a message to the hugin-ptx group. As per that message, I needed to make some modifications to the source code, the cmake files and the versions of some 3rd party libraries. Zoran has since written to me asking me to "dump the sdk" to his ftp server, but this is not so trivial as without selectively deleting intermediate files (and perhaps binaries) it's over 9GB large. Regardless, I did write to Pablo before posting to the group, and he suggested:

Currently, we do not have somebody who really takes care of the windows releases (neither 32 nor 64 bit), but I think a 64 bit windows build is on the wishlist for quite some people. I haven't build hugin on windows since a two years or so, thus my experience with the current windows sdk is limited. I think the straightforward way to contribute (after talking a litte on hugin-ptx) would be to post the windows 64 bit SDK for everybodys usage and adding usage instructions to the relevant wiki pages.

So I'd rather be able to have my changes checked in (subject to review etc), and then do as Pablo suggested. As such, I'd be grateful if I could get some feedback from the active admins/developers on the project.

Many thanks,

Tom


On 05/05/2010 2:59 PM, Thomas Sharpless wrote:
Hi Tom

I'm not set up to do 64 bit Windows builds, and have kind of retired from doing regular snapshot builds. I think you can get an up to date 64 bit one at http://lemur.dreamhosters.com/hugin/, thanks to Zoran Zorkic.

Keep in touch with Hugin development at http://groups.google.com/group/hugin-ptx

Regards, Tom


On Wed, May 5, 2010 at 5:47 AM, Tom Glastonbury <tg-VlzpuMDywAyhBdjdy8MwptBPR1lH4CV8@public.gmane.org> wrote:
Hi there Tom,

I've just stumbled across your builds of autopano-sift-c and the latest hugin - thanks very much for producing these. I was wondering if you've considered producing 64-bit builds, and if the source code is designed to take advantage of the features of 64-bit processors? Do you think there'd be much improvement, performance-wise?

Many thanks,

Tom Glastonbury





------------------------------------------------------------------------------

_______________________________________________
PanoTools-devel mailing list
PanoTools-devel@...
https://lists.sourceforge.net/lists/listinfo/panotools-devel
D M German | 19 May 2010 08:20
Picon
Picon
Favicon

bugs in libpano


Hi Tomasz,

i was looking at your message about bugs in libpano,  can you please
clarify this:

   during tests I noticed two types of errors using PTmender:

   1) errors similar to the thread I found:
   http://www.mail-archive.com/hugin-ptx-/JYPxA39Uh5TLH3MbocFFw <at> public.gmane.org/msg08005.html,
   but when I'm using tiff_m_uncropped format this errors don't appear.

Can you send me a precise script that shows this error?

   2) some of tests don't stop I marked this errors in
   gen.pl: #errors#, #time#, so it is possible to uncomment lines and check
   the problem.

Can you also explain me the causes of this error are?

--

-- 
--
Daniel M. German                  
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with  <at>  and (dot) with .

------------------------------------------------------------------------------
D M German | 19 May 2010 08:52
Picon
Picon
Favicon

dealing with the explosion of tests


Hi Tomasz,

I like the way you are organizing the tests by parameter. I think that
we need to reduce the explosion of potential tests, otherwise we will
have wayyy too many files, as you have discovered  :)

I think we need to divide tests into two basic types:

1. Those that test the complete workflow.

For this we don't test variants. We just drop a bunch of images with a
script and test their output. It is basically regression testing.

2.  Those that test basic/specific functionality

For example, to test f0, we only need to test f0 (in the input image) we
don't have to recreate any type of output. We can just create an 
equirectangular (as output). But there are several cases that we need to
test for each input format that might be tricky: for example, when the
input image covers an area on the edges of the field of view (and hence
wraps from one end to the other). In that case we only need 2 -4 cases
for each input format.

Then it comes output formats. To test the output formats we can do it
with one equirectangular (360x180) as input and every output format as
output.

then it comes the multiple variants of parameters in the output
line. There are soo many that is numbing :) What I suggest is that we
find 2 or 3 "fixed" sets of parameters for everything (for example,
everything equal to zero, and a 2nd test with more "real world"
parameters) and then we test each parameter with those sets of scripts
(with one rectilinear and one fish eye input image). in other words, we
have a script with 2 lines, one with all parms zero (line 1), and one
with normal values (line 2). Then we create 4 tests for a given
parameter: line 1 with parm equal 0, line 1 with parm <>0, line 2 with
parm equal 0 and line 2 with parm <> 0. This way we only need 8 output
images per parameter (4 for fisheye and 4 for rectilinear).

What do you think?

Do you feel comfortable talking in English? if so we can set some
regular time to talk using skype. 

--
Daniel M. German                  
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with  <at>  and (dot) with .

------------------------------------------------------------------------------

Gmane