MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Blurring with mathematica


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.
> 



  • Prev by Date: Re: Mathematica batch file
  • Next by Date: Bug in Import?
  • Previous by thread: Blurring with mathematica
  • Next by thread: Re: Blurring with mathematica