Ask Your Question

Revision history [back]

convert to C++

hi all,
how may i convert this portion of C code to c++

.
.
.
int winC,hinC;
winC = ceil(ids->sof0.imageWidth/8.0);
hinC = ceil(ids->sof0.imageHeight/8.0);
IplImage *img;
img = cvCreateImage(cvSize(winC*8, hinC * 8), IPL_DEPTH_8U, ids->sof0.numberOfComponents);
.
.

and thanks in advance.