-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:introlab/rtabmap into jazzy-devel
- Loading branch information
Showing
39 changed files
with
2,332 additions
and
924 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// The following code is a C++ wrapper of the code presented by | ||
// Andrew D. Wilson in "Fast Lossless Depth Image Compression" at SIGCHI'17. | ||
// The original code is licensed under the MIT License. | ||
|
||
#ifndef RVL_CODEC_H_ | ||
#define RVL_CODEC_H_ | ||
|
||
#include <cstdint> | ||
#include "rtabmap/core/rtabmap_core_export.h" | ||
|
||
namespace rtabmap | ||
{ | ||
|
||
class RTABMAP_CORE_EXPORT RvlCodec { | ||
public: | ||
RvlCodec(); | ||
// Compress input data into output. The size of output can be equal to (1.5 * numPixels + 4) in the worst case. | ||
int CompressRVL(const uint16_t * input, unsigned char * output, int numPixels); | ||
// Decompress input data into output. The size of output must be equal to numPixels. | ||
void DecompressRVL(const unsigned char * input, uint16_t * output, int numPixels); | ||
|
||
private: | ||
RvlCodec(const RvlCodec &); | ||
RvlCodec & operator=(const RvlCodec &); | ||
|
||
void EncodeVLE(int value); | ||
int DecodeVLE(); | ||
|
||
int *buffer_; | ||
int *pBuffer_; | ||
int word_; | ||
int nibblesWritten_; | ||
}; | ||
|
||
} // namespace rtabmap | ||
|
||
#endif // RVL_CODEC_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.