On 12 Jan., 20:08, Pablo d'Angelo <[email protected]> wrote:
> Hi Kay,

> In addition to the basic Data model (as you seem to have done already),
> the algorithms in hugin_base/algorithms might be useful for scripting
> workflows. Here, maybe only the static driver functions are required in
> the scripting language as the multi step approach (custruct algorithm
> object, call runAlgorithm() & get the results out of the object) is
> probably quite a hassle when writing scripts.

I actually like the OOP approach, and most of the headers yield
nicely. After all Python is an OOPL and so the handling in Python is
just as comfortable as in C++. If I understand correctly what you mean
by 'wrapping the static driver functions', I reckon it's much easier
just wrapping whole headers instead of trying to pick stuff out - I
wouldn't even know how to start such a thing.

Today I included the majority of headers from the algorithms section,
only omitting those which wouldn't yield straight away:
NonaImageStitcher.h and ImageGraph.h

Today I also included the headers from the PT interface, namely:

hugin_base/panotools/PanoToolsInterface.h
hugin_base/panotools/PanoToolsOptimizerWrapper.h
hugin_base/panotools/PanoToolsUtils.h

And the remaining headers from panodata, except those from here that
wouldn't yield straight away either: ImageVariableGroup.h
StandardImageVariableGroups.h and ImageVariableTranslate.h

By now, these classes are in the interface (some only as dummies
without methods, the remainder should sport all the methods they have
in C++):

        AlignInfoWrap
        BaseSrcPanoImage
            SrcPanoImage
        CPVector
        CPoint
        CPointVector
        CalculateImageOverlap
        ControlPoint
        DestPanoImage
        DocumentData
        FDiff2D (dummy)
        ImageVector
        Lens
        LensVarMap
        OptimizeVector
        PanoramaAlgorithm
            AssistantMakefilelibExport
            CalculateCPStatistics
                CalculateCPStatisticsError
                CalculateCPStatisticsRadial
            CalculateFOV
            CalculateFitPanorama
                FitPanorama
            CalculateMeanExposure
            CalculateOptimalROI
            CalculateOptimalScale
                SetWidthOptimal
            CenterHorizontally
            ComputeImageROI
            PTOptimizer
                AutoOptimise
                SmartOptimise
            PanoramaMakefilelibExport
            RotatePanorama
                StraightenPanorama
            TimeConsumingPanoramaAlgorithm
                PhotometricOptimizer
                    SmartPhotometricOptimizer
                PointSampler
                    AllPointSampler
                    RandomPointSampler
                StitcherAlgorithm
                    FileOutputStitcherAlgorithm
                        NonaFileOutputStitcher
                    ImageStitcherAlgorithm
            TranslatePanorama
        PanoramaData
            ManagedPanoramaData
                Panorama(ManagedPanoramaData, DocumentData)
        PanoramaDataMemento
            PanoramaMemento
        PanoramaObserver
        PanoramaOptions
        Point2D (dummy)
        Size2D (dummy)
        SmartOptimizerStub
        SwigPyIterator
        Transform
        UIntSet
        UIntVector
        Variable
            LensVariable
            LinkedVariable
        VariableMap
        VariableMapVector
        tm (dummy)

The thing has fattened up nicely, but I'll play with it for a while
before I update the files in my repo. When I put it in initially
yesterday I forgot a file, but I fixed it this morning (rev. 18). I'll
post on the other thread

http://groups.google.com/group/hugin-ptx/browse_thread/thread/ab1f0df18aaa247d#

when the latest version is up.

Kay


-- 
You received this message because you are subscribed to the Google Groups 
"Hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx

Reply via email to