help-octave
[Top][All Lists]
Advanced

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

Re: Migrating from 3.6.4 to 3.8.0


From: Carnë Draug
Subject: Re: Migrating from 3.6.4 to 3.8.0
Date: Mon, 17 Feb 2014 15:42:31 +0000

On 16 Feb 2014 18:41:47 -0800 (PST), <address@hidden> wrote:
> I think I have a solution that might work
>
> in imresize.m, the following line allocates the XI and YI working arrays.
> The default is double.
>
>     [XI, YI] = meshgrid (linspace (1, inCols, outCols), linspace (1, inRows,
> outRows));
>
> I would propose that these arrays should be cast to the type of incoming
> image array.
>
> I used the following 2 lines but I would think there is a more elegant
> solution
>         XI = cast (XI, class (im));
>         YI = cast (YI, class (im));
>
> I am along ways from a Octave expert, is this even correct?

Try "test imresize" after your change and see if there is any change.
Could you please submit a patch to the tracker [1]. And if there are
no tests could could you add tests for such cases?

Carnë

[1] https://savannah.gnu.org/patch/?func=additem&group=octave


reply via email to

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