IntPtr imgPointer = Marshal.AllocHGlobal(StructSize.MIplImage);
But I want to create array of it. I tried something like this.
IntPtr[] imgArrayPointers = new IntPtr[100];
But in I need the size of array not be initialized at the beginning. Like this in OpenCV.
IplImage ** ArrayOfPonters = 0;
Can anyone help me to solve 开发者_运维知识库this problem.
Thanks,
SachiraTo keep an array un-allocated you just have to declare it like that :
IntPtr[] imgArrayPointers = null;
And then, when you need space, you eventually do :
imgArrayPointers = new IntPtr[100];
精彩评论