Ask Your Question

Revision history [back]

HOGDescripter does not compute 64 by 64 training images

Hi,

I am new to OpenCV, currently I am building a testing program using 2.4.9 on Windows 7, 32bit. I am trying to make HOGDescripter computing training images of 64 by 64 pixels. It works with 64 wide 128 high image. Is this a bug? Please enlighten me.

Thanks in advance,

Dakai

click to hide/show revision 2
retagged

updated 2014-08-15 07:58:59 -0600

berak gravatar image

HOGDescripter does not compute 64 by 64 training images

Hi,

I am new to OpenCV, currently I am building a testing program using 2.4.9 on Windows 7, 32bit. I am trying to make HOGDescripter computing training images of 64 by 64 pixels. It works with 64 wide 128 high image. Is this a bug? Please enlighten me.

Thanks in advance,

Dakai

HOGDescripter does not compute 64 by 64 training images

Hi,

I am new to OpenCV, currently I am building a C++ testing program using 2.4.9 on Windows 7, 32bit. I am trying to make HOGDescripter computing training images of 64 by 64 pixels. It works OK with 64 wide 128 high image. image, but not 64 by 64. Is this a bug? Please enlighten me. Bellow is the code snippet:

        HOGDescriptor hog(
            Size(64, 64),
            Size(16, 16),
            Size(8, 8),
            Size(8, 8), // cell size
            9, // n bins
            1, // deriv aperture
            0.0, // win sigma
            HOGDescriptor::L2Hys,
            0.2, //_L2HysThreshold
            false, // gamma correction
            HOGDescriptor::DEFAULT_NLEVELS // n levels
            );

....

            vector<Point> locations(1);
            hog.compute(img,
                features,
                Size(8, 8),
                Size(),
                locations);

After the compute function, The vector "features" contains all invalid data, I think they are negative infinite.

Thanks in advance,

Dakai