[Top][All Lists]

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

[Octave-bug-tracker] [bug #37200] conv2 doesn't check for input number o

From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #37200] conv2 doesn't check for input number of dimensions
Date: Mon, 27 Aug 2012 01:44:42 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6) Gecko/20100101 Firefox/10.0.6 Iceweasel/10.0.6


                 Summary: conv2 doesn't check for input number of dimensions
                 Project: GNU Octave
            Submitted by: carandraug
            Submitted on: Mon 27 Aug 2012 01:44:41 AM GMT
                Category: Libraries
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.2
        Operating System: Any




I just noticed that conv2 does not accept the number of dimensions. Obviously
on the following example I'm giving crap to the function so I should expect an
error but would be nice to get a more meaningful error. Specially since images
are loaded as MxNx3 by default:

octave:13> a = uint8 (randi (255, 10, 10, 3));
octave:14> conv2 (a, ones(3))
error: invalid conversion of uint8 matrix to Matrix

The error even suggests that there's a problem on the the type but making it a
double just returns "invalid conversion of NDArray to Matrix". Same goes for
the seconed argument.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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