Chris - Thanks for the information, I spent a while trying to recreate the functionality in Python with VigraNumPy and didn't get too far, but I've managed to recompile enfuse with an added switch to allow loading of masks. You can specify filename templates and if '--load-masks' has been specified enfuse will not try and generate the masks itself but will use the ones from the files. It was surprisingly easy considering that I have never used much C++. Most of the code comes from reading through enblend's source.
If it's at all useful, a diff of the changes can be found here: http://users.ecs.soton.ac.uk/mf4v07/enfuse/diff.txt (Compared to version enfuse 4.0-753b534c819d that's currently in the SourceForge downloads page). It will load in and subsequently use the masks specified whether they are soft masks or hard masks. Example usage: enfuse -o out.png --load-masks=mask00%n.tif rect* Note that I haven't made any changes to any documentation that might be generated and somebody should probably inspect the code before incorporating it! Cheers, Martin ________________________________________ From: [email protected] [[email protected]] On Behalf Of cspiel [[email protected]] Sent: 25 August 2010 15:40 To: hugin and other free panoramic software Subject: [hugin-ptx] Re: Supplying my own hard mask data for enfuse to use Martin - On Aug 24, 9:58 pm, Martin F <[email protected]> wrote: > Does anybody have an idea of how I can best go about this? I assume I > need to either implement the Burt & Adelson algorithm myself in > Python, as I would rather not directly make my changes to enfuse > itself and have recompile each time when I'm not familiar with the > code base. No idea whether there is a best way... Here are just two ideas. 1. Check our VigraNumPy at http://hci.iwr.uni-heidelberg.de/vigra/doc/vigranumpy/index.html which features the elementary pyramid operations "expand" and "reduce" as well as some of their relatives. 2. Your are welcome to extend Enfuse! AFAIKS, loading "ready-made" masks into Enfuse amounts to suppressing any weight computations and then splicing in the masks right after the original mask-export code. For completeness soft masks as well as hard masks should be loadable. This would restore the symmetry between Enblend and Enfuse with respect to operations on external masks; not that this matters an any way. ;) Cheers, Chris -- 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 -- 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
