Quick response, more later

There is a constant that defines the max number of Parms. Currently 2 but can be any number.

To use them, set the variable in the script P"p1 p2 p3" etc


Query features is for use with hugin, so it knows how many parms a projection has and their names 



--
dmg


On 2009-12-30, at 12:58, Thomas Sharpless <tksharpless@gmail.com> wrote:

Hi Daniel

I'm trying to set up to test my revised general pannini code in libpano, and need some guidance about how projection parameters get passed to/from hugin.

First, I don't quite understand this code in queryfeatures.c

    case PANO_FORMAT_PANINI_GENERAL:
    features->maxVFOV = 179;
    features->maxHFOV = 359;
    features->numberOfParameters = 1;
    features->parm[0].name = "d";
    features->parm[1].name = "phi2";
    for (i=0;i<2;i++) {
           features->parm[i].minValue = +0.00001;
           features->parm[i].maxValue = 10e10;
    }
        break;
If there is just one parmeter, why do you intialize two of them?  What is phi2?

How is the size of parm[] set?  What do I have to do to add two more parameters?

Second, are any source changes needed on the hugin side, or can I  just relink a several months old build of hugin against this pano13.lib?

Happy New Year,  Tom




On Sun, Dec 27, 2009 at 5:13 AM, D M German <dmg@uvic.ca> wrote:

Hi everybody,

I'll be adding some projections related to the panini. This is the
result of some work we are currently doing regarding the analysis of the
Veduttistas.

Today I added the general panini. It is projection number 19, and takes
one parameter: "d". The names of the projections might change.

The general panini takes a parameter. This parameter is
"d". Unfortunately the maximum field of view of the projection is
dependent on the value of the parameter (something that we have never
had in another projection). For instance, when d = 1, the max hFOV is
179 degrees.

This might create a problem when trying to use it within hugin. We might
have to find a solution to it.


@@ -417,6 +418,17 @@
      features->maxVFOV = 179;
      features->maxHFOV = 359;
       break;
+    case PANO_FORMAT_PANINI_GENERAL:
+       features->maxVFOV = 179;
+       features->maxHFOV = 359;
+       features->numberOfParameters = 1;
+       features->parm[0].name = "d";
+       features->parm[1].name = "phi2";
+       for (i=0;i<2;i++) {
+           features->parm[i].minValue = +0.00001;
+           features->parm[i].maxValue = 10e10;
+       }
+        break;


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

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
PanoTools-devel mailing list
PanoTools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/panotools-devel