06-23-2005 12:56 PM
06-23-2005 05:06 PM - edited 06-23-2005 05:06 PM
@elliot.ee wrote:
I downloaded and ran the installation script for Intel's OpenCV from http://sourceforge.net/projects/opencvlibrary/ .
I wrote a wrapper around OpenCV's libhighgui.so shared library file using LabVIEW's Call Library Function Node.
Within this wrapper, I called OpenCV's cvLoadImage function which is located in the libhighgui.so shared library file. I even verified that the function is within that by using the following Linux script: nm -D libhighgui.so | less
It displays the following as a result of running that script: 00014330 T cvLoadImage
I then make sure that I put in the correct parameters (CString filename, long iscolor) and the correct return type (unsigned long).
I also connected two wires into it for the inputs.
I get the following error message: Call Library Function Node: function not found within library
I do not know how I got this error. I attached the vi so that you can also check it.
Thanks,
Elliot
Message Edited by rolfk on 06-23-2005 05:07 PM
06-24-2005 12:30 PM
06-24-2005 03:03 PM
@elliot.ee wrote:
/usr/share/lib is within LD_LIBRARY_PATH
Are you talking about Linux's LD_LIBRARY_PATH or NI's?
06-29-2005 11:01 AM
07-05-2005 08:06 AM
07-05-2005 08:07 AM
07-05-2005 09:17 AM
typedef struct _IplImage
{
int nSize; /* sizeof(IplImage) */
int ID; /* version (=0)*/
int nChannels; /* Most of OpenCV functions support 1,2,3 or 4 channels */
int alphaChannel; /* ignored by OpenCV */
int depth; /* pixel depth in bits: IPL_DEPTH_8U, IPL_DEPTH_8S, IPL_DEPTH_16U,
IPL_DEPTH_16S, IPL_DEPTH_32S, IPL_DEPTH_32F and IPL_DEPTH_64F are supported */
char colorModel[4]; /* ignored by OpenCV */
char channelSeq[4]; /* ditto */
int dataOrder; /* 0 - interleaved color channels, 1 - separate color channels.
cvCreateImage can only create interleaved images */
int origin; /* 0 - top-left origin,
1 - bottom-left origin (Windows bitmaps style) */
int align; /* Alignment of image rows (4 or 8).
OpenCV ignores it and uses widthStep instead */
int width; /* image width in pixels */
int height; /* image height in pixels */
struct _IplROI *roi;/* image ROI. when it is not NULL, this specifies image region to process */
struct _IplImage *maskROI; /* must be NULL in OpenCV */
void *imageId; /* ditto */
struct _IplTileInfo *tileInfo; /* ditto */
int imageSize; /* image data size in bytes
(=image->height*image->widthStep
in case of interleaved data)*/
char *imageData; /* pointer to aligned image data */
int widthStep; /* size of aligned image row in bytes */
int BorderMode[4]; /* border completion mode, ignored by OpenCV */
int BorderConst[4]; /* ditto */
char *imageDataOrigin; /* pointer to a very origin of image data
(not necessarily aligned) -
it is needed for correct image deallocation */
}
IplImage;
07-06-2005 01:51 PM
07-06-2005 02:10 PM