Definition at line 430 of file obs/CObservation3DRangeScan.h.
#include <mrpt/obs/CObservation3DRangeScan.h>
Public Types | |
| enum | { BYTES_REQUIRED = BYTES_REQUIRED_ } |
| typedef mrpt::utils::uint_select_by_bytecount< BYTES_REQUIRED >::type | bitmask_t |
| Automatically-determined integer type of the proper size such that all labels fit as one bit (max: 64) More... | |
| typedef Eigen::Matrix< bitmask_t, Eigen::Dynamic, Eigen::Dynamic > | TPixelLabelMatrix |
| Each pixel may be assigned between 0 and MAX_NUM_LABELS-1 'labels' by setting to 1 the corresponding i'th bit [0,MAX_NUM_LABELS-1] in the byte in pixelLabels(r,c). More... | |
| typedef std::map< uint32_t, std::string > | TMapLabelID2Name |
Public Member Functions | |
| void | setSize (const int NROWS, const int NCOLS) MRPT_OVERRIDE |
| Resizes the matrix pixelLabels to the given size, setting all bitfields to zero (that is, all pixels are assigned NONE category). More... | |
| void | setLabel (const int row, const int col, uint8_t label_idx) MRPT_OVERRIDE |
| Mark the pixel(row,col) as classified in the category label_idx, which may be in the range 0 to MAX_NUM_LABELS-1 Note that 0 is a valid label index, it does not mean "no label". More... | |
| void | getLabels (const int row, const int col, uint8_t &labels) MRPT_OVERRIDE |
| void | unsetLabel (const int row, const int col, uint8_t label_idx) MRPT_OVERRIDE |
| For the pixel(row,col), removes its classification into the category label_idx, which may be in the range 0 to 7 Note that 0 is a valid label index, it does not mean "no label". More... | |
| void | unsetAll (const int row, const int col, uint8_t label_idx) MRPT_OVERRIDE |
| Removes all categories for pixel(row,col) More... | |
| bool | checkLabel (const int row, const int col, uint8_t label_idx) const MRPT_OVERRIDE |
| Checks whether pixel(row,col) has been clasified into category label_idx, which may be in the range 0 to 7. More... | |
| TPixelLabelInfo () | |
| const std::string & | getLabelName (unsigned int label_idx) const |
| void | setLabelName (unsigned int label_idx, const std::string &name) |
| int | checkLabelNameExistence (const std::string &name) const |
| Check the existence of a label by returning its associated index. More... | |
| void | writeToStream (mrpt::utils::CStream &out) const |
Static Public Member Functions | |
| static TPixelLabelInfoBase * | readAndBuildFromStream (mrpt::utils::CStream &in) |
Public Attributes | |
| TPixelLabelMatrix | pixelLabels |
| TMapLabelID2Name | pixelLabelNames |
| The 'semantic' or human-friendly name of the i'th bit in pixelLabels(r,c) can be found in pixelLabelNames[i] as a std::string. More... | |
| const uint8_t | BITFIELD_BYTES |
| Minimum number of bytes required to hold MAX_NUM_DIFFERENT_LABELS bits. More... | |
Protected Member Functions | |
| void | internal_readFromStream (mrpt::utils::CStream &in) MRPT_OVERRIDE |
| void | internal_writeToStream (mrpt::utils::CStream &out) const MRPT_OVERRIDE |
| void | Print (std::ostream &out) const MRPT_OVERRIDE |
| typedef mrpt::utils::uint_select_by_bytecount<BYTES_REQUIRED>::type mrpt::obs::CObservation3DRangeScan::TPixelLabelInfo< BYTES_REQUIRED_ >::bitmask_t |
Automatically-determined integer type of the proper size such that all labels fit as one bit (max: 64)
Definition at line 437 of file obs/CObservation3DRangeScan.h.
|
inherited |
Definition at line 368 of file obs/CObservation3DRangeScan.h.
| typedef Eigen::Matrix<bitmask_t,Eigen::Dynamic,Eigen::Dynamic> mrpt::obs::CObservation3DRangeScan::TPixelLabelInfo< BYTES_REQUIRED_ >::TPixelLabelMatrix |
Each pixel may be assigned between 0 and MAX_NUM_LABELS-1 'labels' by setting to 1 the corresponding i'th bit [0,MAX_NUM_LABELS-1] in the byte in pixelLabels(r,c).
That is, each pixel is assigned an 8*BITFIELD_BYTES bit-wide bitfield of possible categories.
Definition at line 444 of file obs/CObservation3DRangeScan.h.
| anonymous enum |
| Enumerator | |
|---|---|
| BYTES_REQUIRED | |
Definition at line 432 of file obs/CObservation3DRangeScan.h.
|
inline |
Definition at line 469 of file obs/CObservation3DRangeScan.h.
|
inlinevirtual |
Checks whether pixel(row,col) has been clasified into category label_idx, which may be in the range 0 to 7.
Implements mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase.
Definition at line 464 of file obs/CObservation3DRangeScan.h.
|
inlineinherited |
Check the existence of a label by returning its associated index.
-1 if it does not exist.
Definition at line 381 of file obs/CObservation3DRangeScan.h.
|
inlineinherited |
Definition at line 373 of file obs/CObservation3DRangeScan.h.
|
inlinevirtual |
Implements mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase.
Definition at line 453 of file obs/CObservation3DRangeScan.h.
|
inlineprotectedvirtual |
Implements mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase.
Definition at line 474 of file obs/CObservation3DRangeScan.h.
|
inlineprotectedvirtual |
Implements mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase.
Definition at line 486 of file obs/CObservation3DRangeScan.h.
|
inlineprotectedvirtual |
Implements mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase.
Definition at line 498 of file obs/CObservation3DRangeScan.h.
|
staticinherited |
Definition at line 1134 of file CObservation3DRangeScan.cpp.
References mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase::internal_readFromStream(), MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION, and version.
Referenced by mrpt::obs::CObservation3DRangeScan::readFromStream().
|
inlinevirtual |
Mark the pixel(row,col) as classified in the category label_idx, which may be in the range 0 to MAX_NUM_LABELS-1 Note that 0 is a valid label index, it does not mean "no label".
Implements mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase.
Definition at line 450 of file obs/CObservation3DRangeScan.h.
|
inlineinherited |
Definition at line 378 of file obs/CObservation3DRangeScan.h.
|
inlinevirtual |
Resizes the matrix pixelLabels to the given size, setting all bitfields to zero (that is, all pixels are assigned NONE category).
Implements mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase.
Definition at line 447 of file obs/CObservation3DRangeScan.h.
|
inlinevirtual |
Removes all categories for pixel(row,col)
Implements mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase.
Definition at line 461 of file obs/CObservation3DRangeScan.h.
|
inlinevirtual |
For the pixel(row,col), removes its classification into the category label_idx, which may be in the range 0 to 7 Note that 0 is a valid label index, it does not mean "no label".
Implements mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase.
Definition at line 458 of file obs/CObservation3DRangeScan.h.
|
inherited |
Definition at line 1120 of file CObservation3DRangeScan.cpp.
References mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase::BITFIELD_BYTES, mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase::internal_writeToStream(), and version.
|
inherited |
Minimum number of bytes required to hold MAX_NUM_DIFFERENT_LABELS bits.
Definition at line 420 of file obs/CObservation3DRangeScan.h.
Referenced by mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase::writeToStream().
|
inherited |
The 'semantic' or human-friendly name of the i'th bit in pixelLabels(r,c) can be found in pixelLabelNames[i] as a std::string.
Definition at line 371 of file obs/CObservation3DRangeScan.h.
| TPixelLabelMatrix mrpt::obs::CObservation3DRangeScan::TPixelLabelInfo< BYTES_REQUIRED_ >::pixelLabels |
Definition at line 445 of file obs/CObservation3DRangeScan.h.
| Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019 |