28 #ifndef CORELIB_INCLUDE_RTABMAP_CORE_LASERSCAN_H_ 29 #define CORELIB_INCLUDE_RTABMAP_CORE_LASERSCAN_H_ 52 static int channels(
Format format);
53 static bool isScan2d(
const Format & format);
54 static bool isScanHasNormals(
const Format & format);
55 static bool isScanHasRGB(
const Format & format);
56 static bool isScanHasIntensity(
const Format & format);
63 const cv::Mat &
data()
const {
return data_;}
69 bool isEmpty()
const {
return data_.empty();}
70 int size()
const {
return data_.cols;}
72 bool is2d()
const {
return isScan2d(format_);}
73 bool hasNormals()
const {
return isScanHasNormals(format_);}
74 bool hasRGB()
const {
return isScanHasRGB(format_);}
76 bool isCompressed()
const {
return !data_.empty() && data_.type()==CV_8UC1;}
81 int getNormalsOffset()
const {
return hasNormals()?(2 + (is2d()?0:1) + ((hasRGB() || hasIntensity())?1:0)):-1;}
83 void clear() {data_ = cv::Mat();}
const cv::Mat & data() const
int getNormalsOffset() const
bool isCompressed() const
Transform localTransform() const
int getIntensityOffset() const
Transform localTransform_
bool hasIntensity() const