11-09-2008 04:31 PM - edited 11-09-2008 04:32 PM
11-09-2008 06:55 PM
Hi Ben,
National Instruments has an image processing software called Vision and although I am not completely sure, I think the controls that you found in the control pallet are used in conjunction with the software. Depending on what kind of image processing you want to conduct in LabVIEW, you might want to consider purchasing that product.
If cost is an issue, there are functions in LabVIEW which allows you to take in image files and process them. However, please keep in mind that the capabilities are limited.
Images should be loaded onto LabVIEW not via the clipboard but through loading it from folders or directories. (There might be a way to and so if you find a way please let me know! I would like to know myself =D) If you open the function pallet by right clicking on the block diagram, in the programming folder you should find a directory called "Graphic and Sound". There, you'll find functions in which allows you to process images.
In the "Graphic Type" directory there should be a function called Read JPEG file.vi. There are also others which allows you to read png and bmp files. Please note that there are functions which write as well. Set a file path on the block diagram and inside the "Grahic and Sound" there is a "Picture Function" directory and inside there, there should be a function called "Draw Flattened Pixmap.vi" That changes the image into a format where you can process on LabVIEW. Inside the "Picture Function" directory there are several functions which allows you to process the specified image. Play around with it and see how it goes. And don't forget to Write the file in the end to save any changes.
I hope this helps
-----------------------------------------------------------------
National Instruments Japan
Applications Engineer Taiki Hoshi
-----------------------------------------------------------------
11-10-2008 09:38 PM
Thanks for the info. However, is the Labview student version (which is what I have) capable of really integrating with the more professional Vision software? I got my copy of Labview student edition for free through the University of washington's UWare site (yes it actually was offered for FREE!).
And all I need is basic image processing such as brighten, darken, increase contrast, decrease contrast, and possibly some slightly more advanced functions (sharpen, blur, hue shift, saturation adjust, basically the stuff that's easy for Photshop to do). I would like to implement that into a labview program.
11-11-2008 09:20 AM
11-11-2008 09:27 AM
...and if you are still looking for examples...
This thread has sample code for some games we have ben playing over the years. The Code Capture tool along with the "CC and Friends" code does a lot of realated tasks that you may find helpful.
Have fun!
Ben
10-05-2009 06:15 AM
10-06-2009 09:37 AM
...After a little more playing I've refined the problem. In fact, my executable will operate only if the LabVIEW development system is running in the background.
I can start the exe up and it won't work correctly. If I leave it running and start up LabVIEW... hey presto - the exe starts to function as expected.
It seems the invoke node is no longer supported (might explain my problem!) but I am wondering if there is any way of getting around the problem of not having the development system running on my RTE machines.
Ian
10-06-2009 10:11 AM
Here is my partial guess, from looking at your code:
You can try searching RolfK's posts for "clipboard" or "DIB" or "BMP". He has some VIs which interact with the clipboard directly using the Windows API and should be able to read an image from the clipboard (I know that they can be used to write an image to the clipboard, so I assume he also implemented the reverse). This should probably work in the EXE as well.
If you search the LAVA forums for "screenshot" or something similar, I believe you should find an implementation of what you want which uses .NET.
10-06-2009 10:51 AM
Thanks for that. Yes, I did get an error in the exe if I didn't connect the refnum.
I've been looking for an excuse to get to grips with .NET things for a while so I'll see what I can dig up but will also go through some more of RolfK's posts - I had a good look but clearly not good enough!
Thanks again,
Ian
03-31-2014 02:58 AM
Hey together,
Have you found a final solution?
If so, please load up an example VI.
Thanks for help
Flobias