Home Help Center

Is it possible to include a custom data type (OpenCV IplImage) in a slice definition?

GabrielGabriel Member Gabriel UrzaizOrganization: Universidad Anahuac MayabProject: Licence plate recognition
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.

Comments

  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Hello Gabriel,

    Welcome to the forum!
    Gabriel wrote: »
    Is it possible to include a custom data type in a slice definition
    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>.

    Best regards,
    Mark
Sign In or Register to comment.