Path: blob/master/modules/videoio/src/cap_librealsense.hpp
16356 views
// This file is part of OpenCV project.1// It is subject to the license terms in the LICENSE file found in the top-level directory2// of this distribution and at http://opencv.org/license.html.34#ifndef _CAP_LIBREALSENE_HPP_5#define _CAP_LIBREALSENE_HPP_67#ifdef HAVE_LIBREALSENSE89#include <librealsense2/rs.hpp>1011namespace cv12{1314class VideoCapture_LibRealsense : public IVideoCapture15{16public:17VideoCapture_LibRealsense(int index);18virtual ~VideoCapture_LibRealsense();1920virtual double getProperty(int propIdx) const CV_OVERRIDE;21virtual bool setProperty(int propIdx, double propVal) CV_OVERRIDE;2223virtual bool grabFrame() CV_OVERRIDE;24virtual bool retrieveFrame(int outputType, OutputArray frame) CV_OVERRIDE;25virtual int getCaptureDomain() CV_OVERRIDE;26virtual bool isOpened() const CV_OVERRIDE;27protected:28rs2::pipeline mPipe;29rs2::frameset mData;30rs2::align mAlign;31};3233}3435#endif36#endif373839