octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #62409] [octave forge] (image) BIST errors on


From: Hartmut
Subject: [Octave-bug-tracker] [bug #62409] [octave forge] (image) BIST errors on 32-bit
Date: Wed, 11 May 2022 10:27:03 -0400 (EDT)

Follow-up Comment #7, bug #62409 (project octave):

The following changed two BISTs work fine for me on Octave 7.1-w32. Only the
huge matrix a was decreased a bit in size and some of the padding indizes were
adapted accordingly:


%!test
%! a = rand ([10 22 11 6 8 5]) > 0.2;
%! se = ones ([5 3 7]);
%!
%! ## the image is not really indexed but this way it is padded with 1s
%! assert (imerode (a, se), colfilt (a, "indexed", size (se), "sliding",
@all))
%!
%! assert (imerode (a, se, "valid"), convn (a, se, "valid") == nnz (se))
%! ## again, we need to pad it ourselves because convn pads with zeros
%! b = true (size (a) + [4 2 6 0 0 0]);
%! b(3:12, 2:23, 4:14,:,:,:) = a;
%! assert (imdilate (b, se, "same"), convn (b, se, "same") > 0)
%! b = true (size (a) + [8 4 12 0 0 0]);
%! b(5:14, 3:24, 7:17,:,:,:) = a;
%! assert (imdilate (b, se, "full"), convn (b, se, "full") > 0)



%!test
%! a = rand ([10 22 11 6 8 5]) > 0.8;
%! se = ones ([5 3 7]);
%! assert (imdilate (a, se), convn (a, se, "same") > 0)
%! assert (imdilate (a, se, "full"), convn (a, se, "full") > 0)
%! assert (imdilate (a, se, "valid"), convn (a, se, "valid") > 0)
%! assert (imdilate (a, se), colfilt (a, size (se), "sliding", @any))


Running those two changed BIST tests as m-code works fine under w32 Octave. 

If someone else could prepare a patch and properly test this I would be happy.
These BISTs are part of c-files and unfortunatelly I am not very familiar with
recompiling c-files of packages and then running their BISTs under Windows.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62409>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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