Archived
This forum has been archived. Please start a new discussion on GitHub.
Is it possible to include a custom data type (OpenCV IplImage) in a slice definition?
Is it possible to include a custom data type in a slice definition? Specifically I'm trying to define an OpenCV IplImage type in a slice definition, as follows:
module VQN {
interface vqn1 {
void printStringENTvqn1(int a, int b, int c, int d, IplImage *s);
};
};
Thanks in advance,
Gabriel.
module VQN {
interface vqn1 {
void printStringENTvqn1(int a, int b, int c, int d, IplImage *s);
};
};
Thanks in advance,
Gabriel.
0
Comments
-
Hello Gabriel,
Welcome to the forum!
I'm afraid it's not possible to use a C++ type in your Slice definitions. Ice for Java and Ice for .NET support a serializable mechanism, but in C++ you will either need to define an equivalent Slice type, or convert your C++ object into a byte array and transfer it as a Slice sequence<byte>.Is it possible to include a custom data type in a slice definition
Best regards,
Mark0