| 
    MRPT
    2.0.4
    
   | 
 
Virtual interface to all pixel-label semantic information structs.
See CObservation3DRangeScan::pixelLabels
Definition at line 24 of file TPixelLabelInfo.h.
#include <mrpt/obs/TPixelLabelInfo.h>
Public Types | |
| using | Ptr = std::shared_ptr< TPixelLabelInfoBase > | 
| Used in CObservation3DRangeScan::pixelLabels.  More... | |
| using | TMapLabelID2Name = std::map< uint32_t, std::string > | 
Public Member Functions | |
| TPixelLabelInfoBase (unsigned int BITFIELD_BYTES_) | |
| virtual | ~TPixelLabelInfoBase () | 
| 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... | |
| virtual void | setSize (const int NROWS, const int NCOLS)=0 | 
| Resizes the matrix pixelLabels to the given size, setting all bitfields to zero (that is, all pixels are assigned NONE category).  More... | |
| virtual void | setLabel (const int row, const int col, uint8_t label_idx)=0 | 
| 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... | |
| virtual void | getLabels (const int row, const int col, uint8_t &labels)=0 | 
| virtual void | unsetLabel (const int row, const int col, uint8_t label_idx)=0 | 
| 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... | |
| virtual void | unsetAll (const int row, const int col, uint8_t label_idx)=0 | 
| Removes all categories for pixel(row,col)  More... | |
| virtual bool | checkLabel (const int row, const int col, uint8_t label_idx) const =0 | 
| Checks whether pixel(row,col) has been clasified into category label_idx, which may be in the range 0 to 7.  More... | |
| void | writeToStream (mrpt::serialization::CArchive &out) const | 
Static Public Member Functions | |
| static TPixelLabelInfoBase * | readAndBuildFromStream (mrpt::serialization::CArchive &in) | 
Public Attributes | |
| 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 | |
| virtual void | internal_readFromStream (mrpt::serialization::CArchive &in)=0 | 
| virtual void | internal_writeToStream (mrpt::serialization::CArchive &out) const =0 | 
| virtual void | Print (std::ostream &) const =0 | 
Friends | |
| std::ostream & | operator<< (std::ostream &out, const TPixelLabelInfoBase &obj) | 
| std stream interface  More... | |
Used in CObservation3DRangeScan::pixelLabels.
Definition at line 33 of file TPixelLabelInfo.h.
| using mrpt::obs::TPixelLabelInfoBase::TMapLabelID2Name = std::map<uint32_t, std::string> | 
Definition at line 34 of file TPixelLabelInfo.h.
      
  | 
  inline | 
Definition at line 26 of file TPixelLabelInfo.h.
      
  | 
  virtualdefault | 
      
  | 
  pure virtual | 
Checks whether pixel(row,col) has been clasified into category label_idx, which may be in the range 0 to 7.
Implemented in mrpt::obs::TPixelLabelInfo< BYTES_REQUIRED_ >.
      
  | 
  inline | 
Check the existence of a label by returning its associated index.
-1 if it does not exist.
Definition at line 54 of file TPixelLabelInfo.h.
References pixelLabelNames.
      
  | 
  inline | 
Definition at line 41 of file TPixelLabelInfo.h.
References pixelLabelNames.
      
  | 
  pure virtual | 
Implemented in mrpt::obs::TPixelLabelInfo< BYTES_REQUIRED_ >.
      
  | 
  protectedpure virtual | 
Implemented in mrpt::obs::TPixelLabelInfo< BYTES_REQUIRED_ >.
Referenced by readAndBuildFromStream().
      
  | 
  protectedpure virtual | 
Implemented in mrpt::obs::TPixelLabelInfo< BYTES_REQUIRED_ >.
      
  | 
  protectedpure virtual | 
Implemented in mrpt::obs::TPixelLabelInfo< BYTES_REQUIRED_ >.
      
  | 
  static | 
Definition at line 61 of file TPixelLabelInfo.cpp.
References internal_readFromStream(), and MRPT_THROW_UNKNOWN_SERIALIZATION_VERSION.
      
  | 
  pure virtual | 
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".
Implemented in mrpt::obs::TPixelLabelInfo< BYTES_REQUIRED_ >.
      
  | 
  inline | 
Definition at line 48 of file TPixelLabelInfo.h.
References pixelLabelNames.
      
  | 
  pure virtual | 
Resizes the matrix pixelLabels to the given size, setting all bitfields to zero (that is, all pixels are assigned NONE category).
Implemented in mrpt::obs::TPixelLabelInfo< BYTES_REQUIRED_ >.
      
  | 
  pure virtual | 
Removes all categories for pixel(row,col)
      
  | 
  pure virtual | 
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".
Implemented in mrpt::obs::TPixelLabelInfo< BYTES_REQUIRED_ >.
| void plib::writeToStream | ( | mrpt::serialization::CArchive & | out | ) | const | 
Definition at line 22 of file TPixelLabelInfo.cpp.
References out.
      
  | 
  friend | 
std stream interface
Definition at line 92 of file TPixelLabelInfo.h.
| const uint8_t mrpt::obs::TPixelLabelInfoBase::BITFIELD_BYTES | 
Minimum number of bytes required to hold MAX_NUM_DIFFERENT_LABELS bits.
Definition at line 101 of file TPixelLabelInfo.h.
| TMapLabelID2Name mrpt::obs::TPixelLabelInfoBase::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.
Definition at line 39 of file TPixelLabelInfo.h.
Referenced by checkLabelNameExistence(), getLabelName(), and setLabelName().
| Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020 |