Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

i think, this line (close to the end) might not be working:

// assigning to a copy ? probably needs a put() there
I.get(r,c)[0] = Math.tanh(I.get(r,c)[0]) / tau;

I.at<float>(r,c) ( in c++ ) is a reference type

(also, your result image looks like it's before the tanh)

i think, this line (close to the end) might not be working:

// assigning to a copy ? probably needs a put() there
there on the left side
I.get(r,c)[0] = Math.tanh(I.get(r,c)[0]) / tau;

I.at<float>(r,c) ( in c++ ) is a reference type

(also, your result image looks like it's before the tanh)