01-16-2009 12:11 PM
Hi,
I want to find out if I can do an image operation, using .net "GDI", which I've been told contains a gaussian blur function, which I want to perform. I am familiar with activex usage in labview, properties/methods etc, and have used that quite a bit. In browsing around the .net palette, there appears to be similar "property" and "methods", and an additional "constructor". It appears I can choose from libraries, similar to activex. But I do not see a "GDI" or image related library. Does anyone know how to get at image related functions in .net? Also, I was trying to find some examples of .net usage in the labview examples, but couldn't find any. Are there any examples there or elsewhere that I may be missing?
Thanks
Dave
Solved! Go to Solution.
01-16-2009 12:57 PM - edited 01-16-2009 12:59 PM
There are a couple of .NET examples that ship with LabVIEW. If you open the Example Finder and search for .NET you'll find 4 examples. Not many, grant you. As for your specific question, when you plop down the constructor you have to select the appropriate .NET assembly. A lot of the classes are in the "mscorlib" assembly that is in the list, though in your case you probably want the System.Drawing namespace. Your best bet is to find a working .NET example (such as this one) and that will tell you the steps you need to perform.
Addendum: You may also want to consider the image functions in LabVIEW, such as the stuff available in the Vision Toolkit.
01-16-2009 02:02 PM
Thanks,
I did find those examples now.
We do have the vision development module, but there is no blur function.
01-21-2009 11:41 AM
Actually, in case this post leads anyone astray, there IS the ability to blur using NI vision functions. It is using the "IMAQ Convolute" filter. I stumbled across this using vision assistant.
Regards,
Dave