[Pkg-octave-devel] Bug#438465: Bug#438465: octave2.9-forge: image/edge.m fails with 'wrong type argument'
Thomas Weber
thomas.weber.mail at gmail.com
Sat Jan 5 16:00:08 UTC 2008
package octave2.9-forge
tag 438465 confirmed
thanks
Am Freitag, den 17.08.2007, 10:07 +0200 schrieb Andreas Romeyke:
> Subject: octave2.9-forge: image/edge.m fails with 'wrong type argument'
> Package: octave2.9-forge
> Version: 2006.07.09+dfsg1-8
> Severity: normal
>
> *** Please type your report below this line ***
> Hi,
>
> I load an image with following lines:
> image=imread("test.png");
> imshow(image);
> edgeimage=edge(image,'sobel');
>
> The last line triggers an error:
> error: octave_base_value::matrix_value(): wrong type argument
> `uint8 matrix' error: evaluating binary operator `.^' near line 77,
> column 39 error: evaluating binary operator `+' near line 77, column 43
> error: evaluating assignment expression near line 77, column 7
> error: evaluating if command near line 65, column 1
> error: called from `edge' in file
> `/usr/share/octave/site/api-v22/m/octave2.9-forge/image/edge.m'
> error: evaluating assignment expression near line 8, column 10
>
> The same code does work under Debian Sarge`s Version of Octave and
> Octave forge.
This is not a bug in octave-forge, but rather in Etch's version of
Octave. The old version of edge.m works fine with Octave 3.0.0.
That's quite bad, as patching/replacing a .m file would be trivial, but
getting a fixed version of Octave into stable for this bug is out of
question (ignoring the fact that I don't even have a patch).
Does the following work-around help you?
image=imread("test.png");
imshow(image);
double_image = double(image);
edgeimage=edge(double_image,'sobel');
Thomas
More information about the Pkg-octave-devel
mailing list