Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

unable to find sqrt of mat

hi, I am getting error in finding square root of a mat variable. can any one help me to find out the solution,

here is the code :-

Mat sigma = new Mat (height, width, CvType.CV_32F); Mat x = new Mat (height, width, CvType.CV_32F); Mat y = new Mat (height, width, CvType.CV_32F); Core.multiply(mu, mu, x); Core.subtract(mu2, x, y); Core.pow(y, 0.5, sigma); //Core.sqrt(y, sigma);

i tried both pow and sqrt in both error is coming.

here is logcat :-

E/org.opencv.core(2837): core::sqrt_10() caught cv::Exception: /home/reports/ci/slave_desktop/50-SDK/opencv/modules/core/src/mathfuncs.cpp:1931: error: (-215) depth == CV_32F || depth == CV_64F in function void cv::pow(cv::InputArray, double, cv::OutputArray)

thanks

unable to find sqrt of mat

hi, I am getting error in finding square root of a mat variable. can any one help me to find out the solution,

here is the code :-

Mat sigma = new Mat (height, width, CvType.CV_32F); Mat x = new Mat (height, width, CvType.CV_32F); Mat y = new Mat (height, width, CvType.CV_32F); Core.multiply(mu, mu, x); Core.subtract(mu2, x, y); Core.pow(y, 0.5, sigma); //Core.sqrt(y, sigma);

i tried both pow and sqrt in both error is coming.

here is logcat :-

E/org.opencv.core(2837): core::sqrt_10() caught cv::Exception: /home/reports/ci/slave_desktop/50-SDK/opencv/modules/core/src/mathfuncs.cpp:1931: error: (-215) depth == CV_32F || depth == CV_64F in function void cv::pow(cv::InputArray, double, cv::OutputArray)

thanks

unable to find sqrt of mat

hi, I am getting error in finding square root of a mat variable. can any one help me to find out the solution,

here is the code :-

Mat sigma = new Mat (height, width, CvType.CV_32F);
  Mat x = new Mat (height, width, CvType.CV_32F);
  Mat y = new Mat (height, width, CvType.CV_32F);
  Core.multiply(mu, mu, x);
  Core.subtract(mu2, x, y);
  Core.pow(y, 0.5, sigma);
  //Core.sqrt(y, sigma);

sigma);

i tried both pow and sqrt in both error is coming.

here is logcat :-

E/org.opencv.core(2837): core::sqrt_10() caught cv::Exception: /home/reports/ci/slave_desktop/50-SDK/opencv/modules/core/src/mathfuncs.cpp:1931: error: (-215) depth == CV_32F || depth == CV_64F in function void cv::pow(cv::InputArray, double, cv::OutputArray)

thanks