Definition at line 621 of file CObservation3DRangeScan.h.
#include <mrpt/obs/CObservation3DRangeScan.h>
Public Types | |
enum | { BYTES_REQUIRED = BYTES_REQUIRED_ } |
using | Ptr = std::shared_ptr< TPixelLabelInfo > |
using | bitmask_t = typename mrpt::uint_select_by_bytecount< BYTES_REQUIRED >::type |
Automatically-determined integer type of the proper size such that all labels fit as one bit (max: 64) More... | |
using | TPixelLabelMatrix = Eigen::Matrix< bitmask_t, Eigen::Dynamic, Eigen::Dynamic > |
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... | |
using | TMapLabelID2Name = std::map< uint32_t, std::string > |
Public Member Functions | |
void | setSize (const int NROWS, const int NCOLS) 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) 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) override |
void | unsetLabel (const int row, const int col, uint8_t label_idx) 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) override |
Removes all categories for pixel(row,col) More... | |
bool | checkLabel (const int row, const int col, uint8_t label_idx) const 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::serialization::CArchive &out) const |
Static Public Member Functions | |
static TPixelLabelInfoBase * | readAndBuildFromStream (mrpt::serialization::CArchive &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::serialization::CArchive &in) override |
void | internal_writeToStream (mrpt::serialization::CArchive &out) const override |
void | Print (std::ostream &out) const override |
using mrpt::obs::CObservation3DRangeScan::TPixelLabelInfo< BYTES_REQUIRED_ >::bitmask_t = typename mrpt::uint_select_by_bytecount<BYTES_REQUIRED>::type |
Automatically-determined integer type of the proper size such that all labels fit as one bit (max: 64)
Definition at line 632 of file CObservation3DRangeScan.h.
using mrpt::obs::CObservation3DRangeScan::TPixelLabelInfo< BYTES_REQUIRED_ >::Ptr = std::shared_ptr<TPixelLabelInfo> |
Definition at line 623 of file CObservation3DRangeScan.h.
|
inherited |
Definition at line 531 of file CObservation3DRangeScan.h.
using mrpt::obs::CObservation3DRangeScan::TPixelLabelInfo< BYTES_REQUIRED_ >::TPixelLabelMatrix = Eigen::Matrix<bitmask_t, Eigen::Dynamic, Eigen::Dynamic> |
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 643 of file CObservation3DRangeScan.h.
anonymous enum |
Enumerator | |
---|---|
BYTES_REQUIRED |
Definition at line 624 of file CObservation3DRangeScan.h.
|
inline |
Definition at line 676 of file CObservation3DRangeScan.h.
|
inlineoverridevirtual |
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 668 of file CObservation3DRangeScan.h.
References mrpt::obs::CObservation3DRangeScan::TPixelLabelInfo< BYTES_REQUIRED_ >::pixelLabels.
|
inlineinherited |
Check the existence of a label by returning its associated index.
-1 if it does not exist.
Definition at line 553 of file CObservation3DRangeScan.h.
References mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase::pixelLabelNames.
|
inlineinherited |
Definition at line 538 of file CObservation3DRangeScan.h.
References mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase::pixelLabelNames.
|
inlineoverridevirtual |
Implements mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase.
Definition at line 654 of file CObservation3DRangeScan.h.
References mrpt::obs::CObservation3DRangeScan::TPixelLabelInfo< BYTES_REQUIRED_ >::pixelLabels.
|
overrideprotectedvirtual |
Implements mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase.
Definition at line 1230 of file CObservation3DRangeScan.cpp.
|
overrideprotectedvirtual |
Implements mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase.
Definition at line 1243 of file CObservation3DRangeScan.cpp.
|
inlineoverrideprotectedvirtual |
Implements mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase.
Definition at line 683 of file CObservation3DRangeScan.h.
References mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase::pixelLabelNames, and mrpt::obs::CObservation3DRangeScan::TPixelLabelInfo< BYTES_REQUIRED_ >::pixelLabels.
|
staticinherited |
Definition at line 1256 of file CObservation3DRangeScan.cpp.
References mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase::internal_readFromStream(), and MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION.
Referenced by mrpt::obs::CObservation3DRangeScan::serializeFrom().
|
inlineoverridevirtual |
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 650 of file CObservation3DRangeScan.h.
References mrpt::obs::CObservation3DRangeScan::TPixelLabelInfo< BYTES_REQUIRED_ >::pixelLabels.
|
inlineinherited |
Definition at line 547 of file CObservation3DRangeScan.h.
References mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase::pixelLabelNames.
|
inlineoverridevirtual |
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 646 of file CObservation3DRangeScan.h.
References mrpt::obs::CObservation3DRangeScan::TPixelLabelInfo< BYTES_REQUIRED_ >::pixelLabels.
|
inlineoverridevirtual |
Removes all categories for pixel(row,col)
Implements mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase.
Definition at line 664 of file CObservation3DRangeScan.h.
References mrpt::obs::CObservation3DRangeScan::TPixelLabelInfo< BYTES_REQUIRED_ >::pixelLabels.
|
inlineoverridevirtual |
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 659 of file CObservation3DRangeScan.h.
References mrpt::obs::CObservation3DRangeScan::TPixelLabelInfo< BYTES_REQUIRED_ >::pixelLabels.
|
inherited |
Definition at line 1217 of file CObservation3DRangeScan.cpp.
|
inherited |
Minimum number of bytes required to hold MAX_NUM_DIFFERENT_LABELS bits.
Definition at line 610 of file CObservation3DRangeScan.h.
|
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 536 of file CObservation3DRangeScan.h.
Referenced by mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase::checkLabelNameExistence(), mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase::getLabelName(), mrpt::obs::CObservation3DRangeScan::TPixelLabelInfo< BYTES_REQUIRED_ >::Print(), and mrpt::obs::CObservation3DRangeScan::TPixelLabelInfoBase::setLabelName().
TPixelLabelMatrix mrpt::obs::CObservation3DRangeScan::TPixelLabelInfo< BYTES_REQUIRED_ >::pixelLabels |
Definition at line 644 of file CObservation3DRangeScan.h.
Referenced by mrpt::obs::CObservation3DRangeScan::TPixelLabelInfo< BYTES_REQUIRED_ >::checkLabel(), mrpt::obs::CObservation3DRangeScan::TPixelLabelInfo< BYTES_REQUIRED_ >::getLabels(), mrpt::obs::CObservation3DRangeScan::TPixelLabelInfo< BYTES_REQUIRED_ >::Print(), mrpt::obs::CObservation3DRangeScan::TPixelLabelInfo< BYTES_REQUIRED_ >::setLabel(), mrpt::obs::CObservation3DRangeScan::TPixelLabelInfo< BYTES_REQUIRED_ >::setSize(), mrpt::obs::CObservation3DRangeScan::TPixelLabelInfo< BYTES_REQUIRED_ >::unsetAll(), and mrpt::obs::CObservation3DRangeScan::TPixelLabelInfo< BYTES_REQUIRED_ >::unsetLabel().
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST |