Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There was a bug fix to this function:

http://docs.opencv.org/modules/core/doc/utility_and_system_functions_and_macros.html#alignsize

https://github.com/Itseez/opencv/commit/f1b5cbc8fe734b25220d2b4a1e7156b2017375e5

Instead of fixing the function to align by any n bytes, an assert was added that so that it only accepts n that is a power of two. Since this function is used inside HOGDescriptor::compute detect and detectROI to provide padding for input, this has effectively restricted these functions to cell and block sizes that are a power of two. Quite a limitation in my eyes since the parameters as you describe them should be perfectly valid.

I haven't gotten around to submitting a bug report regarding this problem, perhaps you could do it?