Ask Your Question

Revision history [back]

I know default window size. And i try many sizes and many image resolutions. It doesn't work, because HOGDescriptor structure is corrupted. All data in structure is moved by size of int in the memory in runtime. {64, 128} {16,16} {8,8} 9(nbins)... => {128,16} {16,8} {8,9} 1... Reason of this bug was in header of another library. Author used #pragma pack(1) and forgot to pop it.

I know default window size. And i try many sizes and many image resolutions. It doesn't work, because HOGDescriptor structure is corrupted. All data in structure is moved by size of int in the memory in runtime. {64, 128} {16,16} {8,8} 9(nbins)... => {128,16} {16,8} {8,9} 1... Reason of this bug was in header of another library. Author used #pragma pack(1) and forgot to pop it.it. Problem solved.