I have another problem too, can I convert openCv fileformat("IplImage") to EyesWeb format ("Image") in code?
I want to do it in a block I already created.
The EyesWeb Image datatype has methods (CopyFromBuffer) to copy the content from a user-specified memory buffer, thus, you can copy/convert the content of the EyesWeb image from the data field of the IplImage struct. If you wan to avoid the copy you can create an EyesWeb image that uses the same buffer as the IplImage, by passing the data field of the IplImage as a second argument to the InitInstance method of the EyesWeb image.
You can also work in the opposite way, i.e., creating an IplImage that matches the EyesWeb image format, by using the CopyToBuffer method of the EyesWeb Image (using the data field of the IplImage as the destination). If you want to avoid the copy you can set the data field to point to the same buffer as the EyesWeb image (which you can obtain by means of the GetBuffer method).
Please note that if you share the memory between the EyesWeb and the IplImage in either way, the EyesWeb image should be used only internally to your block. I.e., the optimized
method which does noe need to copy memory cannot be used for input/output images, but only for images used for internal processing inside the block.