help-octave
[Top][All Lists]
Advanced

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

RE: Help with octave C++ function


From: Maros Janos
Subject: RE: Help with octave C++ function
Date: Wed, 2 Jan 2013 00:44:28 +0100

Should not the
index<=img_rows
index<=img_cols
rather be
index<img_rows
index<img_cols
instead?

-----Original Message-----
From: address@hidden [mailto:address@hidden
On Behalf Of Jose
Sent: Wednesday, January 02, 2013 12:23 AM
To: address@hidden
Subject: Re: Help with octave C++ function

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
_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave



reply via email to

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