Add a New Comment (Rich Markup)
test psf2otf did not fail. Closing as fixed
changeset pushed http://hg.code.sf.net/p/octave/image/rev/c348b4bd5856 I am not clising this bug, because I want to check also psf2otf (comment #1)
Checking these failures, the solution is simple: change the line
assert (otf2psf (otf), psf, 2*eps);
to
assert (otf2psf (otf), psf, 4*eps);
Changeset attached (file #45175)
Function psf2otf is affected by the same problem.
The following unit test for function otf2psf in package image is failing randomly:
%!test %! psf = rand (16); %! otf = psf2otf (psf); %! assert (otf2psf (otf), psf, 2*eps);
This is a way of triggering the bug:
octave:1> pkg load image octave:2> while 1 octave:3> psf = rand (16); octave:4> otf = psf2otf (psf); octave:5> assert (otf2psf (otf), psf, 2*eps); octave:6> endwhile error: ASSERT errors for: assert (otf2psf (otf),psf,2 * eps) Location | Observed | Expected | Reason (7,2) 0.89533 0.89533 Abs err 5.5511e-16 exceeds tol 4.4409e-16
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only project members can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 5 latest changes.
Copyright © 2023 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.12