subSpaceProjection error in android
i want fisherface in android so i create subspaceProject code
protected Mat subspaceProject(Mat _W, Mat _mean, Mat _src){
//contribute 폴더의 lda 에 있음
Mat X = null;
Mat Y = null;
Mat w = _W.clone();
Mat mean = _mean.clone();
Mat src = _src.clone();
// 샘플의 차원을 가져옴
int n = src.rows();
int d = src.cols();
if(w.rows() != d){
//System.out.println("Error W.rows != src.rows");
Log.e(TAG, "Error W.rows != src.cols");
return null;
}
Log.i(TAG, "w.row="+w.rows()+"cols="+w.cols()+"src.rows="+src.rows()+"cols="+src.cols());
src.convertTo(X, w.type());
if(!mean.empty()){
for(int i=0;i<n;i++){
Mat r_i = X.row(i);
Core.subtract(r_i, mean.reshape(1, 1), r_i);
}
}
Core.gemm(X, w, 1.0, new Mat(), 0.0, Y);
return Y;
}
and this is my log