diff --git a/api/latest/BayesFilter_8h_source.html b/api/latest/BayesFilter_8h_source.html index 83539e85..b538c997 100644 --- a/api/latest/BayesFilter_8h_source.html +++ b/api/latest/BayesFilter_8h_source.html @@ -33,7 +33,7 @@
Background thread to compress or uncompress images and generic matrices.
-In compress mode, pass a source matrix to the constructor with an optional image format (".png", ".jpg", ".rvl", or empty for zlib data). In uncompress mode, pass compressed bytes and set isImage accordingly. Call UThread::start() then UThread::join() to obtain the result from getCompressedData() or getUncompressedData().
In compress mode, pass a source matrix to the constructor with an optional image format (".png", ".jpg", ".rvl", or empty for zlib data, see compressImage() for depth options). In uncompress mode, pass compressed bytes and set isImage accordingly. Call UThread::start() then UThread::join() to obtain the result from getCompressedData() or getUncompressedData().
Example compression:
Example uncompression:
Definition at line 67 of file Compression.h.
+Definition at line 68 of file Compression.h.
| mat | Source image or data matrix to compress. |
| format | Image format: ".png", ".jpg", ".rvl", or empty for zlib (compressData2). |
| format | Image format: ".png", ".jpg", ".rvl" (see compressImage()), or empty for zlib (compressData2). |
CV_8UC1), valid after compress mode completes. Definition at line 83 of file Compression.h.
+Definition at line 84 of file Compression.h.
Definition at line 85 of file Compression.h.
+Definition at line 86 of file Compression.h.
Key of parameter Mem/DepthCompressionFormat : "Depth image compression format for 16UC1 depth type. It should be \".png\" or \".rvl\". If depth type is 32FC1, \".png\" is used." Default value: ".rvl" (string).
+Key of parameter Mem/DepthCompressionFormat : "Depth image compression format. It should be \".png\" or \".rvl\", optionally followed by \":maxDepth[:quantization]\" (e.g., \".rvl:10:100\", quantization is 100 by default) to compress 32FC1 depth images as 16 bits inverse depth with that codec (same quantization than ROS's compressed_depth_image_transport). 16UC1 depth images are always compressed losslessly with the codec. Warning: the inverse depth format is lossy, the precision is ~d^2/(2*q*(q+1)) (q=quantization, e.g., 0.05 mm at 1 m and 5 mm at 10 m with q=100) and depth values over maxDepth or under ~q*(q+1)/65535 meters (0.15 m with q=100) are lost. Without depth parameters, 32FC1 depth images are compressed losslessly in \".png\" format (4 channels 8 bits). Databases with depth images compressed in inverse depth format cannot be opened by rtabmap versions under 0.24." Default value: ".rvl" (string).
Definition at line 225 of file Parameters.h.
diff --git a/api/latest/classrtabmap_1_1ParticleFilter-members.html b/api/latest/classrtabmap_1_1ParticleFilter-members.html index 66061fd4..b9debfb2 100644 --- a/api/latest/classrtabmap_1_1ParticleFilter-members.html +++ b/api/latest/classrtabmap_1_1ParticleFilter-members.html @@ -33,7 +33,7 @@Set image data. Detect automatically if raw or compressed. A matrix of type CV_8UC1 with 1 row is considered as compressed.
Set image data. Detect automatically if raw or compressed. A matrix of type CV_8UC1 with 1 row is considered as compressed. An invalid model (not CameraModel::isValidForProjection()) without any image is a placeholder (e.g., scan-only data): it is not added, so cameraModels() is empty.
| clearPreviousData,clear | previous raw and compressed images before setting the new ones. |
Definition at line 621 of file SensorData.h.
+Definition at line 623 of file SensorData.h.
Definition at line 627 of file SensorData.h.
+Definition at line 629 of file SensorData.h.
@@ -2108,7 +2108,7 @@ The class manages memory efficiently by storing either raw or compressed data (o -Definition at line 633 of file SensorData.h.
+Definition at line 635 of file SensorData.h.
@@ -2144,7 +2144,7 @@ The class manages memory efficiently by storing either raw or compressed data (o -Definition at line 639 of file SensorData.h.
+Definition at line 641 of file SensorData.h.
@@ -2175,7 +2175,7 @@ The class manages memory efficiently by storing either raw or compressed data (oReturns the depth image if _depthOrRightRaw contains depth data (not a right stereo image). Depth images are CV_16UC1 or CV_32FC1, while right stereo images are CV_8UC1 or CV_8UC3.
Definition at line 650 of file SensorData.h.
+Definition at line 652 of file SensorData.h.
@@ -2206,7 +2206,7 @@ The class manages memory efficiently by storing either raw or compressed data (oReturns the right stereo image if _depthOrRightRaw contains stereo data (not a depth image). Right stereo images are CV_8UC1 or CV_8UC3, while depth images are CV_16UC1 or CV_32FC1.
Definition at line 661 of file SensorData.h.
+Definition at line 663 of file SensorData.h.
@@ -2416,7 +2416,7 @@ The class manages memory efficiently by storing either raw or compressed data (oReturns the camera models.
Definition at line 735 of file SensorData.h.
+Definition at line 737 of file SensorData.h.
@@ -2446,7 +2446,7 @@ The class manages memory efficiently by storing either raw or compressed data (oReturns the stereo camera models.
Definition at line 741 of file SensorData.h.
+Definition at line 743 of file SensorData.h.
@@ -2507,7 +2507,7 @@ The class manages memory efficiently by storing either raw or compressed data (oDefinition at line 756 of file SensorData.h.
+Definition at line 758 of file SensorData.h.
Definition at line 757 of file SensorData.h.
+Definition at line 759 of file SensorData.h.
Returns raw ground cells.
Definition at line 782 of file SensorData.h.
+Definition at line 784 of file SensorData.h.
@@ -2654,7 +2654,7 @@ The class manages memory efficiently by storing either raw or compressed data (oDefinition at line 789 of file SensorData.h.
+Definition at line 791 of file SensorData.h.
@@ -2684,7 +2684,7 @@ The class manages memory efficiently by storing either raw or compressed data (oReturns raw obstacle cells.
Definition at line 795 of file SensorData.h.
+Definition at line 797 of file SensorData.h.
@@ -2715,7 +2715,7 @@ The class manages memory efficiently by storing either raw or compressed data (oDefinition at line 802 of file SensorData.h.
+Definition at line 804 of file SensorData.h.
@@ -2745,7 +2745,7 @@ The class manages memory efficiently by storing either raw or compressed data (oReturns raw empty cells.
Definition at line 808 of file SensorData.h.
+Definition at line 810 of file SensorData.h.
@@ -2776,7 +2776,7 @@ The class manages memory efficiently by storing either raw or compressed data (oDefinition at line 815 of file SensorData.h.
+Definition at line 817 of file SensorData.h.
@@ -2806,7 +2806,7 @@ The class manages memory efficiently by storing either raw or compressed data (oReturns the occupancy grid cell size.
Definition at line 821 of file SensorData.h.
+Definition at line 823 of file SensorData.h.
@@ -2836,7 +2836,7 @@ The class manages memory efficiently by storing either raw or compressed data (oReturns the occupancy grid viewpoint.
Definition at line 827 of file SensorData.h.
+Definition at line 829 of file SensorData.h.
@@ -2911,7 +2911,7 @@ The class manages memory efficiently by storing either raw or compressed data (oReturns the 2D keypoints.
Definition at line 845 of file SensorData.h.
+Definition at line 847 of file SensorData.h.
@@ -2941,7 +2941,7 @@ The class manages memory efficiently by storing either raw or compressed data (oReturns the 3D keypoints.
Definition at line 851 of file SensorData.h.
+Definition at line 853 of file SensorData.h.
@@ -2971,7 +2971,7 @@ The class manages memory efficiently by storing either raw or compressed data (oReturns the feature descriptors.
Definition at line 857 of file SensorData.h.
+Definition at line 859 of file SensorData.h.
@@ -3007,7 +3007,7 @@ The class manages memory efficiently by storing either raw or compressed data (o -Definition at line 863 of file SensorData.h.
+Definition at line 865 of file SensorData.h.
@@ -3043,7 +3043,7 @@ The class manages memory efficiently by storing either raw or compressed data (o -Definition at line 869 of file SensorData.h.
+Definition at line 871 of file SensorData.h.
@@ -3072,7 +3072,7 @@ The class manages memory efficiently by storing either raw or compressed data (oClears all global descriptors.
-Definition at line 874 of file SensorData.h.
+Definition at line 876 of file SensorData.h.
@@ -3102,7 +3102,7 @@ The class manages memory efficiently by storing either raw or compressed data (oReturns all global descriptors.
Definition at line 880 of file SensorData.h.
+Definition at line 882 of file SensorData.h.
@@ -3138,7 +3138,7 @@ The class manages memory efficiently by storing either raw or compressed data (o -Definition at line 886 of file SensorData.h.
+Definition at line 888 of file SensorData.h.
@@ -3168,7 +3168,7 @@ The class manages memory efficiently by storing either raw or compressed data (oReturns the ground truth pose.
Definition at line 892 of file SensorData.h.
+Definition at line 894 of file SensorData.h.
@@ -3215,7 +3215,7 @@ The class manages memory efficiently by storing either raw or compressed data (o -Definition at line 899 of file SensorData.h.
+Definition at line 901 of file SensorData.h.
@@ -3245,7 +3245,7 @@ The class manages memory efficiently by storing either raw or compressed data (oReturns the global pose.
Definition at line 905 of file SensorData.h.
+Definition at line 907 of file SensorData.h.
@@ -3275,7 +3275,7 @@ The class manages memory efficiently by storing either raw or compressed data (oReturns the global pose covariance.
Definition at line 911 of file SensorData.h.
+Definition at line 913 of file SensorData.h.
@@ -3311,7 +3311,7 @@ The class manages memory efficiently by storing either raw or compressed data (o -Definition at line 917 of file SensorData.h.
+Definition at line 919 of file SensorData.h.
@@ -3341,7 +3341,7 @@ The class manages memory efficiently by storing either raw or compressed data (oReturns GPS data.
Definition at line 923 of file SensorData.h.
+Definition at line 925 of file SensorData.h.
@@ -3398,7 +3398,7 @@ The class manages memory efficiently by storing either raw or compressed data (oReturns IMU data.
Definition at line 937 of file SensorData.h.
+Definition at line 939 of file SensorData.h.
@@ -3434,7 +3434,7 @@ The class manages memory efficiently by storing either raw or compressed data (o -Definition at line 943 of file SensorData.h.
+Definition at line 945 of file SensorData.h.
@@ -3470,7 +3470,7 @@ The class manages memory efficiently by storing either raw or compressed data (o -Definition at line 949 of file SensorData.h.
+Definition at line 951 of file SensorData.h.
@@ -3500,7 +3500,7 @@ The class manages memory efficiently by storing either raw or compressed data (oReturns all environmental sensors.
Definition at line 955 of file SensorData.h.
+Definition at line 957 of file SensorData.h.
@@ -3537,7 +3537,7 @@ The class manages memory efficiently by storing either raw or compressed data (oDefinition at line 962 of file SensorData.h.
+Definition at line 964 of file SensorData.h.
@@ -3567,7 +3567,7 @@ The class manages memory efficiently by storing either raw or compressed data (oReturns landmarks.
Definition at line 968 of file SensorData.h.
+Definition at line 970 of file SensorData.h.
diff --git a/api/latest/classrtabmap_1_1SensorEvent-members.html b/api/latest/classrtabmap_1_1SensorEvent-members.html index d391eb70..e2409a7e 100644 --- a/api/latest/classrtabmap_1_1SensorEvent-members.html +++ b/api/latest/classrtabmap_1_1SensorEvent-members.html @@ -33,7 +33,7 @@|
+ RTAB-Map 0.24.0
+
+ Real-Time Appearance-Based Mapping
+ |
+
image to a byte buffer (OpenCV imencode or RVL for depth). image to a byte buffer (OpenCV imencode or RVL for depth). Contributed by e-consystemgit https://www.e-consystems.com/opensource-linux-webcam-software-application.asp
@@ -765,6 +783,94 @@ Variables| bool RTABMAP_CORE_EXPORT rtabmap::parseImageCompressionFormat | +( | +const std::string & | +format, | +
| + | + | std::string & | +codec, | +
| + | + | float & | +maxDepth, | +
| + | + | float & | +quantization | +
| + | ) | ++ |
Parses an image compression format "<codec>[:<maxDepth>[:<quantization>]]".
+| format | Format, e.g., ".jpg", ".png", ".rvl", ".png:10" or ".rvl:20:100". The empty format is valid (general zlib compression, see CompressionThread). |
| codec | Output codec (e.g., ".png"). |
| maxDepth | Output maximum depth (m) of the inverse depth format, 0 if not set. |
| quantization | Output depth quantization of the inverse depth format (100 if not set but maxDepth is), 0 if maxDepth is not set. |
".png" and ".rvl", and should be positive. | std::vector< unsigned char > RTABMAP_CORE_EXPORT rtabmap::compressImage | +( | +const cv::Mat & | +image, | +
| + | + | const std::string & | +format = ".png" |
+
| + | ) | ++ |
Encodes image to a byte buffer (OpenCV imencode or RVL for depth).
| format | ".png", ".jpg" or ".rvl" (16UC1 only), optionally followed by ":<maxDepth>[:<quantization>]" (see parseImageCompressionFormat()). For 32FC1 depth images, if maxDepth is set, depth is quantized on 16 bits as inverse depth (as ROS's compressed_depth_image_transport) and compressed with the codec. With A=quantization*(quantization+1) and B=1-A/maxDepth, the precision is ~d^2/(2A), and depth values over maxDepth or under A/(65535-B) are lost (set to 0). For example, ".png:10:100" keeps depth between 0.15 and 10 m with errors of 0.05 mm at 1 m and 5 mm at 10 m. Otherwise, 32FC1 depth images are compressed losslessly as 4-channel 8 bits PNG (legacy format). Other image types ignore the depth parameters. |
Detects the compression format of depth image bytes.
-".rvl" if the buffer has an RVL signature, otherwise ".png". ".rvl" if the buffer has an RVL signature, ".png:<maxDepth>:<quantization>" or ".rvl:<maxDepth>:<quantization>" for inverse depth images (see compressImage()), otherwise ".png". The returned format can be passed back to compressImage() to compress in the same format. Definition at line 207 of file SensorEvent.h.
+ + + +| const char rtabmap::kCompressedDepthRvlSignature[8] = {'D', 'E', 'P', 'T', 'H', 'R', 'V', 'L'} | +
Signature of the ".rvl" layout (8 bytes, not null-terminated).
+ +Definition at line 118 of file Compression.h.
+ +| const size_t rtabmap::kCompressedDepthRvlHeaderSize = 16 | +
Size of the ".rvl" header: signature, uint32 cols, uint32 rows.
+ +Definition at line 120 of file Compression.h.
+ +| const char rtabmap::kCompressedDepthInvSignature[8] = {'D', 'E', 'P', 'T', 'H', 'I', 'N', 'V'} | +
Signature of the inverse depth layout (8 bytes, not null-terminated).
+ +Definition at line 122 of file Compression.h.
+ +| const size_t rtabmap::kCompressedDepthInvHeaderSize = 16 | +
Size of the inverse depth header: signature, float depthQuantA, float depthQuantB.
+ +Definition at line 124 of file Compression.h.
+.jpg .rvl .rvl 10