Aquire multiple channels sensor data using image acquisition tool

8 次查看(过去 30 天)
I am using a sensor which requires 1X-2YE as the sensor geometry. I have a framegrabber Xtium2 CXP PX8 from Teledyne to grab the data from the sensor. The preview in the CamExpert from Teledyne is full resolution(13392x9528). So, I installed the hardware support dalsa to the image acquisiton toolbox and loaded the camera profile from the output of CamExpert (Ver: 8.65).
However, when I try to access the camera, I only got 13392x4764 per frame. I think because of the sensor geometry it has two channels in the output. And I only have access to one channel. I wonder how can I access data from both channels?
Any help will be appreciated!

回答(1 个)

Isha
Isha 2025-9-2
Hello,
You can check for available video sources by listing them in MATLAB:
info = imaqhwinfo('dalsa');
disp(info.DeviceInfo)
Look for multiple devices or video sources—sometimes different channels appear as separate devices or sources. To access each channel, try creating video input objects with different device IDs:
vid1 = videoinput('dalsa', 1); % First channel
vid2 = videoinput('dalsa', 2); % Second channel (try incrementing the device ID)
You can also inspect the source properties to see if you can select the channel:
src = getselectedsource(vid1);
disp(src)
If you are only able to acquire each channel separately, you can combine the images manually:
frame1 = getsnapshot(vid1);
frame2 = getsnapshot(vid2);
fullFrame = [frame1; frame2]; % Vertical concatenation
For more details, refer to the documentation:
Hope this helps.
  1 个评论
Xiang
Xiang 2025-9-2
Hi Isha,
Thank you for your feedback. I think dalsa does not support the frame grabber that I used. I cannot use the second device, because the frame grabber only has one device connected. (device 1 is Mono, device 2 is RGB, device 3 is Bayer). I loaded the camera file correctly, but the readout from Matlab is still half of the size. And I cannot control the exposure time.
And I think in my case the frame grabber and the camera need to be controlled separately. I make it through Python calling .dll provided by Dalsa to control the image capture and harvests package to tune the exposure time.
For the most efficient way and complete to control, which will require coding in C # or C++ I expected. But takes time to figure it out.
Best,
Xiang

请先登录,再进行评论。

产品


版本

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by