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!
0 个评论
回答(1 个)
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 National Instruments Frame Grabbers 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!