[Pkg-octave-devel] Bug#557579: octave-image: imtophat fails if parameter validity checks pass

Tuure Laurinolli tuure at laurinolli.net
Mon Nov 23 00:49:42 UTC 2009


Package: octave-image
Version: 1.0.8-3+b1
Severity: normal


Whenever imtophat is called with parameters that pass its parameter validation, and it attempts to perform the actual top-hat filtering operation, it attempts to access undefined variable and causes an error.

Test code:

test.m:
I = [1 1 1; 1 1 1; 1 1 1;];
se = [1 1; 0 1;];
imtophat(I, se)

Execution:
% octave test.m

Actual output:

error: `SE' undefined near line 33 column 29
error: evaluating argument list element number 2
error: evaluating prefix operator `!' near line 33, column 17
error: evaluating binary operator `&' near line 33, column 15
error: evaluating assignment expression near line 33, column 10
error: called from `imtophat' in file `/usr/share/octave/packages/3.0/image-1.0.8/imtophat.m'
error: near line 3 of file `test.m'

Expected output:

ans =

   0   0   1
   0   0   1
   1   1   1


Analysis:

It appears that the imopen call in
/usr/share/octave/packages/3.0/image-1.0.8/imtophat.m erroneously
refers to 'SE' when it should refer to 'se'. How this could ever have
worked, I don't know. Perhaps Octave was case-insensitive in the past?

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.28.7pryan (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=fi_FI at euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages octave-image depends on:
ii  imagemagick            7:6.3.7.9.dfsg2-1 image manipulation programs
ii  libatlas3gf-base [libl 3.6.0-24          Automatically Tuned Linear Algebra
ii  libatlas3gf-sse2 [libl 3.6.0-24          Automatically Tuned Linear Algebra
ii  libblas3gf [libblas.so 1.2-2             Basic Linear Algebra Subroutines 3
ii  libc6                  2.9-25            GNU C Library: Shared libraries
ii  libfftw3-3             3.1.2-3.1         library for computing Fast Fourier
ii  libgcc1                1:4.3.3-3         GCC support library
ii  libgfortran3           4.3.3-3           Runtime library for GNU Fortran ap
ii  libhdf5-serial-1.8.3 [ 1.8.3-2.1         Hierarchical Data Format 5 (HDF5) 
ii  libjpeg62              6b-14             The Independent JPEG Group's JPEG 
ii  liblapack3gf [liblapac 3.1.1-6           library of linear algebra routines
ii  libncurses5            5.7+20090228-1    shared libraries for terminal hand
ii  libpng12-0             1.2.35-1          PNG library - runtime
ii  libreadline5           5.2-4             GNU readline and history libraries
ii  libstdc++6             4.3.3-3           The GNU Standard C++ Library v3
ii  octave3.0              1:3.0.5-7         GNU Octave language for numerical 
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

octave-image recommends no packages.

octave-image suggests no packages.

-- no debconf information





More information about the Pkg-octave-devel mailing list