From: anna anna on 23 May 2010 09:59 Hi,i would like to help me on converting image size to 2^N x 2^N. Thank you a lot.
From: Walter Roberson on 23 May 2010 10:34 anna anna wrote: > Hi,i would like to help me on converting image size to 2^N x 2^N. imresize() ? If that is not what you meant (e.g., if you have to calculate the new image yourself) then you need to expand on your needs. Different resizing methods have different effects on different images; for example, some are good on scenery but terrible on sharp lines such as text, and vice versa.
From: anna anna on 25 May 2010 14:06 Walter Roberson <roberson(a)hushmail.com> wrote in message <B1bKn.3504$mj4.2433(a)newsfe08.iad>... > anna anna wrote: > > Hi,i would like to help me on converting image size to 2^N x 2^N. > > imresize() ? > > If that is not what you meant (e.g., if you have to calculate the new > image yourself) then you need to expand on your needs. Different > resizing methods have different effects on different images; for > example, some are good on scenery but terrible on sharp lines such as > text, and vice versa. Sorry,i didn't explain well what i want. I want to use an image as input in a function which assumes the size of the input to be 2^N x 2^N thank you very much.
From: ImageAnalyst on 25 May 2010 14:09 On May 25, 2:06 pm, "anna anna" <annapes2...(a)yahoo.gr> wrote: > Sorry,i didn't explain well what i want. > I want to use an image as input in a function which assumes the size of the input to be 2^N x 2^N > > thank you very much. --------------------------------------------------------------------------- And this explains it much better???? OK, well good luck with that.
From: Walter Roberson on 25 May 2010 16:08 anna anna wrote: > Walter Roberson <roberson(a)hushmail.com> wrote in message > <B1bKn.3504$mj4.2433(a)newsfe08.iad>... >> anna anna wrote: >> > Hi,i would like to help me on converting image size to 2^N x 2^N. >> >> imresize() ? >> >> If that is not what you meant (e.g., if you have to calculate the new >> image yourself) then you need to expand on your needs. Different >> resizing methods have different effects on different images; for >> example, some are good on scenery but terrible on sharp lines such as >> text, and vice versa. > > Sorry,i didn't explain well what i want. > I want to use an image as input in a function which assumes the size of > the input to be 2^N x 2^N imresize() ? What kind of image do you have, and what properties of the image are important to be preserved when you resize it? Is there any reason to resize it instead of padding it with zeros? Is your image square, and if not then what do you expect to have happen with respect to the aspect ratio when you resize?
|
Next
|
Last
Pages: 1 2 Prev: Exported figure size Next: xlsread only runs in basic mode with bootcamp W7 |