Re: How to stretch a image
- To: mathgroup at smc.vnet.net
- Subject: [mg96566] Re: How to stretch a image
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Mon, 16 Feb 2009 07:00:05 -0500 (EST)
- Organization: The Open University, Milton Keynes, UK
- References: <gn8jat$7o0$1@smc.vnet.net>
In article <gn8jat$7o0$1 at smc.vnet.net>, "goodhei8 at gmail.com" <goodhei8 at gmail.com> wrote: > such as the size of a image is 100 x 100, I want to make it stretch to > 200 x 600 (not 1:1). Mathematica give me 200x200 +200x400 blank. I tried > Padding and Margins, no working : ( > > PS, in Mathematica 6. > Thanks in advance. Well, with Mathematica 7.0 this is really straightforward since V7 many new function specially designed for image processing [1]. For instance, img = Import["ExampleData/rose.gif"] ImageResize[img, {200, 600}] You could check the Wolfram Demonstrations Project, which contains many applications about image processing, though quite a lot of them seems t use extensively Mathematica V7's new features [2]. Sorry for not being more helpful, --Jean-Marc [1] "Image Processing & Analysis" http://reference.wolfram.com/mathematica/guide/ImageProcessing.html [2] "Wolfram Demonstrations Project" http://demonstrations.wolfram.com/search.html?query=topics%3Aimage+proces sing+content%3AArrayPlot+OR+CellularAutomaton+OR+ColorFunction+OR+ColorRu les+OR+Export+OR+Fourier+OR+FourierDCT+OR+FourierDST+OR+Import+OR+ListCon volve+OR+Pick+OR+Rasterize+OR+ReliefPlot&start=1&limit