On Sat, Oct 10, 2009 at 05:14:08PM -0700, grow wrote:
> output file. The crashes tend to happen as the number of mask and/or
> the complexity of their shape increases, especially if I request a
> full-size output file.
It seems you have so many (157) seams that some of them are quite
short (only two entries). Apparently two entries is not a problem,
except for the situation where they are the wrong way around: The
first should not be moveable(*). So having corrected the code for
making sure that the first one is (non)movable, enblend runs just
fine.
The patch for enblend is attached.
George's village hotel now stitches just fine at 12000x6000.
Roger.
(*) Or the other way around, I don't care. Too many negatives makes my
head spin.
--
** [email protected] ** http://www.BitWizard.nl/ ** +31-15-2600998 **
** Delftechpark 26 2628 XH Delft, The Netherlands. KVK: 27239233 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
Q: It doesn't work. A: Look buddy, doesn't work is an ambiguous statement.
Does it sit on the couch all day? Is it unemployed? Please be specific!
Define 'it' and what it isn't doing. --------- Adapted from lxrbot FAQ
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
diff --exclude config.log -ur enblend-enfuse-3.2/src/mask.h enblend-enfuse-3.2-rew/src/mask.h
--- enblend-enfuse-3.2/src/mask.h 2008-03-02 22:19:47.000000000 +0100
+++ enblend-enfuse-3.2-rew/src/mask.h 2009-10-11 12:04:28.000000000 +0200
@@ -512,9 +512,15 @@
// Copy initial run on moveable vertices and first nonmoveable vertex to end of list.
Segment::iterator firstNonmoveablePlusOne = firstNonmoveableVertex;
- ++firstNonmoveablePlusOne;
- snake->insert(snake->end(), snake->begin(), firstNonmoveablePlusOne);
+ // This (the else clause of this if) used to crash on
+ // two-element lists. I'd rather not special case this
+ // situation, but I personally don't know any better. Sorry. --REW
+ if (++firstNonmoveablePlusOne == snake->end()) {
+ snake->insert_after (firstNonmoveableVertex, snake->begin(), firstNonmoveableVertex);
+ } else {
+ snake->insert(snake->end(), snake->begin(), firstNonmoveablePlusOne);
+ }
// Erase initial run of moveable vertices.
snake->erase(snake->begin(), firstNonmoveableVertex);
}