Ask Your Question
0

apply SVD on image has error

asked 2014-06-22 11:05:52 -0600

lalecarbon gravatar image

updated 2014-06-22 11:30:58 -0600

Hi everyone. I've tried to compute SVD of an image by following code:

Mat image;
Mat U, W, V;
image = imread("pic.jpg");
Mat P;
//convert to float 64 for computing 
image.convertTo(P, CV_64FC1,1.0/255);
namedWindow("Display P window", WINDOW_AUTOSIZE);
imshow("Display P window", P);   
waitKey(0);
SVD svda(P);
//or SVD::compute(P, W, U, V);

program correctly executed and image has shown, but svd didn't compute. when I traced the code, I got following message at opencv svd function:

__vfptr = opencv_core248d.dll!0x00007ffed694ce50 (load symbols for additional information) {opencv_core248d.dll!0x00007ffed6602afe, ...}

My purpose is computing svd of an image and show image by change number of eigen values. Please help me. Thank you. Vahids

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-08-03 07:44:38 -0600

nexocv gravatar image

Make sure you read your input image in Grayscale.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-06-22 11:05:52 -0600

Seen: 337 times

Last updated: Aug 03 '16

Related questions