Know the number of the corner using cornerHarris
<p>How can I know the number of the corners that are calculated by cornerHarris ? The function I wrote is as follows :</p>

<pre><code>    ...
    Mat gray;
    cvtColor( img, gray, CV_BGR2GRAY );
    int thresh = 160;
    Mat dst, dst_norm, dst_norm_scaled;
    dst = Mat::zeros( img.size(), CV_32FC1 );

    // Detector parameters
    int blockSize = 2;
    int apertureSize = 3;
    double k = 0.04;

    // Detecting corners
    cornerHarris( gray, dst, blockSize, apertureSize, k, BORDER_DEFAULT );

    // Normalizing
    normalize( dst, dst_norm, 0, 255, NORM_MINMAX, CV_32FC1, Mat() );
    convertScaleAbs( dst_norm, dst_norm_scaled );
</code></pre>