March 23rd, 2013, 11:51 PM
How can I calculate PCA?
I am trying to use PCA, but it gives memory access violation error. Here is my sample code.
PCA pca(input_feature_vector,Mat(),CV_PCA_DATA_AS_ROW, 0);/////error memory access
fprintf(pca_output_file,"%lf ",projection_result.at <float>(k,0));
Last edited by nihad; March 24th, 2013 at 12:05 AM.
March 24th, 2013, 08:50 AM
Re: How can I calculate PCA?
In cases like this, there is a little known but extremely effective set of steps used by gurus to deal with the situation.
The steps are
1) Use the debugger to find the problem
2) Find the problem using the debugger
3) Follow all the steps
All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.
Tags for this Thread
Click Here to Expand Forum to Full Width