How to show Iplmage format in C ++ GUI instead of showing it in other windows?

I am trying to display the output image on a C ++ interface instead of creating another window to display the image. For example: cvNameWindow ("Window A", 0); cvShowImage ("Window A", imgA); This will create a window and display imgA on it. My question is that I can display my imgA on my C ++ interface along with all other buttons and text fields. I am using Borland C ++ Builder 6 and OpenCV.

+3
source share
2 answers

Firstly, since it is open source, you can see the implementation of cvShowImage for Windows here .

My C ++ Builder repository is a bit fuzzy, but I think you can skip all the CvWindow calls and use any GetDeviceContext () control (PaintBox?) For your DC and GetClientRect () to get its size.

Hope this helps.

+1
source

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

+1
source

Source: https://habr.com/ru/post/1729178/


All Articles