08-05-2008 10:04 AM
08-05-2008 10:09 AM
More Info... from another board, reason why I asked the question here...
----------------------------------
It seems that Labview do not support Object with Generic parameters (which is a feature of .NET 2.0). The Image<TColor, TDepth> class requires two generic parameters and therefore do not show up in Labview.
A work around might be, create you own dll and have a class ImageGrayByte that inherit Image<Gray, byte> with the constuctor that accept a file path. For example:
public class ImageGrayByte : Image<Gray, byte>
{
public ImageGrayByte(string path) : base(path) {};
}
compiles the above code and use it in Labview, you might be able to create an image object.
--------------------------------
Thanks
Tim C.
08-05-2008 11:14 AM
08-05-2008 12:42 PM
Still waiting on an answer to your question....
Does this help?
This is an open source library called OpenCV
---------------------------------
Loads an image from file
/* 8 bit, color or gray - deprecated, use CV_LOAD_IMAGE_ANYCOLOR */ #define CV_LOAD_IMAGE_UNCHANGED -1 /* 8 bit, gray */ #define CV_LOAD_IMAGE_GRAYSCALE 0 /* 8 bit unless combined with CV_LOAD_IMAGE_ANYDEPTH, color */ #define CV_LOAD_IMAGE_COLOR 1 /* any depth, if specified on its own gray */ #define CV_LOAD_IMAGE_ANYDEPTH 2 /* by itself equivalent to CV_LOAD_IMAGE_UNCHANGED but can be modified with CV_LOAD_IMAGE_ANYDEPTH */ #define CV_LOAD_IMAGE_ANYCOLOR 4 IplImage* cvLoadImage( const char* filename, int flags=CV_LOAD_IMAGE_COLOR );
The function cvLoadImage
loads an image from the specified file and returns the pointer to the loaded image. Currently the following file formats are supported:
------------------------------------------------
How do I get a path converted to a .NET Refnum?
08-05-2008 01:01 PM
08-05-2008 01:34 PM
A group put together a .NET Wrapper for the OpenCV functions. In the process it is my understanding that some of the properties used were generic. It is these generic properties that I am trying to get access to.....
Best Regards
Tim C.
08-05-2008 01:36 PM
Here is th elink to teh folks that made the wrapper:
http://www.emgu.com/wiki/index.php/Main_Page
08-05-2008 01:57 PM
08-05-2008 02:01 PM
08-05-2008 02:04 PM
Is there a way to have a path converted to a .NET refnum?