diff --git a/doxygen.log b/doxygen.log index ef9e63db..508c8561 100644 --- a/doxygen.log +++ b/doxygen.log @@ -1138,5 +1138,5 @@ Generating file index... Generating file member index... Generating example index... finalizing index lists... -lookup cache used 4499/65536 hits=34062 misses=4812 +lookup cache used 4534/65536 hits=34279 misses=4847 finished... diff --git a/html/camera_parameter_reader_8hpp_source.html b/html/camera_parameter_reader_8hpp_source.html index 6d951c61..0749ed40 100644 --- a/html/camera_parameter_reader_8hpp_source.html +++ b/html/camera_parameter_reader_8hpp_source.html @@ -127,22 +127,25 @@ $(document).ready(function(){initNavTree('camera_parameter_reader_8hpp_source.ht
18 
19  const std::vector<cv::Mat>& getCameraMatrices() const;
20 
-
21  const std::vector<cv::Mat>& getCameraIntrinsics() const;
+
21  const std::vector<cv::Mat>& getCameraExtrinsics() const;
22 
-
23  const std::vector<cv::Mat>& getCameraDistortions() const;
+
23  const std::vector<cv::Mat>& getCameraIntrinsics() const;
24 
-
25  private:
-
26  std::vector<std::string> mSerialNumbers;
-
27  unsigned long long mNumberCameras;
-
28  std::vector<cv::Mat> mCameraMatrices;
-
29  std::vector<cv::Mat> mCameraIntrinsics;
-
30  std::vector<cv::Mat> mCameraDistortions;
-
31 
-
32  DELETE_COPY(CameraParameterReader);
-
33  };
-
34 }
-
35 
-
36 #endif // OPENPOSE_EXPERIMENTAL_3D_CAMERA_PARAMETER_READER_HPP
+
25  const std::vector<cv::Mat>& getCameraDistortions() const;
+
26 
+
27  private:
+
28  std::vector<std::string> mSerialNumbers;
+
29  unsigned long long mNumberCameras;
+
30  std::vector<cv::Mat> mCameraMatrices;
+
31  std::vector<cv::Mat> mCameraExtrinsics;
+
32  std::vector<cv::Mat> mCameraIntrinsics;
+
33  std::vector<cv::Mat> mCameraDistortions;
+
34 
+
35  DELETE_COPY(CameraParameterReader);
+
36  };
+
37 }
+
38 
+
39 #endif // OPENPOSE_EXPERIMENTAL_3D_CAMERA_PARAMETER_READER_HPP
DELETE_COPY
#define DELETE_COPY(className)
Definition: macros.hpp:30
common.hpp
op::CameraParameterReader
Definition: cameraParameterReader.hpp:9
diff --git a/html/classop_1_1_camera_parameter_reader-members.html b/html/classop_1_1_camera_parameter_reader-members.html index ee2809bf..42e09d7e 100644 --- a/html/classop_1_1_camera_parameter_reader-members.html +++ b/html/classop_1_1_camera_parameter_reader-members.html @@ -114,10 +114,11 @@ $(document).ready(function(){initNavTree('classop_1_1_camera_parameter_reader.ht - - - - + + + + +
CameraParameterReader()op::CameraParameterReaderexplicit
getCameraDistortions() const op::CameraParameterReader
getCameraIntrinsics() const op::CameraParameterReader
getCameraMatrices() const op::CameraParameterReader
getNumberCameras() const op::CameraParameterReader
readParameters(const std::string &cameraParameterPath, const std::vector< std::string > &serialNumbers)op::CameraParameterReader
getCameraExtrinsics() const op::CameraParameterReader
getCameraIntrinsics() const op::CameraParameterReader
getCameraMatrices() const op::CameraParameterReader
getNumberCameras() const op::CameraParameterReader
readParameters(const std::string &cameraParameterPath, const std::vector< std::string > &serialNumbers)op::CameraParameterReader
diff --git a/html/classop_1_1_camera_parameter_reader.html b/html/classop_1_1_camera_parameter_reader.html index 1c729c94..b3334129 100644 --- a/html/classop_1_1_camera_parameter_reader.html +++ b/html/classop_1_1_camera_parameter_reader.html @@ -125,6 +125,8 @@ Public Member Functions   const std::vector< cv::Mat > & getCameraMatrices () const   +const std::vector< cv::Mat > & getCameraExtrinsics () const +  const std::vector< cv::Mat > & getCameraIntrinsics () const   const std::vector< cv::Mat > & getCameraDistortions () const @@ -168,6 +170,21 @@ Public Member Functions
+
+ + +
+
+ + + + + + + +
const std::vector<cv::Mat>& op::CameraParameterReader::getCameraExtrinsics () const
+
+
diff --git a/html/classop_1_1_camera_parameter_reader.js b/html/classop_1_1_camera_parameter_reader.js index 9ead14bc..81759018 100644 --- a/html/classop_1_1_camera_parameter_reader.js +++ b/html/classop_1_1_camera_parameter_reader.js @@ -2,6 +2,7 @@ var classop_1_1_camera_parameter_reader = [ [ "CameraParameterReader", "classop_1_1_camera_parameter_reader.html#ab7a4c3ef7ac8d8a41e5711ec85b7be4b", null ], [ "getCameraDistortions", "classop_1_1_camera_parameter_reader.html#a3ce10a02969515039e8575c3c044f882", null ], + [ "getCameraExtrinsics", "classop_1_1_camera_parameter_reader.html#ade743d816f255e3278bb72c761d82ba6", null ], [ "getCameraIntrinsics", "classop_1_1_camera_parameter_reader.html#adf7ad0ef26603129a251fdc166ffa548", null ], [ "getCameraMatrices", "classop_1_1_camera_parameter_reader.html#aa33845298440b7eefd3f57b80d3c41db", null ], [ "getNumberCameras", "classop_1_1_camera_parameter_reader.html#acfd1caf98782ae3f8f83c85ba17bc4e0", null ], diff --git a/html/classop_1_1_flir_reader-members.html b/html/classop_1_1_flir_reader-members.html index d1fce26a..3405c610 100644 --- a/html/classop_1_1_flir_reader-members.html +++ b/html/classop_1_1_flir_reader-members.html @@ -117,6 +117,8 @@ $(document).ready(function(){initNavTree('classop_1_1_flir_reader.html','');}); FlirReader(const std::string &cameraParametersPath, const Point< int > &cameraResolution)op::FlirReaderexplicit get(const int capProperty)op::FlirReadervirtual op::Producer::get(const ProducerProperty property)op::Producer + getCameraExtrinsics()op::FlirReadervirtual + getCameraIntrinsics()op::FlirReadervirtual getCameraMatrices()op::FlirReadervirtual getFrame()op::Producer getFrames()op::Producer diff --git a/html/classop_1_1_flir_reader.html b/html/classop_1_1_flir_reader.html index 4eff5978..65467b2f 100644 --- a/html/classop_1_1_flir_reader.html +++ b/html/classop_1_1_flir_reader.html @@ -125,6 +125,10 @@ Public Member Functions   std::vector< cv::Mat > getCameraMatrices ()   +std::vector< cv::Mat > getCameraExtrinsics () +  +std::vector< cv::Mat > getCameraIntrinsics () +  std::string getNextFrameName ()   bool isOpened () const @@ -251,6 +255,60 @@ Additional Inherited Members

Implements op::Producer.

+ + + +
+
+ + + + + +
+ + + + + + + +
std::vector<cv::Mat> op::FlirReader::getCameraExtrinsics ()
+
+virtual
+
+

It retrieves and returns the camera extrinsic parameters from the frames producer.

+
Returns
std::vector<cv::Mat> with the camera extrinsic parameters.
+ +

Implements op::Producer.

+ +
+
+ +
+
+ + + + + +
+ + + + + + + +
std::vector<cv::Mat> op::FlirReader::getCameraIntrinsics ()
+
+virtual
+
+

It retrieves and returns the camera intrinsic parameters from the frames producer.

+
Returns
std::vector<cv::Mat> with the camera intrinsic parameters.
+ +

Implements op::Producer.

+
diff --git a/html/classop_1_1_flir_reader.js b/html/classop_1_1_flir_reader.js index 2b039852..ca5c5813 100644 --- a/html/classop_1_1_flir_reader.js +++ b/html/classop_1_1_flir_reader.js @@ -3,6 +3,8 @@ var classop_1_1_flir_reader = [ "FlirReader", "classop_1_1_flir_reader.html#af9a7b3ffdc661198bbaba881d29b9af1", null ], [ "~FlirReader", "classop_1_1_flir_reader.html#acb4bd608210c5c58f587e1e220692e03", null ], [ "get", "classop_1_1_flir_reader.html#a5101cdbcd46e51bf7f35995a3d87e900", null ], + [ "getCameraExtrinsics", "classop_1_1_flir_reader.html#afb0ae89ef49073345b038fad8652cc37", null ], + [ "getCameraIntrinsics", "classop_1_1_flir_reader.html#a4a6576da78857c0e532d59b442332e83", null ], [ "getCameraMatrices", "classop_1_1_flir_reader.html#a7c3450fd4b5c6f81ade293ee95da7ba6", null ], [ "getNextFrameName", "classop_1_1_flir_reader.html#a711db0919bd7516fde3e641c13259637", null ], [ "isOpened", "classop_1_1_flir_reader.html#a3ce5e34848ef03804f6261964c6f6a77", null ], diff --git a/html/classop_1_1_image_directory_reader-members.html b/html/classop_1_1_image_directory_reader-members.html index 582a38c0..6e7a41e0 100644 --- a/html/classop_1_1_image_directory_reader-members.html +++ b/html/classop_1_1_image_directory_reader-members.html @@ -116,6 +116,8 @@ $(document).ready(function(){initNavTree('classop_1_1_image_directory_reader.htm flipAndRotate(cv::Mat &cvMat) const op::Producerprotected get(const int capProperty)op::ImageDirectoryReadervirtual op::Producer::get(const ProducerProperty property)op::Producer + getCameraExtrinsics()op::ImageDirectoryReadervirtual + getCameraIntrinsics()op::ImageDirectoryReadervirtual getCameraMatrices()op::ImageDirectoryReadervirtual getFrame()op::Producer getFrames()op::Producer diff --git a/html/classop_1_1_image_directory_reader.html b/html/classop_1_1_image_directory_reader.html index 6200ae41..6b98ba2f 100644 --- a/html/classop_1_1_image_directory_reader.html +++ b/html/classop_1_1_image_directory_reader.html @@ -123,6 +123,10 @@ Public Member Functions   std::vector< cv::Mat > getCameraMatrices ()   +std::vector< cv::Mat > getCameraExtrinsics () +  +std::vector< cv::Mat > getCameraIntrinsics () +  std::string getNextFrameName ()   bool isOpened () const @@ -248,6 +252,60 @@ Additional Inherited Members

Implements op::Producer.

+ + + +
+
+ + + + + +
+ + + + + + + +
std::vector<cv::Mat> op::ImageDirectoryReader::getCameraExtrinsics ()
+
+virtual
+
+

It retrieves and returns the camera extrinsic parameters from the frames producer.

+
Returns
std::vector<cv::Mat> with the camera extrinsic parameters.
+ +

Implements op::Producer.

+ +
+
+ +
+
+ + + + + +
+ + + + + + + +
std::vector<cv::Mat> op::ImageDirectoryReader::getCameraIntrinsics ()
+
+virtual
+
+

It retrieves and returns the camera intrinsic parameters from the frames producer.

+
Returns
std::vector<cv::Mat> with the camera intrinsic parameters.
+ +

Implements op::Producer.

+
diff --git a/html/classop_1_1_image_directory_reader.js b/html/classop_1_1_image_directory_reader.js index 14640367..bd1c6406 100644 --- a/html/classop_1_1_image_directory_reader.js +++ b/html/classop_1_1_image_directory_reader.js @@ -2,6 +2,8 @@ var classop_1_1_image_directory_reader = [ [ "ImageDirectoryReader", "classop_1_1_image_directory_reader.html#ae925d9314bfd948296d76475219b3594", null ], [ "get", "classop_1_1_image_directory_reader.html#aa05bfd69272e81115ba23a3c0731b596", null ], + [ "getCameraExtrinsics", "classop_1_1_image_directory_reader.html#ad0ee10725114d8899c59c8e37fd79078", null ], + [ "getCameraIntrinsics", "classop_1_1_image_directory_reader.html#a6d387de1819e7a78e18c2154bc473427", null ], [ "getCameraMatrices", "classop_1_1_image_directory_reader.html#a7e6c27d0796e087a6975c607d4b4227a", null ], [ "getNextFrameName", "classop_1_1_image_directory_reader.html#a46ce23209afe6d3ca90db545b69cd04a", null ], [ "isOpened", "classop_1_1_image_directory_reader.html#a432bc94339019f251cc48bbb4c5ae1e8", null ], diff --git a/html/classop_1_1_ip_camera_reader-members.html b/html/classop_1_1_ip_camera_reader-members.html index 6a9caa6b..7ba3fff8 100644 --- a/html/classop_1_1_ip_camera_reader-members.html +++ b/html/classop_1_1_ip_camera_reader-members.html @@ -116,6 +116,8 @@ $(document).ready(function(){initNavTree('classop_1_1_ip_camera_reader.html','') flipAndRotate(cv::Mat &cvMat) const op::Producerprotected get(const int capProperty)op::IpCameraReaderinlinevirtual op::Producer::get(const ProducerProperty property)op::Producer + getCameraExtrinsics()op::IpCameraReadervirtual + getCameraIntrinsics()op::IpCameraReadervirtual getCameraMatrices()op::IpCameraReadervirtual getFrame()op::Producer getFrames()op::Producer diff --git a/html/classop_1_1_ip_camera_reader.html b/html/classop_1_1_ip_camera_reader.html index 6ad810c2..db74b1a5 100644 --- a/html/classop_1_1_ip_camera_reader.html +++ b/html/classop_1_1_ip_camera_reader.html @@ -123,6 +123,10 @@ Public Member Functions   std::vector< cv::Mat > getCameraMatrices ()   +std::vector< cv::Mat > getCameraExtrinsics () +  +std::vector< cv::Mat > getCameraIntrinsics () +  std::string getNextFrameName ()   double get (const int capProperty) @@ -237,6 +241,60 @@ Additional Inherited Members

Implements op::VideoCaptureReader.

+ + + +
+
+ + + + + +
+ + + + + + + +
std::vector<cv::Mat> op::IpCameraReader::getCameraExtrinsics ()
+
+virtual
+
+

It retrieves and returns the camera extrinsic parameters from the frames producer.

+
Returns
std::vector<cv::Mat> with the camera extrinsic parameters.
+ +

Implements op::Producer.

+ +
+
+ +
+
+ + + + + +
+ + + + + + + +
std::vector<cv::Mat> op::IpCameraReader::getCameraIntrinsics ()
+
+virtual
+
+

It retrieves and returns the camera intrinsic parameters from the frames producer.

+
Returns
std::vector<cv::Mat> with the camera intrinsic parameters.
+ +

Implements op::Producer.

+
diff --git a/html/classop_1_1_ip_camera_reader.js b/html/classop_1_1_ip_camera_reader.js index 52e28c7c..c3b20e79 100644 --- a/html/classop_1_1_ip_camera_reader.js +++ b/html/classop_1_1_ip_camera_reader.js @@ -2,6 +2,8 @@ var classop_1_1_ip_camera_reader = [ [ "IpCameraReader", "classop_1_1_ip_camera_reader.html#abbe7f1bbf200ed9c6c0868eb3c6b0764", null ], [ "get", "classop_1_1_ip_camera_reader.html#aa7ad6adac6e401193e03d279176dd889", null ], + [ "getCameraExtrinsics", "classop_1_1_ip_camera_reader.html#a97b79697a2f5e12f3b48aa8506177e52", null ], + [ "getCameraIntrinsics", "classop_1_1_ip_camera_reader.html#a9e546d2b8211d9318ba63b252b2a3ade", null ], [ "getCameraMatrices", "classop_1_1_ip_camera_reader.html#a48a168a0913697493da1a9d95151f5ce", null ], [ "getNextFrameName", "classop_1_1_ip_camera_reader.html#a0c1582090cc7c54dd9cb752207b52986", null ], [ "set", "classop_1_1_ip_camera_reader.html#ac13cc7da97a31d8e69eaa64b2a7b31ba", null ] diff --git a/html/classop_1_1_producer-members.html b/html/classop_1_1_producer-members.html index 29e36549..21c9d07c 100644 --- a/html/classop_1_1_producer-members.html +++ b/html/classop_1_1_producer-members.html @@ -116,6 +116,8 @@ $(document).ready(function(){initNavTree('classop_1_1_producer.html','');}); flipAndRotate(cv::Mat &cvMat) const op::Producerprotected get(const int capProperty)=0op::Producerpure virtual get(const ProducerProperty property)op::Producer + getCameraExtrinsics()=0op::Producerpure virtual + getCameraIntrinsics()=0op::Producerpure virtual getCameraMatrices()=0op::Producerpure virtual getFrame()op::Producer getFrames()op::Producer diff --git a/html/classop_1_1_producer.html b/html/classop_1_1_producer.html index e64a5d06..72b329b7 100644 --- a/html/classop_1_1_producer.html +++ b/html/classop_1_1_producer.html @@ -130,6 +130,10 @@ Public Member Functions   virtual std::vector< cv::Mat > getCameraMatrices ()=0   +virtual std::vector< cv::Mat > getCameraExtrinsics ()=0 +  +virtual std::vector< cv::Mat > getCameraIntrinsics ()=0 +  virtual std::string getNextFrameName ()=0   void setProducerFpsMode (const ProducerFpsMode fpsMode) @@ -315,7 +319,7 @@ Protected Member Functions
Returns
double returning the property value.
-

Implemented in op::VideoCaptureReader, op::ImageDirectoryReader, op::WebcamReader, op::FlirReader, op::VideoReader, and op::IpCameraReader.

+

Implemented in op::ImageDirectoryReader, op::VideoCaptureReader, op::WebcamReader, op::FlirReader, op::VideoReader, and op::IpCameraReader.

@@ -340,6 +344,60 @@ Protected Member Functions + + + +
+
+ + + + + +
+ + + + + + + +
virtual std::vector<cv::Mat> op::Producer::getCameraExtrinsics ()
+
+pure virtual
+
+

It retrieves and returns the camera extrinsic parameters from the frames producer.

+
Returns
std::vector<cv::Mat> with the camera extrinsic parameters.
+ +

Implemented in op::WebcamReader, op::ImageDirectoryReader, op::VideoReader, op::FlirReader, and op::IpCameraReader.

+ +
+
+ +
+
+ + + + + +
+ + + + + + + +
virtual std::vector<cv::Mat> op::Producer::getCameraIntrinsics ()
+
+pure virtual
+
+

It retrieves and returns the camera intrinsic parameters from the frames producer.

+
Returns
std::vector<cv::Mat> with the camera intrinsic parameters.
+ +

Implemented in op::WebcamReader, op::ImageDirectoryReader, op::VideoReader, op::FlirReader, and op::IpCameraReader.

+
@@ -426,7 +484,7 @@ Protected Member Functions

This function returns a unique frame name (e.g. the frame number for video, the frame counter for webcam, the image name for image directory reader, etc.).

Returns
std::string with an unique frame name.
-

Implemented in op::VideoCaptureReader, op::WebcamReader, op::ImageDirectoryReader, op::VideoReader, op::FlirReader, and op::IpCameraReader.

+

Implemented in op::WebcamReader, op::VideoCaptureReader, op::ImageDirectoryReader, op::VideoReader, op::FlirReader, and op::IpCameraReader.

@@ -650,7 +708,7 @@ Protected Member Functions -

Implemented in op::VideoCaptureReader, op::ImageDirectoryReader, op::WebcamReader, op::FlirReader, op::VideoReader, and op::IpCameraReader.

+

Implemented in op::ImageDirectoryReader, op::VideoCaptureReader, op::WebcamReader, op::FlirReader, op::VideoReader, and op::IpCameraReader.

diff --git a/html/classop_1_1_producer.js b/html/classop_1_1_producer.js index 4a3e5cb9..43c59779 100644 --- a/html/classop_1_1_producer.js +++ b/html/classop_1_1_producer.js @@ -6,6 +6,8 @@ var classop_1_1_producer = [ "flipAndRotate", "classop_1_1_producer.html#aa1a13db305c7ab6a596a0dad122066cb", null ], [ "get", "classop_1_1_producer.html#a366881a952ad34071cc719477f08b968", null ], [ "get", "classop_1_1_producer.html#a94d561f95384dfa0cd91113882869d06", null ], + [ "getCameraExtrinsics", "classop_1_1_producer.html#af3e610a49b7e9a33d88554c48f6b390a", null ], + [ "getCameraIntrinsics", "classop_1_1_producer.html#a1829a82373f95c321bc3bbe63c6cce81", null ], [ "getCameraMatrices", "classop_1_1_producer.html#a06c471d5ac26fa20b323742ad4556104", null ], [ "getFrame", "classop_1_1_producer.html#aacd96f08524772d8865bb187c881943e", null ], [ "getFrames", "classop_1_1_producer.html#a3fbf3df1e02d326d7c954d78aa0dca0d", null ], diff --git a/html/classop_1_1_spinnaker_wrapper-members.html b/html/classop_1_1_spinnaker_wrapper-members.html index b9635821..2e90badd 100644 --- a/html/classop_1_1_spinnaker_wrapper-members.html +++ b/html/classop_1_1_spinnaker_wrapper-members.html @@ -112,6 +112,8 @@ $(document).ready(function(){initNavTree('classop_1_1_spinnaker_wrapper.html',''

This is the complete list of members for op::SpinnakerWrapper, including all inherited members.

+ + diff --git a/html/classop_1_1_spinnaker_wrapper.html b/html/classop_1_1_spinnaker_wrapper.html index 3f988653..46294ccb 100644 --- a/html/classop_1_1_spinnaker_wrapper.html +++ b/html/classop_1_1_spinnaker_wrapper.html @@ -125,6 +125,10 @@ Public Member Functions + + + + @@ -186,6 +190,36 @@ Public Member Functions

Member Function Documentation

+ +
+
+
getCameraExtrinsics() const op::SpinnakerWrapper
getCameraIntrinsics() const op::SpinnakerWrapper
getCameraMatrices() const op::SpinnakerWrapper
getRawFrames()op::SpinnakerWrapper
getResolution() const op::SpinnakerWrapper
 
std::vector< cv::Mat > getCameraMatrices () const
 
std::vector< cv::Mat > getCameraExtrinsics () const
 
std::vector< cv::Mat > getCameraIntrinsics () const
 
Point< int > getResolution () const
 
bool isOpened () const
+ + + + + + +
std::vector<cv::Mat> op::SpinnakerWrapper::getCameraExtrinsics () const
+
+ +
+ + +
+
+ + + + + + + +
std::vector<cv::Mat> op::SpinnakerWrapper::getCameraIntrinsics () const
+
+ +
+
diff --git a/html/classop_1_1_spinnaker_wrapper.js b/html/classop_1_1_spinnaker_wrapper.js index 689110ab..7bf9103a 100644 --- a/html/classop_1_1_spinnaker_wrapper.js +++ b/html/classop_1_1_spinnaker_wrapper.js @@ -2,6 +2,8 @@ var classop_1_1_spinnaker_wrapper = [ [ "SpinnakerWrapper", "classop_1_1_spinnaker_wrapper.html#ac7a7064093ee6b863f92c8c3317ebaf7", null ], [ "~SpinnakerWrapper", "classop_1_1_spinnaker_wrapper.html#a00ab178dfa540f603b1512fada764258", null ], + [ "getCameraExtrinsics", "classop_1_1_spinnaker_wrapper.html#aa011fe7b3bf42e3af5fb83faee42288e", null ], + [ "getCameraIntrinsics", "classop_1_1_spinnaker_wrapper.html#a5e36c3d04071f6c7b003c50d3f43bc36", null ], [ "getCameraMatrices", "classop_1_1_spinnaker_wrapper.html#ab79aa58cda90784d16335e0081d8f33a", null ], [ "getRawFrames", "classop_1_1_spinnaker_wrapper.html#a77a64d4ef798f2ea7cd54d9c170f7ea7", null ], [ "getResolution", "classop_1_1_spinnaker_wrapper.html#a57d3bfa344921563cd2648fced667b49", null ], diff --git a/html/classop_1_1_video_capture_reader-members.html b/html/classop_1_1_video_capture_reader-members.html index e8677315..56167459 100644 --- a/html/classop_1_1_video_capture_reader-members.html +++ b/html/classop_1_1_video_capture_reader-members.html @@ -116,6 +116,8 @@ $(document).ready(function(){initNavTree('classop_1_1_video_capture_reader.html' flipAndRotate(cv::Mat &cvMat) const op::Producerprotected get(const int capProperty)=0op::VideoCaptureReaderpure virtual op::Producer::get(const ProducerProperty property)op::Producer + getCameraExtrinsics()=0op::Producerpure virtual + getCameraIntrinsics()=0op::Producerpure virtual getCameraMatrices()=0op::Producerpure virtual getFrame()op::Producer getFrames()op::Producer diff --git a/html/classop_1_1_video_capture_reader.html b/html/classop_1_1_video_capture_reader.html index 59493b4a..9210cd6a 100644 --- a/html/classop_1_1_video_capture_reader.html +++ b/html/classop_1_1_video_capture_reader.html @@ -149,6 +149,10 @@ Public Member Functions   virtual std::vector< cv::Mat > getCameraMatrices ()=0   +virtual std::vector< cv::Mat > getCameraExtrinsics ()=0 +  +virtual std::vector< cv::Mat > getCameraIntrinsics ()=0 +  void setProducerFpsMode (const ProducerFpsMode fpsMode)   ProducerType getType () diff --git a/html/classop_1_1_video_reader-members.html b/html/classop_1_1_video_reader-members.html index 99e475e3..269b85f6 100644 --- a/html/classop_1_1_video_reader-members.html +++ b/html/classop_1_1_video_reader-members.html @@ -116,6 +116,8 @@ $(document).ready(function(){initNavTree('classop_1_1_video_reader.html','');}); flipAndRotate(cv::Mat &cvMat) const op::Producerprotected get(const int capProperty)op::VideoReadervirtual op::Producer::get(const ProducerProperty property)op::Producer + getCameraExtrinsics()op::VideoReadervirtual + getCameraIntrinsics()op::VideoReadervirtual getCameraMatrices()op::VideoReadervirtual getFrame()op::Producer getFrames()op::Producer diff --git a/html/classop_1_1_video_reader.html b/html/classop_1_1_video_reader.html index 7b545364..99b0b5cc 100644 --- a/html/classop_1_1_video_reader.html +++ b/html/classop_1_1_video_reader.html @@ -123,6 +123,10 @@ Public Member Functions   std::vector< cv::Mat > getCameraMatrices ()   +std::vector< cv::Mat > getCameraExtrinsics () +  +std::vector< cv::Mat > getCameraIntrinsics () +  std::string getNextFrameName ()   double get (const int capProperty) @@ -255,6 +259,60 @@ Additional Inherited Members

Implements op::VideoCaptureReader.

+
+
+ +
+
+ + + + + +
+ + + + + + + +
std::vector<cv::Mat> op::VideoReader::getCameraExtrinsics ()
+
+virtual
+
+

It retrieves and returns the camera extrinsic parameters from the frames producer.

+
Returns
std::vector<cv::Mat> with the camera extrinsic parameters.
+ +

Implements op::Producer.

+ +
+
+ +
+
+ + + + + +
+ + + + + + + +
std::vector<cv::Mat> op::VideoReader::getCameraIntrinsics ()
+
+virtual
+
+

It retrieves and returns the camera intrinsic parameters from the frames producer.

+
Returns
std::vector<cv::Mat> with the camera intrinsic parameters.
+ +

Implements op::Producer.

+
diff --git a/html/classop_1_1_video_reader.js b/html/classop_1_1_video_reader.js index 96752fa6..c6305ed9 100644 --- a/html/classop_1_1_video_reader.js +++ b/html/classop_1_1_video_reader.js @@ -2,6 +2,8 @@ var classop_1_1_video_reader = [ [ "VideoReader", "classop_1_1_video_reader.html#a70313aad386ef3897c70fea7b2e4030a", null ], [ "get", "classop_1_1_video_reader.html#a057a7d0c498c48639b38c10ac7efc183", null ], + [ "getCameraExtrinsics", "classop_1_1_video_reader.html#acf47ef8071b783fc8b406db9f3716eec", null ], + [ "getCameraIntrinsics", "classop_1_1_video_reader.html#a98144001ee79d467d8757f9bca10589a", null ], [ "getCameraMatrices", "classop_1_1_video_reader.html#a93742fd892cdb09b99b29f8e8036d803", null ], [ "getNextFrameName", "classop_1_1_video_reader.html#a508eed918fbe3bfe3eff4c1ebacb3463", null ], [ "set", "classop_1_1_video_reader.html#a0dd53334327642368d41ec860e64e756", null ] diff --git a/html/classop_1_1_webcam_reader-members.html b/html/classop_1_1_webcam_reader-members.html index a8a34225..ffae1984 100644 --- a/html/classop_1_1_webcam_reader-members.html +++ b/html/classop_1_1_webcam_reader-members.html @@ -116,6 +116,8 @@ $(document).ready(function(){initNavTree('classop_1_1_webcam_reader.html','');}) flipAndRotate(cv::Mat &cvMat) const op::Producerprotected get(const int capProperty)op::WebcamReadervirtual op::Producer::get(const ProducerProperty property)op::Producer + getCameraExtrinsics()op::WebcamReadervirtual + getCameraIntrinsics()op::WebcamReadervirtual getCameraMatrices()op::WebcamReadervirtual getFrame()op::Producer getFrames()op::Producer diff --git a/html/classop_1_1_webcam_reader.html b/html/classop_1_1_webcam_reader.html index 3561eabb..662c60d8 100644 --- a/html/classop_1_1_webcam_reader.html +++ b/html/classop_1_1_webcam_reader.html @@ -125,6 +125,10 @@ Public Member Functions   std::vector< cv::Mat > getCameraMatrices ()   +std::vector< cv::Mat > getCameraExtrinsics () +  +std::vector< cv::Mat > getCameraIntrinsics () +  std::string getNextFrameName ()   double get (const int capProperty) @@ -278,6 +282,60 @@ Additional Inherited Members

Implements op::VideoCaptureReader.

+ + + +
+
+ + + + + +
+ + + + + + + +
std::vector<cv::Mat> op::WebcamReader::getCameraExtrinsics ()
+
+virtual
+
+

It retrieves and returns the camera extrinsic parameters from the frames producer.

+
Returns
std::vector<cv::Mat> with the camera extrinsic parameters.
+ +

Implements op::Producer.

+ +
+
+ +
+
+ + + + + +
+ + + + + + + +
std::vector<cv::Mat> op::WebcamReader::getCameraIntrinsics ()
+
+virtual
+
+

It retrieves and returns the camera intrinsic parameters from the frames producer.

+
Returns
std::vector<cv::Mat> with the camera intrinsic parameters.
+ +

Implements op::Producer.

+
diff --git a/html/classop_1_1_webcam_reader.js b/html/classop_1_1_webcam_reader.js index 10756302..fdb2785b 100644 --- a/html/classop_1_1_webcam_reader.js +++ b/html/classop_1_1_webcam_reader.js @@ -3,6 +3,8 @@ var classop_1_1_webcam_reader = [ "WebcamReader", "classop_1_1_webcam_reader.html#afbfa9ebf32ab1c95f0378b49fce0df35", null ], [ "~WebcamReader", "classop_1_1_webcam_reader.html#a71212bd9e00be96b09650e86d465b42c", null ], [ "get", "classop_1_1_webcam_reader.html#a38ccbdf61f21fba0694362077cb6bdb1", null ], + [ "getCameraExtrinsics", "classop_1_1_webcam_reader.html#ab4be6381957df794c76b1c9eddd1f676", null ], + [ "getCameraIntrinsics", "classop_1_1_webcam_reader.html#aa03db1223070395d8970038fa3a8203a", null ], [ "getCameraMatrices", "classop_1_1_webcam_reader.html#afbad75f82bf39bfd503bbc8bd881592d", null ], [ "getNextFrameName", "classop_1_1_webcam_reader.html#a58c315e577c12486e5ab1b941d4cce04", null ], [ "set", "classop_1_1_webcam_reader.html#ae66b26829cc2d6e3f02109d4431a7bc2", null ] diff --git a/html/datum_8hpp_source.html b/html/datum_8hpp_source.html index 62f54f83..2f4df381 100644 --- a/html/datum_8hpp_source.html +++ b/html/datum_8hpp_source.html @@ -164,115 +164,121 @@ $(document).ready(function(){initNavTree('datum_8hpp_source.html','');});
182 
186  cv::Mat cameraMatrix;
187 
-
188  // ---------------------------------------- Other (internal) parameters ---------------------------------------- //
-
192  std::vector<double> scaleInputToNetInputs;
-
193 
-
198  std::vector<Point<int>> netInputSizes;
-
199 
-
203  double scaleInputToOutput;
-
204 
-
208  Point<int> netOutputSize;
+
191  cv::Mat cameraExtrinsics;
+
192 
+
196  cv::Mat cameraIntrinsics;
+
197 
+
198  // ---------------------------------------- Other (internal) parameters ---------------------------------------- //
+
202  std::vector<double> scaleInputToNetInputs;
+
203 
+
208  std::vector<Point<int>> netInputSizes;
209 
-
213  double scaleNetToOutput;
+
213  double scaleInputToOutput;
214 
-
219  std::pair<int, std::string> elementRendered;
-
220 
-
221 
-
222 
-
223 
+
218  Point<int> netOutputSize;
+
219 
+
223  double scaleNetToOutput;
224 
-
225  // ---------------------------------------- Functions ---------------------------------------- //
-
231  explicit Datum();
+
229  std::pair<int, std::string> elementRendered;
+
230 
+
231 
232 
-
241  Datum(const Datum& datum);
+
233 
+
234 
+
235  // ---------------------------------------- Functions ---------------------------------------- //
+
241  explicit Datum();
242 
-
249  Datum& operator=(const Datum& datum);
-
250 
-
256  Datum(Datum&& datum);
-
257 
-
264  Datum& operator=(Datum&& datum);
-
265 
-
270  virtual ~Datum();
-
271 
-
279  Datum clone() const;
-
280 
+
251  Datum(const Datum& datum);
+
252 
+
259  Datum& operator=(const Datum& datum);
+
260 
+
266  Datum(Datum&& datum);
+
267 
+
274  Datum& operator=(Datum&& datum);
+
275 
+
280  virtual ~Datum();
281 
-
282 
-
283 
-
284 
-
285  // ---------------------------------------- Comparison operators ---------------------------------------- //
-
291  inline bool operator<(const Datum& datum) const
-
292  {
-
293  return id < datum.id;
-
294  }
-
300  inline bool operator>(const Datum& datum) const
-
301  {
-
302  return id > datum.id;
-
303  }
-
309  inline bool operator<=(const Datum& datum) const
-
310  {
-
311  return id <= datum.id;
-
312  }
-
318  inline bool operator>=(const Datum& datum) const
-
319  {
-
320  return id >= datum.id;
-
321  }
-
327  inline bool operator==(const Datum& datum) const
-
328  {
-
329  return id == datum.id;
-
330  }
-
336  inline bool operator!=(const Datum& datum) const
-
337  {
-
338  return id != datum.id;
-
339  }
-
340  };
-
341 
-
342  // Defines for Datum. Added here rather than in `macros.hpp` to avoid circular dependencies
-
343  #define DATUM_BASE_NO_PTR std::vector<Datum>
-
344  #define DATUM_BASE std::shared_ptr<DATUM_BASE_NO_PTR>
-
345  #define DEFINE_TEMPLATE_DATUM(templateName) template class OP_API templateName<DATUM_BASE>
-
346  #define COMPILE_TEMPLATE_DATUM(templateName) extern DEFINE_TEMPLATE_DATUM(templateName)
-
347 }
-
348 
-
349 #endif // OPENPOSE_CORE_DATUM_HPP
+
289  Datum clone() const;
+
290 
+
291 
+
292 
+
293 
+
294 
+
295  // ---------------------------------------- Comparison operators ---------------------------------------- //
+
301  inline bool operator<(const Datum& datum) const
+
302  {
+
303  return id < datum.id;
+
304  }
+
310  inline bool operator>(const Datum& datum) const
+
311  {
+
312  return id > datum.id;
+
313  }
+
319  inline bool operator<=(const Datum& datum) const
+
320  {
+
321  return id <= datum.id;
+
322  }
+
328  inline bool operator>=(const Datum& datum) const
+
329  {
+
330  return id >= datum.id;
+
331  }
+
337  inline bool operator==(const Datum& datum) const
+
338  {
+
339  return id == datum.id;
+
340  }
+
346  inline bool operator!=(const Datum& datum) const
+
347  {
+
348  return id != datum.id;
+
349  }
+
350  };
+
351 
+
352  // Defines for Datum. Added here rather than in `macros.hpp` to avoid circular dependencies
+
353  #define DATUM_BASE_NO_PTR std::vector<Datum>
+
354  #define DATUM_BASE std::shared_ptr<DATUM_BASE_NO_PTR>
+
355  #define DEFINE_TEMPLATE_DATUM(templateName) template class OP_API templateName<DATUM_BASE>
+
356  #define COMPILE_TEMPLATE_DATUM(templateName) extern DEFINE_TEMPLATE_DATUM(templateName)
+
357 }
+
358 
+
359 #endif // OPENPOSE_CORE_DATUM_HPP
op::Datum::name
std::string name
Definition: datum.hpp:23
-
op::Datum::scaleInputToOutput
double scaleInputToOutput
Definition: datum.hpp:203
-
op::Datum::operator==
bool operator==(const Datum &datum) const
Definition: datum.hpp:327
+
op::Datum::scaleInputToOutput
double scaleInputToOutput
Definition: datum.hpp:213
+
op::Datum::operator==
bool operator==(const Datum &datum) const
Definition: datum.hpp:337
op::Datum::poseIds
Array< long long > poseIds
Definition: datum.hpp:81
op::Datum::inputNetData
std::vector< Array< float > > inputNetData
Definition: datum.hpp:48
op::Datum::faceKeypoints3D
Array< float > faceKeypoints3D
Definition: datum.hpp:173
op::Datum::poseHeatMaps
Array< float > poseHeatMaps
Definition: datum.hpp:105
op::Datum::cameraMatrix
cv::Mat cameraMatrix
Definition: datum.hpp:186
op::Datum::handHeatMaps
std::array< Array< float >, 2 > handHeatMaps
Definition: datum.hpp:159
-
op::Datum::scaleNetToOutput
double scaleNetToOutput
Definition: datum.hpp:213
-
op::Datum::elementRendered
std::pair< int, std::string > elementRendered
Definition: datum.hpp:219
-
op::Datum::scaleInputToNetInputs
std::vector< double > scaleInputToNetInputs
Definition: datum.hpp:192
+
op::Datum::scaleNetToOutput
double scaleNetToOutput
Definition: datum.hpp:223
+
op::Datum::elementRendered
std::pair< int, std::string > elementRendered
Definition: datum.hpp:229
+
op::Datum::scaleInputToNetInputs
std::vector< double > scaleInputToNetInputs
Definition: datum.hpp:202
op::Datum::poseCandidates
std::vector< std::vector< std::array< float, 3 > > > poseCandidates
Definition: datum.hpp:116
-
op::Datum::operator!=
bool operator!=(const Datum &datum) const
Definition: datum.hpp:336
+
op::Datum::operator!=
bool operator!=(const Datum &datum) const
Definition: datum.hpp:346
op::Datum::poseKeypoints3D
Array< float > poseKeypoints3D
Definition: datum.hpp:166
op::Point< int >
op::Datum::handKeypoints3D
std::array< Array< float >, 2 > handKeypoints3D
Definition: datum.hpp:181
op::Datum::faceRectangles
std::vector< Rectangle< float > > faceRectangles
Definition: datum.hpp:123
common.hpp
+
op::Datum::cameraExtrinsics
cv::Mat cameraExtrinsics
Definition: datum.hpp:191
op::Datum::poseKeypoints
Array< float > poseKeypoints
Definition: datum.hpp:72
op::Datum::handRectangles
std::vector< std::array< Rectangle< float >, 2 > > handRectangles
Definition: datum.hpp:144
-
op::Datum::operator<
bool operator<(const Datum &datum) const
Definition: datum.hpp:291
+
op::Datum::operator<
bool operator<(const Datum &datum) const
Definition: datum.hpp:301
op::Datum::outputData
Array< float > outputData
Definition: datum.hpp:56
op::Datum::handKeypoints
std::array< Array< float >, 2 > handKeypoints
Definition: datum.hpp:152
-
op::Datum::netInputSizes
std::vector< Point< int > > netInputSizes
Definition: datum.hpp:198
+
op::Datum::netInputSizes
std::vector< Point< int > > netInputSizes
Definition: datum.hpp:208
op::Datum
Definition: datum.hpp:15
-
op::Datum::netOutputSize
Point< int > netOutputSize
Definition: datum.hpp:208
+
op::Datum::netOutputSize
Point< int > netOutputSize
Definition: datum.hpp:218
op::Datum::faceHeatMaps
Array< float > faceHeatMaps
Definition: datum.hpp:137
op::Datum::cvInputData
cv::Mat cvInputData
Definition: datum.hpp:37
op::Datum::cvOutputData
cv::Mat cvOutputData
Definition: datum.hpp:64
+
op::Datum::cameraIntrinsics
cv::Mat cameraIntrinsics
Definition: datum.hpp:196
op::Array< float >
op::Datum::faceKeypoints
Array< float > faceKeypoints
Definition: datum.hpp:130
op::Datum::poseScores
Array< float > poseScores
Definition: datum.hpp:91
op::Datum::id
unsigned long long id
Definition: datum.hpp:18
-
op::Datum::operator<=
bool operator<=(const Datum &datum) const
Definition: datum.hpp:309
+
op::Datum::operator<=
bool operator<=(const Datum &datum) const
Definition: datum.hpp:319
OP_API
#define OP_API
Definition: macros.hpp:15
-
op::Datum::operator>
bool operator>(const Datum &datum) const
Definition: datum.hpp:300
-
op::Datum::operator>=
bool operator>=(const Datum &datum) const
Definition: datum.hpp:318
+
op::Datum::operator>
bool operator>(const Datum &datum) const
Definition: datum.hpp:310
+
op::Datum::operator>=
bool operator>=(const Datum &datum) const
Definition: datum.hpp:328
cl::string
std::string string
Definition: cl2.hpp:574
op::Datum::frameNumber
unsigned long long frameNumber
Definition: datum.hpp:30
diff --git a/html/datum_producer_8hpp_source.html b/html/datum_producer_8hpp_source.html index ffe01c8c..18874031 100644 --- a/html/datum_producer_8hpp_source.html +++ b/html/datum_producer_8hpp_source.html @@ -209,82 +209,92 @@ $(document).ready(function(){initNavTree('datum_producer_8hpp_source.html','');}
100  auto nextFrameNumber = (unsigned long long)spProducer->get(CV_CAP_PROP_POS_FRAMES);
101  auto cvMats = spProducer->getFrames();
102  auto cameraMatrices = spProducer->getCameraMatrices();
-
103  // Check frames are not empty
-
104  checkIfTooManyConsecutiveEmptyFrames(mNumberConsecutiveEmptyFrames, cvMats.empty() || cvMats[0].empty());
-
105  if (!cvMats.empty())
-
106  {
-
107  datums->resize(cvMats.size());
-
108  // Datum cannot be assigned before resize()
-
109  auto& datum = (*datums)[0];
-
110  // Filling first element
-
111  std::swap(datum.name, nextFrameName);
-
112  datum.frameNumber = nextFrameNumber;
-
113  datum.cvInputData = cvMats[0];
-
114  if (!cameraMatrices.empty())
-
115  datum.cameraMatrix = cameraMatrices[0];
-
116  // Image integrity
-
117  if (datum.cvInputData.channels() != 3)
-
118  {
-
119  const std::string commonMessage{"Input images must be 3-channel BGR."};
-
120  // Grey to RGB if required
-
121  if (datum.cvInputData.channels() == 1)
-
122  {
-
123  log(commonMessage + " Converting grey image into BGR.", Priority::High);
-
124  cv::cvtColor(datum.cvInputData, datum.cvInputData, CV_GRAY2BGR);
-
125  }
-
126  else
-
127  error(commonMessage, __LINE__, __FUNCTION__, __FILE__);
-
128  }
-
129  datum.cvOutputData = datum.cvInputData;
-
130  // Resize if it's stereo-system
-
131  if (datums->size() > 1)
-
132  {
-
133  // Stereo-system: Assign all cv::Mat
-
134  for (auto i = 1u ; i < datums->size() ; i++)
-
135  {
-
136  auto& datumI = (*datums)[i];
-
137  datumI.name = datum.name;
-
138  datumI.frameNumber = datum.frameNumber;
-
139  datumI.cvInputData = cvMats[i];
-
140  datumI.cvOutputData = datumI.cvInputData;
-
141  if (cameraMatrices.size() > i)
-
142  datumI.cameraMatrix = cameraMatrices[i];
-
143  }
-
144  }
-
145  // Check producer is running
-
146  if (!datumProducerRunning || (*datums)[0].cvInputData.empty())
-
147  datums = nullptr;
-
148  // Increase counter if successful image
-
149  if (datums != nullptr)
-
150  mGlobalCounter++;
-
151  }
-
152  }
-
153  // Return result
-
154  return std::make_pair(datumProducerRunning, datums);
-
155  }
-
156  catch (const std::exception& e)
-
157  {
-
158  error(e.what(), __LINE__, __FUNCTION__, __FILE__);
-
159  return std::make_pair(false, std::make_shared<TDatumsNoPtr>());
-
160  }
-
161  }
-
162 
-
163  template<typename TDatumsNoPtr>
-
164  void DatumProducer<TDatumsNoPtr>::checkIfTooManyConsecutiveEmptyFrames(unsigned int& numberConsecutiveEmptyFrames,
-
165  const bool emptyFrame) const
-
166  {
-
167  numberConsecutiveEmptyFrames = (emptyFrame ? numberConsecutiveEmptyFrames+1 : 0);
-
168  const auto threshold = 500u;
-
169  if (numberConsecutiveEmptyFrames >= threshold)
-
170  error("Detected too many (" + std::to_string(numberConsecutiveEmptyFrames) + ") empty frames in a row.",
-
171  __LINE__, __FUNCTION__, __FILE__);
-
172  }
-
173 
-
174  extern template class DatumProducer<DATUM_BASE_NO_PTR>;
-
175 }
-
176 
-
177 
-
178 #endif // OPENPOSE_PRODUCER_DATUM_PRODUCER_HPP
+
103  auto cameraExtrinsics = spProducer->getCameraExtrinsics();
+
104  auto cameraIntrinsics = spProducer->getCameraIntrinsics();
+
105  // Check frames are not empty
+
106  checkIfTooManyConsecutiveEmptyFrames(mNumberConsecutiveEmptyFrames, cvMats.empty() || cvMats[0].empty());
+
107  if (!cvMats.empty())
+
108  {
+
109  datums->resize(cvMats.size());
+
110  // Datum cannot be assigned before resize()
+
111  auto& datum = (*datums)[0];
+
112  // Filling first element
+
113  std::swap(datum.name, nextFrameName);
+
114  datum.frameNumber = nextFrameNumber;
+
115  datum.cvInputData = cvMats[0];
+
116  if (!cameraMatrices.empty())
+
117  {
+
118  datum.cameraMatrix = cameraMatrices[0];
+
119  datum.cameraExtrinsics = cameraExtrinsics[0];
+
120  datum.cameraIntrinsics = cameraIntrinsics[0];
+
121  }
+
122  // Image integrity
+
123  if (datum.cvInputData.channels() != 3)
+
124  {
+
125  const std::string commonMessage{"Input images must be 3-channel BGR."};
+
126  // Grey to RGB if required
+
127  if (datum.cvInputData.channels() == 1)
+
128  {
+
129  log(commonMessage + " Converting grey image into BGR.", Priority::High);
+
130  cv::cvtColor(datum.cvInputData, datum.cvInputData, CV_GRAY2BGR);
+
131  }
+
132  else
+
133  error(commonMessage, __LINE__, __FUNCTION__, __FILE__);
+
134  }
+
135  datum.cvOutputData = datum.cvInputData;
+
136  // Resize if it's stereo-system
+
137  if (datums->size() > 1)
+
138  {
+
139  // Stereo-system: Assign all cv::Mat
+
140  for (auto i = 1u ; i < datums->size() ; i++)
+
141  {
+
142  auto& datumI = (*datums)[i];
+
143  datumI.name = datum.name;
+
144  datumI.frameNumber = datum.frameNumber;
+
145  datumI.cvInputData = cvMats[i];
+
146  datumI.cvOutputData = datumI.cvInputData;
+
147  if (cameraMatrices.size() > i)
+
148  {
+
149  datumI.cameraMatrix = cameraMatrices[i];
+
150  datumI.cameraExtrinsics = cameraExtrinsics[i];
+
151  datumI.cameraIntrinsics = cameraIntrinsics[i];
+
152  }
+
153  }
+
154  }
+
155  // Check producer is running
+
156  if (!datumProducerRunning || (*datums)[0].cvInputData.empty())
+
157  datums = nullptr;
+
158  // Increase counter if successful image
+
159  if (datums != nullptr)
+
160  mGlobalCounter++;
+
161  }
+
162  }
+
163  // Return result
+
164  return std::make_pair(datumProducerRunning, datums);
+
165  }
+
166  catch (const std::exception& e)
+
167  {
+
168  error(e.what(), __LINE__, __FUNCTION__, __FILE__);
+
169  return std::make_pair(false, std::make_shared<TDatumsNoPtr>());
+
170  }
+
171  }
+
172 
+
173  template<typename TDatumsNoPtr>
+
174  void DatumProducer<TDatumsNoPtr>::checkIfTooManyConsecutiveEmptyFrames(unsigned int& numberConsecutiveEmptyFrames,
+
175  const bool emptyFrame) const
+
176  {
+
177  numberConsecutiveEmptyFrames = (emptyFrame ? numberConsecutiveEmptyFrames+1 : 0);
+
178  const auto threshold = 500u;
+
179  if (numberConsecutiveEmptyFrames >= threshold)
+
180  error("Detected too many (" + std::to_string(numberConsecutiveEmptyFrames) + ") empty frames in a row.",
+
181  __LINE__, __FUNCTION__, __FILE__);
+
182  }
+
183 
+
184  extern template class DatumProducer<DATUM_BASE_NO_PTR>;
+
185 }
+
186 
+
187 
+
188 #endif // OPENPOSE_PRODUCER_DATUM_PRODUCER_HPP
datumProducer.hpp
op::DatumProducer::checkIfRunningAndGetDatum
std::pair< bool, std::shared_ptr< TDatumsNoPtr > > checkIfRunningAndGetDatum()
Definition: datumProducer.hpp:72
op::ProducerType::Webcam
diff --git a/html/flir_reader_8hpp_source.html b/html/flir_reader_8hpp_source.html index d2407930..a179f587 100644 --- a/html/flir_reader_8hpp_source.html +++ b/html/flir_reader_8hpp_source.html @@ -125,30 +125,34 @@ $(document).ready(function(){initNavTree('flir_reader_8hpp_source.html','');});
24 
25  std::vector<cv::Mat> getCameraMatrices();
26 
-
27  std::string getNextFrameName();
+
27  std::vector<cv::Mat> getCameraExtrinsics();
28 
-
29  bool isOpened() const;
+
29  std::vector<cv::Mat> getCameraIntrinsics();
30 
-
31  void release();
+
31  std::string getNextFrameName();
32 
-
33  double get(const int capProperty);
+
33  bool isOpened() const;
34 
-
35  void set(const int capProperty, const double value);
+
35  void release();
36 
-
37  private:
-
38  SpinnakerWrapper mSpinnakerWrapper;
-
39  Point<int> mResolution;
-
40  long long mFrameNameCounter;
-
41 
-
42  cv::Mat getRawFrame();
-
43 
-
44  std::vector<cv::Mat> getRawFrames();
+
37  double get(const int capProperty);
+
38 
+
39  void set(const int capProperty, const double value);
+
40 
+
41  private:
+
42  SpinnakerWrapper mSpinnakerWrapper;
+
43  Point<int> mResolution;
+
44  long long mFrameNameCounter;
45 
-
46  DELETE_COPY(FlirReader);
-
47  };
-
48 }
+
46  cv::Mat getRawFrame();
+
47 
+
48  std::vector<cv::Mat> getRawFrames();
49 
-
50 #endif // OPENPOSE_PRODUCER_FLIR_READER_HPP
+
50  DELETE_COPY(FlirReader);
+
51  };
+
52 }
+
53 
+
54 #endif // OPENPOSE_PRODUCER_FLIR_READER_HPP
DELETE_COPY
#define DELETE_COPY(className)
Definition: macros.hpp:30
op::Producer
Definition: producer.hpp:16
op::Point< int >
diff --git a/html/functions_c.html b/html/functions_c.html index 19ffc2bc..988e6966 100644 --- a/html/functions_c.html +++ b/html/functions_c.html @@ -148,6 +148,12 @@ $(document).ready(function(){initNavTree('functions_c.html','');});
Here is a list of all class members with links to the classes they belong to:

- c -