Re: Re: Blurring with mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg54772] Re: [mg54714] Re: Blurring with mathematica
- From: DrBob <drbob at bigfoot.com>
- Date: Tue, 1 Mar 2005 01:58:28 -0500 (EST)
- References: <cvrqhi$p5c$1@smc.vnet.net> <200502280827.DAA11382@smc.vnet.net>
- Reply-to: drbob at bigfoot.com
- Sender: owner-wri-mathgroup at wolfram.com
That code doesn't work in Mathematica 5.1 (at my machine).
ListConvolve throws the kldims exception and Raster throws a matrix exception.
Is this because I don't have the Image Processing package, perhaps? If that's it, I'd think ExportString would complain about the "PGM" format.
Bobby
On Mon, 28 Feb 2005 03:27:00 -0500 (EST), Jens-Peer Kuska <kuska at informatik.uni-leipzig.de> wrote:
> Hi,
>
> ListConvolve[] with a filter you like ?
> gg = Graphics[
> Text["Filter", {0, 0},
> TextStyle -> {FontFamily -> "Helvetica", FontSize -> 48}]];
>
> ras = ImportString[ExportString[gg, "PGM", ImageSize -> {256, 256}], "PGM"];
>
> Show[ras /. Raster[bm_, args___] :>
> Raster[ListConvolve[
> {{1, 2, 1},
> {2, 4, 2},
> {1, 2, 1}}/16, bm, {1, 1}], args]]
>
> Regards
>
> Jens
>
>
>
>
> <V.Marinakis at damtp.cam.ac.uk> schrieb im Newsbeitrag
> news:cvrqhi$p5c$1 at smc.vnet.net...
>> Hello everyone.
>>
>> I have an image which is stored as an 128 times 128
>> matrix and I want to add gaussian blurring. Does anyone
>> know how can this be done with mathematica?
>>
>> Best, Vangelis Marinakis.
>>
>
>
>
>
>
--
DrBob at bigfoot.com
www.eclecticdreams.net