How can I downsample image to increase FPS using Image Acquisition Toolbox?

6 vues (au cours des 30 derniers jours)
Lukas Klein
Lukas Klein le 28 Nov 2023
Réponse apportée : Moksh le 13 Déc 2023
Hello, I am currently trying to use the Image Acquisition Toolbox/Explorer with a Ximea camera (MC023MG-SY-UB). I have downloaded all necessary service packages, connection works and the camera repsonds. The key element of the camera for me are the FPS. It can do 164.5 fps in full resolution, but it can also downsample the resolution to half while doubling its fps. I have tested this feature in the Ximea app and it functions correctly. There is, however, no setting available in the IAE capable of doing that. Since I need to use Matlab with this camera (other devices controlled at the same time), this functionality missing is a big problem. Is there any workaround to the downsampling, so that I could use full fps of the sensor? Thank you in advance for your help

Réponses (1)

Moksh
Moksh le 13 Déc 2023
Hi Lukas,
I understand that you are trying to reduce the resolution for the camera, to increase the FPS.
The resolution for the images acquired by camera depends upon the hardware of the device.
You can try using the “imaqhwinfo” function in MATLAB to get more information about device hardware that you are using.
From there, supported video formats can be listed and set as per the requirements.
Here is a pseudo code for this:
info = imaqhwinfo('Adaptor Name for the Hardware Device');
list = info.DeviceInfo.SupportedFormats;
% You then need to select the required video format and pass it in the
% videoinput function
obj = videoinput('Adapter Name', 'VideoFormat', 'Required Video Format');
Please note that this is a non-executable code template and you will need to install the required adapters for the camera and use their appropriate names in the above code.
Refer to the following documentation, for more information about the above functions:
Hope this information helps resolve the problem.
Best Regards,
Moksh Aggarwal

Produits


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by