view test/bug-54490.tst @ 31210:e83a62df599b

__magick_read__: appended alpha to the rest of the channels for Tiff images * libinterp/corefcn/__magick_read__.cc (read_images, read_indexed_images): added logic to append the alpha channel to the rest of the channels and return an empty alpha for TIFF images for matlab compatibility.
author magedrifaat <magedrifaat@gmail.com>
date Tue, 06 Sep 2022 20:57:50 +0200
parents 9080316864bf
children
line wrap: on
line source

%!function out = bug54490 ()
%!  global k;
%!  k = 1;
%!  out = 3;
%!endfunction

%!test <*54490>
%! global k;
%! k = 2;
%! a = [5, 6];
%! a(k) = bug54490 ();
%! assert (a, [5, 3]);
%! k = 2;
%! a = [5, 6];
%! [a(k)] = bug54490 ();
%! assert (a, [5, 3]);
%! clear -global k;  # cleanup after test