[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re:
From: |
AGD |
Subject: |
Re: Re: |
Date: |
Sun, 26 Jul 2009 20:44:01 -0700 (PDT) |
That is not a problem. Any number of replies are welcome :)
AGD
James Sherman Jr.-2 wrote:
>
> Sorry about that. I didn't see that Soren replied to your resent message.
>
> On Fri, Jul 24, 2009 at 9:08 AM, James Sherman Jr.<address@hidden>
> wrote:
>> 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
>>>
>>>
>>
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>
>
--
View this message in context:
http://www.nabble.com/Re%3A-tp24644265p24673167.html
Sent from the Octave - General mailing list archive at Nabble.com.
- [no subject], Anwesha Dastidar (Trainee), 2009/07/24
- Re:, James Sherman Jr., 2009/07/24
- Re:, James Sherman Jr., 2009/07/24