Hi @pixelmaster,
if both fail it seem you are working on an invalid object. Can you try this (see the intro to new API on how to create a project):
var foundDevices = DeviceFactory.Discover();
var firstDeviceInfo = foundDevices[0]; // we simply assume we found at least one camera
firstDeviceInfo.SetParameter("PixelFormat", "4"); // 4 stands for RGB16 - 0 for RAW
using (var device = DeviceFactory.Open(firstDeviceInfo))
{
var image = device.Stream.GetSnapshot();
var imageData = image.Planes[0].GetLinearAccess<ushort>();
var netData = new ushort[image.Width, image.Height];
for (int y = 0; y < image.Height; y++)
{
for (int x = 0; x < image.Width; x++)
{
netData[x, y] = imageData[x, y];
}
}
}
This is very basic, but you should see pixel content after this…