Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

read image into cwimaqviewer c# / . net

hi

 

i have a directshow camera in my c# applikation . i just want to display single shot images into CWIMAQViewer with very high refresh rate (so it looks like smooth stream)

 

the image i get from the camera is a jpeg now i make this like following:

 

 

  1.  get .jpeg image from camera
  2. save it to disk
  3. read it into the CWIMAQViewer

the problem i have here: this process takes too long for a smooth stream

 

now my question:

 

is it possible to load images with jpeg Format into CWIMAQViewer directly

 

 

i know there are some "copyImageToClipboard" functions, but this seems very professional too me ..

 

anyone has an idea?

 

thanks

 

0 Kudos
Message 1 of 9
(5,260 Views)
hi, You touched a key problem. I used to perform what you actually do for several projects. I won't say that it is a tidy process, but it just did the job. The good news is starting from Vision Acquisition 2009, DirectShow cams will be supported using NIIMAQdx.
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 9
(5,248 Views)
is there no other option to cast an Image into a CWIMAQImage?
0 Kudos
Message 3 of 9
(5,219 Views)
Interesting topic kumi. I'll personally spend the next weekend searching for it.
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 4 of 9
(5,200 Views)

Hi Kumi,

I created a simple class that you can use to directly to load any Image Object (Bitmap, PNG, WMF... etc) into IMAQ Viewer. I've enclosed a C# example as the language of your preference.An implicit casting is performed, so you may test it and tell me the results.

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 5 of 9
(5,143 Views)

Hello Waleed,

 

I'm really stuck and would like to use your class to load a bitmap to a viewer.  Unfortunately, I can't get it to compile.  Would you be able to convert it fully to C# and make sure it compiles?

Also, do you know how I can get a copy of the beta version of VDM 2009?  I'm using version 8.6 right now, but everything is very frustrating.

 

Thanks,

Neville 

0 Kudos
Message 6 of 9
(4,704 Views)

Hello Waleed,

 

Well, I was able to get it to compile, though it kept complaining at me regarding a dll conflict between 8.6.4 and 8.6.0.

 

Do you know where I can get the VDM 2009 beta?

Thanks,
Neville 

0 Kudos
Message 7 of 9
(4,703 Views)

Hello nb,

Sorry for late response. Suddenly alerts doesn't work with me. I'm glad you could've used it. In regard to VDM 2009, I'm afraid that the Beta program is closed. It is only a couple of months just like my mate muks said before the final release. in the mean time, I'll be happy to help you as much as I can. 

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 8 of 9
(4,685 Views)

Hello Waleed,


Thanks for the response.  Do you know when VDM 2009 is scheduled to be released?  I've moved my main question to this post in the event you have any input to offer:

 

http://forums.ni.com/ni/board/message?board.id=200&message.id=23855

 

Thanks,
Neville 

0 Kudos
Message 9 of 9
(4,669 Views)