Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

HOG Getting an Assertion

I am compiling in VS2015 using the prebuilt Windows 3.2 libraries. This program came from a very good blog. When I run it I get an assertion:

Unhandled exception at 0x000007FEFD70A06D in HOGSVM.exe: Microsoft C++ exception: cv::Exception at memory location 0x00000000002AE910.

Always at the same memory location And this is on my console:

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

are the two parameters to this call.

The assertion seems to come after the line in types.hpp: template<typename _tp=""> inline Size_<_Tp>::Size_() : width(0), height(0) {} control comes back to program and the next step is the assertion.

Thanks, Doug

HOG Getting an Assertion

I am compiling in VS2015 using the prebuilt Windows 3.2 libraries. This program came from a very good blog. When I run it I get an assertion:

Unhandled exception at 0x000007FEFD70A06D in HOGSVM.exe: Microsoft C++ exception: cv::Exception at memory location 0x00000000002AE910.

Always at the same memory location And this is on my console:

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

are the two parameters to this call.

The assertion seems to come after the line in types.hpp: template<typename _tp=""> inline Size_<_Tp>::Size_() : width(0), height(0) {} control comes back to program and the next step is the assertion.

Thanks, Doug

HOG Getting an Assertion

I am compiling in VS2015 using the prebuilt Windows 3.2 libraries. This program came from a very good blog. When I run it I get an assertion:

Unhandled exception at 0x000007FEFD70A06D in HOGSVM.exe: Microsoft C++ exception: cv::Exception at memory location 0x00000000002AE910.

Always at the same memory location And this is on my console:

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

are the two parameters to this call.

The assertion seems to come after the line in types.hpp: template<typename _tp=""> inline Size_<_Tp>::Size_() : width(0), height(0) {} control comes back to program and the next step is the assertion.

Thanks, Doug