Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

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

Search the Archive

Re: Resizing Graphics

  • To: mathgroup at smc.vnet.net
  • Subject: [mg36357] Re: Resizing Graphics
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 3 Sep 2002 01:40:58 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <akn0lk$llm$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

take the matrix of gray values or the matrix of the color channels,
apply ListInterpolation[] and generate a resampled table with
the interpolated function.

Regards
  Jens

Aaron wrote:
> 
> I was wondering if there is a method for resizing Raster graphics
> (resizing the actual matrix of pixels, not just the display size).  I
> am processing a large number of JPEG images, and we sometimes need to
> reduce the image size to allow data processing algorithms to function
> without running out of memory.  In the past we simply used a program
> such as Photoshop to resize them before importing them into
> Mathematica.  Due to the number of images we are processing now this
> is very inconvenient and it would be very useful if there was a method
> for accomplishing it in Mathematica, but I can't find one.  I also
> thought about doing something simple like sampling every few pixels or
> averaging, but I thought there might be a method with more efficacy
> than this. I also tried exporting the graphics with the Export command
> as new JPEGs and manipulating the ImageResolution and ImageSize
> options but this seemed to have no effect.  Any help would be much
> appreciated.
> Thanks,
> Aaron Urbas


  • Prev by Date: RE: Generating Two Unit Orthogonal Vectors to a 3D Vector
  • Next by Date: Re: Generating Two Unit Orthogonal Vectors to a 3D Vector
  • Previous by thread: Re: I want to get the coefficient of the Legendre-Gauss Quadrature
  • Next by thread: Re: Resizing Graphics