|
Img2Num C++ (Internal Developer Docs) dev
API Documentation
|
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 |
| ColoredContours & | get_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< XY > | m_edge_pixels {} |
|
inline |
|
inline |
| void Node::add_edge_pixel | ( | const XY | edge_pixel | ) |
| void Node::add_pixels | ( | const std::vector< RGBXY > & | new_pixels | ) |
|
inline |
| std::array< int32_t, 4 > Node::bounding_box_xywh | ( | ) | const |
Definition at line 54 of file node.cpp.
| XY Node::centroid | ( | ) | const |
Definition at line 9 of file node.cpp.
| void Node::clear_all | ( | ) |
| void Node::clear_contour | ( | void | ) |
| void Node::clear_edge_pixels | ( | ) |
| ImageLib::RGBPixel< uint8_t > Node::color | ( | ) | const |
Definition at line 29 of file node.cpp.
| void Node::compute_contour | ( | void | ) |
Definition at line 128 of file node.cpp.
| std::array< int, 4 > Node::create_binary_image | ( | std::vector< uint8_t > & | binary | ) | const |
Definition at line 99 of file node.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| ColoredContours Node::m_contours |