Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

what does the content means in a .vec file? while creating the samples using opencv_createsamples.

Hi, i want to know how vector file creates below data using an image. 0000000 007d 0000 09c4 0000 0000 0000 2700 0e00 0000010 1d00 5e00 0f00 1500 5f00 4e00 8200 8600 0000020 3200 3800 3100 7700 2800 8000 5d00 a500............ like this. what does each line representing? someone explained like this
The format of a .vec file is:

4 bytes denoting number of total images (int)
4 bytes denoting size of images (int)
2 bytes denoting min value (short)
2 bytes denoting max value (short)

ex:     6400 0000 4605 0000 0000 0000

    hex     6400 0000   4605 0000       0000        0000
            # images    size of h * w       min     max
    dec         100         1350            0       0

but it doesn't made us to understand. please help in detailed way. thanks in advance!