[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re:
From: |
James Sherman Jr. |
Subject: |
Re: |
Date: |
Fri, 24 Jul 2009 09:08:34 -0400 |
You are not going to be able to resize at 20x46 image to a 32x32 one
"without distortion" because the ratio of length to width is
different. Its the same reason why they have widescreen editions of
movies, because just simply resizing a regular tv image to a
widescreen has to stretch the image.
"Without distortion", you can only resize to some multiple of the
original size of the image.
I put without distortion in quotes, because you'll always get
distortion of some form when resizing an image due to the method that
you use.
I don't know what exactly imcrop in Matlab does, but if you know the
coordinates of the upper left corner and lower right corner of the
image, you can simply do
cropped_image = original_image(top_row:bottom_row, left_column:right_column, :);
I think that would be what you want.
On Fri, Jul 24, 2009 at 6:55 AM, Anwesha Dastidar
(Trainee)<address@hidden> wrote:
> Hello,
>
> I am a beginner in image processing techniques. I have been trying to resize
> a 20x46 bmp image to 32x32 bmp image in Octave. I used the imresize command
> but it distorts the shape of the object.
>
> How do I resize without distorting the image?
>
> Also, is there any command available in Octave which allows us to crop an
> image? (equivalent to imcrop() in Matlab which is undefined in Octave)
>
>
>
> Hope you can help,
>
> Thanks
>
> AGD
>
>
>
>
>
> ________________________________
> http://www.mindtree.com/email/disclaimer.html
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>
>
- [no subject], Anwesha Dastidar (Trainee), 2009/07/24
- Re:,
James Sherman Jr. <=
- Re:, James Sherman Jr., 2009/07/24