RealSense D455を用いてカラー画像を取得するコードはありますか?
Ältere Kommentare anzeigen
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画像の表示
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Video Formats and Interfaces finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!