octave-maintainers
[Top][All Lists]
Advanced

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

Re:


From: Ben Abbott
Subject: Re:
Date: Sun, 02 Nov 2014 03:07:40 -0500

> On Nov 1, 2014, at 10:08 PM, Rik <address@hidden> wrote:
> 
> On 11/01/2014 07:35 AM, address@hidden wrote:
> > Hi,
> 
>       >
> 
> 
>       > Currently, the call to "image ()" without argument builds an
>       image object using data loaded from file (default.img). For
>       consistency with other graphics primitives (and for matlab
>       compatibility if it is of any importance here), I think octave
>       should use the default image "cdata" instead.
> 
> 
>       >
> 
> 
>       > Do people have an opinion against this modification in
>       image.m behavior?
> 
> 
>       >
> 
> 
>       > Pantxo 
> 
> 
> The default cdata does not appear to be the same as that in default.img?  
> Should the two be made the same?  Matlab compatible behavior is to display a 
> default image for the function call image().  Is their cdata equivalent to 
> their default image?
> 
> cimg = get (0, 'defaultimagecdata');
> hi = image ();
> dimg = get (hi, 'cdata');
> isequal (cimg, dimg)
> 
> --Rik

from R2014b

cimg = get (0, 'defaultimagecdata');
hi = image ();
dimg = get (hi, 'cdata');
isequal (cimg, dimg)

ans =

     1

Ben


reply via email to

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