|
From: | Jose |
Subject: | Re: Help with octave C++ function |
Date: | Wed, 2 Jan 2013 00:22:57 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
On 01/01/2013 11:59 PM, tstrubl1 wrote:
Hello, I am having trouble with a C++ function which I wish to execute in Octave. This function takes the convolution of 2 matrices and applies a threshold value to the output. The mathematics is similar to the one used in the following link: http://gimp.open-source-solution.org/manual/plug-in-convmatrix.html The code compiles without any errors. When the function is executed it returns a matrix completely filled with zeros. When I attempt to execute the function more than once, octave crashes.
Without much digging into your code it smells to me like indexes getting wild. But this is just one possibility.
I have been unable to debug
this on my own.
How are you trying to debug this? I would suggest you to use gdb, perhaps with a nice front-end such as eclipse.
Good luck. Jose
[Prev in Thread] | Current Thread | [Next in Thread] |