help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with imresize keeping aspect ratio


From: inor0627
Subject: Re: problem with imresize keeping aspect ratio
Date: Tue, 4 Feb 2014 22:52:25 -0800 (PST)

Hello Carnë ,

you are right. I used the online documentation which is - of course -
describing the latest version. 
When typing "help imresize" in octave the option is not documented, and
looking at my version of imresize.m there seems to be no code handling NaNs.

So I will try to add my workaround to the imresize.m and meanwhile waite for
the 3.8 Mingw Version.

Thank you for your help



Carnë Draug-4 wrote
> On 4 February 2014 02:06, inor0627 <

> ingo.ortlepp@

> > wrote:
> 
>> A = ones(8,6);
>> B = imresize(A,[4 NaN]);
>>
>> I'm expecting B to be 4x3. But in fact B is 4x1.
>>
>> Currently I'm using the workaround
>> col=4;
>> C = imresize(A , [col round(col*size(A,2)/size(A,1)) ] );
>>
>> I'm using Octave-3.6.4-mingw with Octave3.6.4_gcc4.6.2_pkgs.
> 
> You are using an old version of the image package that did not support
> the use of NaN to mean, "keep aspect ratio". Does that option appears
> documented when you use "help imresize", or did you found it on the
> online html documentation for the new version?
> 
> Anyway, it works with the image package 2.2.0 and any version before
> it should not include it.
> 
> Carnë





--
View this message in context: 
http://octave.1599824.n4.nabble.com/problem-with-imresize-keeping-aspect-ratio-tp4661613p4661632.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]