Ask Your Question

Hyperbolic tangent on Image

asked 2012-07-26 19:31:30 -0500

DS gravatar image

Is there a way to get the hyperbolic tangent of the Mat image ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-09-30 03:38:39 -0500

Kirill Kornyakov gravatar image

If you need per-element hyperbolic tangent, you can easily achieve this with cv::exp and trivial arithmetics. Check wikipedia on how you can calculate tanh having exp.

edit flag offensive delete link more

Question Tools


Asked: 2012-07-26 19:31:30 -0500

Seen: 2,456 times

Last updated: Sep 30 '12