W3C home > Mailing lists > Public > public-fx@w3.org > October to December 2012

feMorphology radius - rectangle only

From: Michael Mullany <michael@sencha.com>
Date: Wed, 10 Oct 2012 19:47:52 -0700
Message-ID: <CABTYPJkE+MHCF6xcXYr9MY8c-DagrFaNP1xwMdsHshqr=anbXg@mail.gmail.com>
To: public-fx@w3.org
The current implementation of the feMorphology filter specifies a rectangle
(2*x and 2*y where x and y are the "radii") as the area from which the
max/min values for the current pixel. The effect of this is that shapes
within the input get "blockified" in the output (for lack of a better
word), particularly at radius values of more than a few pixels. This is in
contrast to GaussianBlur which preserves shape.

[Example comparing a simple circle - gaussianblur vs. dilate & erode:
http://jsfiddle.net/T3pb8/32/]

Would it make sense to add an elliptical or circular area option to
feMorphology that would better preserve shape between input & output?
Received on Thursday, 11 October 2012 02:48:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 11 October 2012 02:48:20 GMT