Ok. After installing the packages in Feisty (aptitude install libcv1
libcvaux1 libcv-dev libcvaux-dev) and fix the error with too few
arguments to function ‘cvSetIdentity’ from my provided source, it
worked. Here is the new source code:

#include <opencv/cv.h>
#include <stdio.h>
int
main ()
{
  int l, c;
  CvMat *ident = cvCreateMat (3, 3, CV_32FC1);
  //cvSetIdentity (ident);
  cvSetIdentity (ident, cvRealScalar (1));
  printf ("Matrix: identity[%d:%d]\n", ident->rows, ident->cols);
  for (l = 0; l < ident->rows; l++)
    {
      for (c = 0; c < ident->cols; c++)
        printf ("%f:", cvmGet (ident, l, c));
      printf ("\n");
    }
  printf ("\n");
  return 0;
}

// You sould compile it with: 
$ cc -o testIdent testIdent.c `pkg-config --libs opencv`
// The result should be:
Matrix: identity[3:3]
1.000000:0.000000:0.000000:
0.000000:1.000000:0.000000:
0.000000:0.000000:1.000000:

Which is correct!
Bug therefore can be closed for Feisty...

-- 
cvSetIdentity problem in 0.9.7 fixed in 1.0.0
https://launchpad.net/bugs/77913

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to