Ask Your Question
0

convert to C++

asked Apr 13 '14

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.

Preview: (hide)

1 answer

Sort by » oldest newest most voted
1

answered Apr 13 '14

unxnut gravatar image

updated Apr 13 '14

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) );
Preview: (hide)

Question Tools

Stats

Asked: Apr 13 '14

Seen: 291 times

Last updated: Apr 13 '14