Commit 5e7035b3 authored by Vitaly Tuzov's avatar Vitaly Tuzov

Fixed estimation Hessian matrix eigenvalue in getRidgeFilteredImage()

parent 670acd99
...@@ -57,7 +57,7 @@ void RidgeDetectionFilterImpl::getRidgeFilteredImage(InputArray _img, OutputArra ...@@ -57,7 +57,7 @@ void RidgeDetectionFilterImpl::getRidgeFilteredImage(InputArray _img, OutputArra
multiply(sbxx, sbyy, sbxxyy); multiply(sbxx, sbyy, sbxxyy);
Mat rootex; Mat rootex;
rootex = (sb2xx + (sb2xy + sb2xy + sb2xy + sb2xy) - (sbxxyy + sbxxyy) + sb2xy ); rootex = (sb2xx + (sb2xy + sb2xy + sb2xy + sb2xy) - (sbxxyy + sbxxyy) + sb2yy );
Mat root; Mat root;
sqrt(rootex, root); sqrt(rootex, root);
Mat ridgexp; Mat ridgexp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment