Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cant understand the XML file output

i am working in extracting features using HOG for SVM training so i managed to make the code work but i cant understand the output i am working on the positive image which are 550 image with size 100*40 and saved to an xml file

here is the code

  public static void trainPositives() {
            for (File file : new File(PATH_POSITIVE).listFiles()) {
                Mat img = getMat(file.getAbsolutePath());
                HOGDescriptor d = new HOGDescriptor(new Size(32, 32), new Size(8, 8), new Size(4, 4), new Size(4, 4), 9);
                MatOfFloat descriptorsValues = new MatOfFloat();
                MatOfPoint locations = new MatOfPoint();
                d.compute(img, descriptorsValues, new Size(0, 0), new Size(0, 0), locations);
                v_descriptors.push_back(descriptorsValues);
                v_loacation.push_back(locations);
                d.save(XML);
            } 
         }

what i want to know about the output where is the features or this output is completely wrong and why or any link explaining the HOG XML file output

<?xml version="1.0"?>
<opencv_storage>
<data type_id="opencv-object-detector-hog">
  <winSize>
    32 32</winSize>
  <blockSize>
    8 8</blockSize>
  <blockStride>
    4 4</blockStride>
  <cellSize>
    4 4</cellSize>
  <nbins>9</nbins>
  <derivAperture>1</derivAperture>
  <winSigma>2.</winSigma>
  <histogramNormType>0</histogramNormType>
  <L2HysThreshold>2.0000000000000001e-01</L2HysThreshold>
  <gammaCorrection>0</gammaCorrection>
  <nlevels>64</nlevels>
  <signedGradient>0</signedGradient></data>
</opencv_storage>