octave-maintainers
[Top][All Lists]
Advanced

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

Re: imwrite.m test failures


From: Kai Torben Ohlhus
Subject: Re: imwrite.m test failures
Date: Sun, 6 Oct 2013 16:26:17 +0200

On Thu, Oct 3, 2013 at 9:46 PM, marco atzeri <address@hidden> wrote:
testing latest devel
(changeset:   17540:b7aa1d726bcc)

anyone seeing the same ?

>>>>> processing /pub/hg/octave/scripts/image/imwrite.m
  ***** testif HAVE_MAGICK
 imw = randi (255, 100, "uint8");
 filename = [tmpnam() ".png"];
 unwind_protect
   imwrite (imw, filename);
   imr = imread (filename);
 unwind_protect_cleanup
   unlink (filename);
 end_unwind_protect
 assert (imw, imr)
!!!!! test failed
ASSERT errors for:  assert (imw,imr)

  Location  |  Observed  |  Expected  |  Reason
   (1,1)         104          103        Abs err 1 exceeds tol 0
   (2,1)         184          183        Abs err 1 exceeds tol 0
..
  (99,100)        96           95        Abs err 1 exceeds tol 0
 (100,100)       126          125        Abs err 1 exceeds tol 0
>>>>> processing /pub/hg/octave/scripts/image/ind2gray.m



For me it works fine (changeset http://hg.savannah.gnu.org/hgweb/octave/rev/7af442c326a8) Ubuntu 13.04.

>> test imwrite
  ***** testif HAVE_MAGICK
 imw = randi (255, 100, "uint8");
 filename = [tmpnam() ".png"];
 unwind_protect
   imwrite (imw, filename);
   imr = imread (filename);
 unwind_protect_cleanup
   unlink (filename);
 end_unwind_protect
 assert (imw, imr)
----- skipped test

PASSES 9 out of 9 tests
Skipped 1 test due to missing features

Kai

reply via email to

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