RealSense D455を用いてカラー画像を取得するコードはありますか?
Show older comments
Intel RealSense D455をWebカメラからRGB画像を取得するのと同じように使いたいので、詳しく分かる方いらっしゃいましたら、ご教授よろしくお願い致します。
pipe = realsense.pipeline();
profile = pipe.start(); % カメラから情報取得開始
for i=1:30
fs = pipe.wait_for_frames();
end
pipe.stop(); % カメラからの情報取得を停止
color = fs.get_color_frame();
colorData = color.get_data();
colorImage = permute(reshape(colorData',[color.get_width(),color.get_height(), 3]),[2 1 3]);
imshow(colorImage); % RGB画像の表示
Accepted Answer
More Answers (0)
Categories
Find more on Video Formats and Interfaces in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!