views:

116

answers:

2

I'm trying to display the output image onto the C++ interface instead of creating another window to display the image. For example: cvNameWindow("Window A",0); cvShowImage("Window A", imgA); This will create an window and display the imgA on it. My question is that can i display my imgA onto my C++ interface together with all my other button and textbox. I'm using Borland C++ Builder 6 and OpenCV.

+1  A: 

For one thing, since it's open source, you can have a look at the cvShowImage implementation for Windows here.

My C++ Builder memories are a bit fuzzy but I guess you can skip all the CvWindow calls and use any control's (a PaintBox?) GetDeviceContext() to its the DC and GetClientRect() to get its size.

Hope this helps.

Eugen Constantin Dinca
+1  A: 

You will need to convert the IplImage to a Graphics::TBitmap with this. Then you can draw it as here.

fnieto