Img2Num C++ (Internal Developer Docs)  dev
API Documentation
Node Class Reference
+ Collaboration diagram for Node:

Public Member Functions

 Node (int32_t id, std::unique_ptr< std::vector< RGBXY >> &pixels)
 
XY centroid () const
 
ImageLib::RGBPixel< uint8_t > color () const
 
std::array< int32_t, 4 > bounding_box_xywh () const
 
std::array< int, 4 > create_binary_image (std::vector< uint8_t > &binary) const
 
void clear_contour ()
 
void compute_contour ()
 
int32_t id () const
 
size_t area () const
 
const std::set< Node_ptr > & edges () const
 
size_t num_edges () const
 
const std::vector< RGBXY > & get_pixels () const
 
ColoredContoursget_contours ()
 
void add_pixels (const std::vector< RGBXY > &new_pixels)
 
void add_edge_pixel (const XY edge_pixel)
 
void clear_edge_pixels ()
 
void clear_all ()
 
void add_edge (const Node_ptr &node)
 
void remove_edge (const Node_ptr &node)
 
void remove_all_edges ()
 

Public Attributes

ColoredContours m_contours
 

Protected Attributes

int32_t m_id
 
std::unique_ptr< std::vector< RGBXY > > m_pixels
 
std::set< Node_ptr > m_edges {}
 
std::set< XYm_edge_pixels {}
 

Detailed Description

Definition at line 65 of file node.h.


The documentation for this class was generated from the following files: