Barney Boisvert wrote:
> RE the distort, it seems you're taking your average in a southeast
> direction, which is where that distortion comes from.  If you do a
> non-directional average it should disappear.

I'm not doing the "average" anywhere in this particular blur.  It's a 
built in convolution operation.

The code is super simple:

op = createObject("java","java.awt.image.ConvolveOp");
blurredImage =
        createObject("java","java.awt.image.BufferedImage").init(
        img.getWidth(), img.getHeight(), img.getType());
                
op.init(variables.kernel, op.EDGE_NO_OP, javacast("null",""));
op.filter(img, blurredImage);

return blurredImage;

The kernel in this case is just a simple array where each element in the 
array is the same... ie, for a bluramount of 3, the array used to create 
the kernel 9 elements, each 0.1111

Most everything I know about blurring images comes from this fabulous 
page, btw:

http://www.jhlabs.com/ip/blurring.html

Rick



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263951
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to