> Just as the CPGs and the other collateral software can be
> parametrized and can feed back this needs to be possible for
> plugins as well.
I think the solution is obvious: plugins that don't require input or
provide output can work as they do currently. Any other plugins
need to use wxPython to provide a GUI.
--
Bruno
Does it? Surely the plugin script can launch its own Window with
wxpython and doesn't need to embed in the Hugin GUI.
>The next problem is that all plugins that want to acquire parameters
>would have to import wxPython which isn't a standard module, but has
>to be installed. So there would be another library dependency, and a
>distribution distributing the Python interface would either have to
>provide wxPython or ask the user to acquire it - no problem on Linux,
>but maybe a hassle on other platforms.
If a library is important then we'll make it a dependency. Part of
the idea of python bindings is to investigate ultimately moving the
entire Hugin GUI to wxpython.
>I also feel that forcing every plugin that merely needs a few
>parameters to write it's own GUI to acquire them is counterproductive.
This can be modularised. If you are going to write code to
autogenerate GUIs for python scripts, it makes sense to do it all in
python. Though autogenerated GUIs don't sound very appealing in
usability terms.
--
Bruno
How many ways of calling a plugin would there be?
- Do stuff with the whole project
- Do stuff with the selected photos
- Do stuff with the selected control-points
- Do stuff with the selected masks
The action would be determined by the particular plugin and its user
configuration, the lists of selected objects would already be
present in the project data structure that is given to the plugin.
--
Bruno
On 11 Mrz., 11:40, Bart van Andel <bavan...@gmail.com> wrote:
> When plugins report a display name
> and a short description as well, this can also be shown in this dialogue. If
> the plugin does not report any options, it can be run directly without
> asking anything. Note that this needn't be restricted to Python plugins.
I don't quite understand what you mean by 'report a display name', can
you clarify?
>> and its user configuration,
>
>Could you explain more precisely what you mean by user configuration?
I mean whatever settings are picked by the user in the plugin GUI
(if any) plus any persistent settings that would be stored in the
registry or ~/.hugin file.
>> the lists of selected objects would already be
>> present in the project data structure that is given to the plugin.
>
>Do you anticipate augmenting the Panorama object and it's members with
>the selection information? As far as images are concerned, the
>selection can already be transported with the 'active' flag, but for
>CPs and Masks I don't think there is currently a data structure to
>mark them as being somehow selected - but this could easily be added.
I was referring to the GUI selection, you can Ctrl-click photos in
the Images tab, then the various 'action' buttons on the right hand
side only operate on these photos. I would expect a plugin to work
the same way.
If this selection was available as part of the data structure then
the plugin would know what to work with. However this is related to
another Hugin issue: the selection of photos isn't shared between
tabs, really if you select two photos in the Images tab, the same
photos should become selected in the Camera and Lens tab, and also
in the Crop tab. Now that we have a basic system for selecting
photos in the Fast Preview window, this selection should be
propagated to the Images tab etc... I would go as far as saying
that displaying two photos in the Control Points tab should make
these two photos selected in the other tabs.
--
Bruno
No idea, I suspect the selection only exists at the wxwidgets level.
>I have previously suggested to allow plugin access via a context menu.
>Since the context would establish what objects the operation is
>intended for choosing the right type of plugin should be easy. We
>don't use context menus in hugin at all, do we? I think that the
>operations that currently perform on the selected subset might be more
>obviously accessed by a context menu, whereas with the current design
>the user may be ignorant that the button he's pressing will only
>affect the selected items and not the whole list. I remember people
>asking stuff here like how can they selectively remove CPs for certain
>images - selecting the images and clicking on 'remove CPs' did not
>occur to them naturally.
Context menus in these lists of photos, and things like being able
to drag them would help general usability. Though I think functions
that are only available in context menus would be hidden from users
who don't know they are there.
--
Bruno
Hmm, I've created 750MB TIFFs on a 32-bit Linux system that has only 2GB
of memory ... I guess Windows is different.
--
Gnome Nomad
gnome...@gmail.com
wandering the landscape of god
http://www.cafepress.com/otherend/
Somebody - I guess not you! - in the thread mentioned using 32-bit
Windows 7.
> But I did a focus stack with enfuse from three 30 megapixel 16 bit
> images. Well near the limit. When I used about 40 megapixels per
> source image it became impossible. I doubt you'd manage that with 2GB,
> but if you do please tell me how you did it ;-)
A great amount of patience? Running it under FluxBox, which consumes
only about 128MB of memory vs a couple meg for KDE. And not using 16-bit
images. And letting the little laptop grind away on it for 10 hours ... ;-)
I made mine from a series of frames I shot covering our trip into the
harbor at Victoria, Canada, (on a ferry). They covered 3-5 miles of
shoreline.
By far the biggest I've ever done.
No, definitely not a focus stack. I'm sure doing things with focus
stacks would use much more memory. I was just talking about producing a
750MB panorama.
I've done a couple of HDR images, I don't know if they consume memory at
the rate of a focus stack.
Question: were you running the enfuse stage from command line? I don't
remember if you said so. I had to do that once before I doubled the
memory in the laptop.
Maybe enfuse is memory intensive? Haven't noticed it on ordinary stuff.
>> Question: were you running the enfuse stage from command line? I don't
>> remember if you said so. I had to do that once before I doubled the
>> memory in the laptop.
>
> I did it from the command line. Maybe I could have somehow coaxed
> hugin into issuing the enfuse command for me, but the command line is
> a good friend of mine anyway, so that's the path I took ;-)
I decided one time to use command-line autopano with 6MPX images at full
size (no reduction). Just processing a single image used 1.9GB of memory!