Tag: lbph algorithm

OpenCV C ++ calcHist到Java

我正在尝试在我的Android设备上运行一些c ++代码; 但是,我遇到了一个我正在使用的Mat类型的小问题。 我试图转换的代码如下(第二个函数调用第一个): static Mat histc_(const Mat& src, int minVal=0, int maxVal=255, bool normed=false) { Mat result; // Establish the number of bins. int histSize = maxVal-minVal+1; // Set the ranges. float range[] = { static_cast(minVal), static_cast(maxVal+1) }; const float* histRange = { range }; // calc histogram calcHist(&src, 1, 0, Mat(), result, 1, […]