About frame period by Matlab
Is there a way to check the frame period and frame rate of depth images and point clouds obtained by "pointcloud_example" and "depth_view_example" in Matlab in realsense?
-
Accurate frame rate calculation is somewhat complicated even when using C++ language, as described in the link below.
https://github.com/IntelRealSense/librealsense/issues/7488#issuecomment-704124850
The RealSense MATLAB wrapper's programming language is almost 1:1 with C++ so it is not impossible that a routine to retrieve and display the current FPS could be developed in a MATLAB script.
There is a metadata option called RS2_FRAME_METADATA_ACTUAL_FPS that can be accessed. An example of doing so in C++ can be found in the link below.
https://github.com/IntelRealSense/librealsense/blob/master/unit-tests/unit-tests-live.cpp#L62
There is not much information available on accessing metadata from within the RealSense MATLAB wrapper though other than the reference in the wrapper's frame.m script.
https://github.com/IntelRealSense/librealsense/blob/master/wrappers/matlab/frame.m#L35
Please sign in to leave a comment.
Comments
2 comments