ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

AxCWIMAQViewer.ControlImage question

I am trying to use the AxCWIMAQViewer.ControlImage() method (Vision 8.6, C#) to extract a currently displayed image for saving to a file. The image after extraction has a very large pixel size (image.Width, image.Height) which is greater than the original data or the screen size. My first question is where is this resolution coming from? The second thing I am seeing is edges of different shades of gray surrounding the image (frame borders?). I would like to extract only the data and not the background around the data or the borders of the control. I have been trying to extract the rectangular region of the data by finding the transition of the image and the actual data, but I am finding multiple shades of grays and blacks and they are not the same on any of the sides. Once you get the image is there a way to then extract only the actual data and not the blackground, borders and/or what ever else is in the image surrounding the data?
John A. Lively
NDE Engineer
Pratt & Whitney
0 Kudos
Message 1 of 2
(3,208 Views)

Hello Pratt,

Do you want to save the image displayed on IMAQ Viewer Control?

 

If so, you may see these threads:

 

Saving Picture wih Overlays in C#

 

Saving an imaq image to disk using CWIMAQVision  

 

 

If not, please specify more and post the image you complain about.

 

Have a lovely day

Message Edited by VBCoder on 08-30-2009 11:34 AM
Waleed El-Badry MSc.,MCPD, ISTQB Certified Tester
Assistant Lecturer
Mechatronics Department
Faculty of Engineering
Misr University for Science & Technology



View Waleed El-Badry's profile on LinkedIn

Message 2 of 2
(3,190 Views)