Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

converet IMAQ to Bitmap in memory (without saving it as a file first

Highlighted

Hi,

I'm correcting a position of single particle on binary image. To do so, I resorted to implement overelays (an extracted particle over black background). The problem is I have to save the particle as bitmap to a harddisk and then loading it (which is not feasible for online correction).

 

Is there any method to convert VisionImage into Bitmap or Metafile in memory without saving it first on harddisk?

 

Once more, I use VB.NET but LabVIEW solution can be comprehended and converted.

 

Thanks in advance

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

0 Kudos
Message 1 of 10
(2,483 Views)

Hi VBCoder,

 

Are you using the Vision Development Module software? If so, why do you have to convert the file to a Bitmap or Metafile? If you could just expand a little bit more on your application that would great. I look forward to hearing back!

 

Paul M

National Instruments | Applications Engineer | www.ni.com/support
0 Kudos
Message 2 of 10
(2,463 Views)

Have you tried the image.Flatten method? Seems like it might do what you want. To retrieve it later, there is the corresponding Unflatten method.

 

-Christophe

0 Kudos
Message 3 of 10
(2,450 Views)

I'm not sure but..........CWIMAQImage.ImageToArray should work.

0 Kudos
Message 4 of 10
(2,389 Views)

imagtobitmap.pngJust a concept...

0 Kudos
Message 5 of 10
(2,358 Views)

Hi GriffinRU,

 

Thanks very much.

 

I need to do the same thing (Convert a VisionImage to a Bitmap in memory) but unfortunately I don't have Labview and am not familiar with it.  Is there a way to do this in VB.Net using the NI Vision Development Module?

 

Thanks for any comments

0 Kudos
Message 6 of 10
(2,248 Views)

Have you seen my reply in "From Vision Image to Bitmap"?

 

-Artur

0 Kudos
Message 7 of 10
(2,245 Views)

Any success?

-Artur

0 Kudos
Message 8 of 10
(2,221 Views)

This could be a nice start,

-Artur

0 Kudos
Message 9 of 10
(2,215 Views)

.... Edited

I have made a mistake

sorry

0 Kudos
Message 10 of 10
(2,134 Views)