I am using a Jai RGB camera that is capable of delivering 30bit rgb output. Unfortunately I am not able to get access to the image data, no matter if set the output to raw or RGB16 bit.
I tried to get linear access to the image data:
IntPtr addrVPAT = new IntPtr[dimensions]; Cvb.Image.VPAEntry* pVPAT = new Cvb.Image.VPAEntry*[dimensions]; bool result=Cvb.Utilities.GetLinearAccess(img, 0, out pBase, out xInc, out yInc);
=> result is false, so I try:
bool result=Cvb.Image.GetImageVPA(img, 0, out pBase, out addrVPAT);
This method call evaluates to true, so afterwards I access the table:
byte* pSrc=new byte[dimensions]; // set pointer to first line pSrc[k] = (byte*)pBase + pVPAT.YEntry.ToInt64(); // get first value in line byte v=*(pSrc+pVPAT.XEntry.ToInt64());
All XEntries and YEntries evaluate to 0, so all my values are 0. It seems the table is empty.
Am I doing something wrong attempting to access the data, or is there actually no data, because the CVB can not get it from the camera?