answered 2012-09-30 03:38:39 -0600
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.
tanh
exp