Ask Your Question
0

How to Capture Color Video From GC2450C GigE Cam.

asked 2013-12-26 05:23:31 -0600

kaushal gravatar image

Hello Friend's

This is with respect to my previous post

How do I get Allied Vision Camera (GC2450C) working with OpenCV 2.4?

I am able to capture Monochrome Video, now how do i make this capture video a color Video ??

Regards

Kaushal

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-12-30 23:32:46 -0600

kaushal gravatar image

Hello Friend's

Got the solution.

by doing following changes you will have color video out.

define CH_COLOR 3

IplImage *rgbImage = cvCreateImage(cvSize((int)width, (int)height), IPL_DEPTH_8U, CH_COLOR);
rgbImage->widthStep = (int)width * 3;

regards

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-12-26 05:23:31 -0600

Seen: 470 times

Last updated: Dec 30 '13