Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

CWIMAQOverlay.DrawPicture requires stdole.StdPicture as first argument. How do I convert CWIMAQImage to stdole.StdPicture?

I want to overlay one CWIMAQImage on top of another but CWIMAQOverlay.DrawPicture requires a stdole.StdPicture object. How do I convert my CWIMAQImage to a stdole.StdPicture? Or, is there another way to overlay one image onto another?

 

Also, when I overlay, is there a way to ensure that black pixels are transparent and not black?

 

Basically I have an image I am inspecting for defects. I filter the image and threshold to show only defect areas, now I want to take the thresholded image, with defects colored red, and overlay it on top of my greyscale image so that defects are highlighted on the original image.

0 Kudos
Message 1 of 2
(3,341 Views)

Hi again,

 

The CWIMAQImage can convert to array, so if you can track down the way with the stdole.StdPicture object to convert it from an array, that would work.

 

Check out this article on the transparency question. It's a masking issue.

Jeff | LabVIEW Software Engineer
0 Kudos
Message 2 of 2
(3,323 Views)