I am running the simple code below and expecting the depth of o to become 32. But it still remains 8. Am I missing something ???
IplImage *o = cvCreateImage(cvSize(100,100), 8,1);
IplImage *n = cvCreateImage(cvSize(100,100), 32,1);
cvConvertScale(o,n,1.0,0.0);
printf("The depth of o is %d\n", o->depth);
printf("The depth of n is %d\n", n->depth);