Revision: 37320
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37320
Author: ton
Date: 2011-06-08 16:08:57 +0000 (Wed, 08 Jun 2011)
Log Message:
-----------
Bugfix #27601
Revision for previous fix; fast gaussian now survives on images
with a dimension smaller than 3 pixels!
Thanks Bastien Montagne for patch.
Modified Paths:
--------------
trunk/blender/source/blender/nodes/intern/CMP_util.c
Modified: trunk/blender/source/blender/nodes/intern/CMP_util.c
===================================================================
--- trunk/blender/source/blender/nodes/intern/CMP_util.c 2011-06-08
16:00:52 UTC (rev 37319)
+++ trunk/blender/source/blender/nodes/intern/CMP_util.c 2011-06-08
16:08:57 UTC (rev 37320)
@@ -1320,7 +1320,11 @@
if ((xy < 1) || (xy > 3)) xy = 3;
- if (src->x < 2 && src->y < 2) return;
+ // XXX The YVV macro defined below explicitely expects sources of at
least 3x3 pixels,
+ // so just skiping blur along faulty direction if src's def is
below that limit!
+ if (src->x < 3) xy &= ~(int) 1;
+ if (src->y < 3) xy &= ~(int) 2;
+ if (xy < 1) return;
// see "Recursive Gabor Filtering" by Young/VanVliet
// all factors here in double.prec. Required, because for single.prec
it seems to blow up if sigma > ~200
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs