OpenCV Error: Assertion failed ((n & (n - 1)) == 0) in cv::alignSize, file C:\build\master_winpack-build-win64-vc14\opencv\modules\core\include\opencv2/core/utility.hpp, line 438
The line being called is: hog.compute(deskewedtrainCells[y], descriptors);
vector<float> descriptors; vector<mat> &deskewedtrainCells
解决: