Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert Image* to uInt8*? Vc++

Image* m_imageCatureBuffer ;

imaqThreshold(labelledImage, m_imageCatureBuffer, (float) m_threshMin, (float) m_threshMax, 1, 1);
 //imaqLabel(labelledImage, labelledImage, FALSE, &numParticles);
 imaqMoveWindow(IMAGE_WINDOW, imaqMakePoint(0, 0));
 imaqSetWindowPalette(IMAGE_WINDOW, IMAQ_PALETTE_BINARY, NULL, 0);

 

imaqMoveWindow(DISPLAY_WINDOW, imaqMakePoint(0,0));
 imaqSetWindowPalette(DISPLAY_WINDOW, IMAQ_PALETTE_BINARY, NULL, 0);
 imaqDisplayImage(image, DISPLAY_WINDOW, TRUE);

 

->>>>  successed....

imaq1394PlotDC(.....)  and Image* image, created on Windows, and I want to use

 

HDC hDc = ::GetDC(Wnd->m_hWnd);
 HRGN hRgn = ::CreateRectRgn(0, 0, 640, 480);
 SelectClipRgn(hDc, hRgn);

  imaq1394PlotDC ((GUIHNDL)hDc, (void *)m_image, 0, 0, 640, 480, 0, 0, 0);

 ::DeleteObject(hRgn);
 ::ReleaseDC(Wnd->m_hWnd, hDc);

 

 

->>>>  failed.......

0 Kudos
Message 1 of 1
(3,180 Views)