Realsense D435 在 MATLAB 中更改分辨率
Posted
技术标签:
【中文标题】Realsense D435 在 MATLAB 中更改分辨率【英文标题】:Realsense D435 change resolution in MATLAB 【发布时间】:2021-07-09 15:51:28 【问题描述】:我看到来自 Intel 的示例 python 代码提供了一种更改分辨率的方法,如下所示:
config.enable_stream(rs.stream.depth, 640, 480, rs.format.z16, 30)
# Start streaming
pipeline.start(config)
https://github.com/IntelRealSense/librealsense/blob/master/wrappers/python/examples/opencv_viewer_example.py
我试图在 MATLAB 中做同样的事情,但得到一个错误:
config = realsense.config();
config.enable_stream(realsense.stream.depth,1280, 720, realsense.format.z16, 30);
pipeline = realsense.pipeline();
% Start streaming on an arbitrary camera with default settings
profile = pipeline.start(config);
错误如下:
Error using librealsense_mex
Couldn't resolve requests
Error in realsense.pipeline/start (line 31)
out = realsense.librealsense_mex('rs2::pipeline',
'start', this.objectHandle, varargin1.objectHandle);
Error in pointcloudRecordCfg (line 15)
profile = pipeline.start(config);
有什么建议吗?
【问题讨论】:
【参考方案1】:我用这个,效果很好。
config = realsense.config();
config.enable_stream(realsense.stream.depth,640,480,realsense.format.z16,30);
config.enable_stream(realsense.stream.color,640,480,realsense.format.rgb8,30);
% Make Pipeline object to manage streaming
pipe = realsense.pipeline();
% Start streaming with default settings
profile = pipe.start(config);
【讨论】:
以上是关于Realsense D435 在 MATLAB 中更改分辨率的主要内容,如果未能解决你的问题,请参考以下文章