Ask Your Question
0

convert to C++

asked 2014-04-13 12:39:02 -0600

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-04-13 13:54:45 -0600

unxnut gravatar image

updated 2014-04-13 13:55:31 -0600

int winC, hinC;
winC = ceil(ids->sof0.imageWidth/8.0);
hinC = ceil(ids->sof0.imageHeight/8.0);
Mat img ( hinC * 8, winC * 8, CV8UC(ids->sof0.numberOfComponents) );
edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-04-13 12:39:02 -0600

Seen: 278 times

Last updated: Apr 13 '14