|
SMACC2
|
#include <cp_table_segmenter.hpp>


Public Member Functions | |
| CpTableSegmenter (const SegmenterParams ¶ms) | |
| ~CpTableSegmenter () override | |
| void | onInitialize () override |
| void | setParams (const SegmenterParams ¶ms) |
| SegmenterParams | params () const |
| void | setReference (const cv::Mat &bgr) |
| bool | hasReference () const |
| cv::Mat | foreground (const cv::Mat &bgr, const cv::Mat &tableMask) const |
Public Member Functions inherited from smacc2::ISmaccComponent | |
| ISmaccComponent () | |
| virtual | ~ISmaccComponent () |
| ISmaccComponent (const ISmaccComponent &)=delete | |
| ISmaccComponent & | operator= (const ISmaccComponent &)=delete |
| ISmaccComponent (ISmaccComponent &&)=delete | |
| ISmaccComponent & | operator= (ISmaccComponent &&)=delete |
| virtual std::string | getName () const |
Private Attributes | |
| std::mutex | mutex_ |
| SegmenterParams | params_ |
| cv::Mat | reference_ |
Additional Inherited Members | |
Protected Member Functions inherited from smacc2::ISmaccComponent | |
| template<typename TOrthogonal , typename TClient > | |
| void | onComponentInitialization () |
| template<typename EventType > | |
| void | postEvent (const EventType &ev) |
| template<typename EventType > | |
| void | postEvent () |
| template<typename TOrthogonal , typename TSourceObject > | |
| void | onStateOrthogonalAllocation () |
| template<typename TComponent > | |
| void | requiresComponent (TComponent *&requiredComponentStorage, ComponentRequirement requirementType=ComponentRequirement::SOFT) |
| template<typename TComponent > | |
| void | requiresComponent (const std::string &name, TComponent *&requiredComponentStorage, ComponentRequirement requirementType=ComponentRequirement::SOFT) |
| template<typename TClient > | |
| void | requiresClient (TClient *&requiredClientStorage) |
| template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
| SmaccComponentType * | createSiblingComponent (const TArgs &... targs) |
| template<typename SmaccComponentType , typename TOrthogonal , typename TClient , typename... TArgs> | |
| SmaccComponentType * | createSiblingNamedComponent (const std::string &name, const TArgs &... targs) |
| rclcpp::Node::SharedPtr | getNode () |
| rclcpp::Logger | getLogger () const |
| ISmaccStateMachine * | getStateMachine () |
Protected Attributes inherited from smacc2::ISmaccComponent | |
| ISmaccStateMachine * | stateMachine_ = nullptr |
| ISmaccClient * | owner_ = nullptr |
Definition at line 30 of file cp_table_segmenter.hpp.
|
explicit |
Definition at line 22 of file cp_table_segmenter.cpp.
|
override |
Definition at line 24 of file cp_table_segmenter.cpp.
| cv::Mat cl_rgb::CpTableSegmenter::foreground | ( | const cv::Mat & | bgr, |
| const cv::Mat & | tableMask ) const |
Definition at line 72 of file cp_table_segmenter.cpp.
References mutex_, params(), reference_, cl_rgb::segmentAgainstReference(), and cl_rgb::segmentForeground().
Referenced by cl_rgb::CbSurveyTable::onEntry().


| bool cl_rgb::CpTableSegmenter::hasReference | ( | ) | const |
Definition at line 54 of file cp_table_segmenter.cpp.
References mutex_, and reference_.
|
overridevirtual |
Reimplemented from smacc2::ISmaccComponent.
Definition at line 26 of file cp_table_segmenter.cpp.
References smacc2::ISmaccComponent::getLogger(), params(), cl_rgb::SegmenterParams::referenceImagePath, and setReference().

| SegmenterParams cl_rgb::CpTableSegmenter::params | ( | ) | const |
Definition at line 66 of file cp_table_segmenter.cpp.
References mutex_, and params_.
Referenced by foreground(), onInitialize(), and setParams().

| void cl_rgb::CpTableSegmenter::setParams | ( | const SegmenterParams & | params | ) |
| void cl_rgb::CpTableSegmenter::setReference | ( | const cv::Mat & | bgr | ) |
Definition at line 48 of file cp_table_segmenter.cpp.
References mutex_, and reference_.
Referenced by onInitialize().

|
mutableprivate |
Definition at line 49 of file cp_table_segmenter.hpp.
Referenced by foreground(), hasReference(), params(), setParams(), and setReference().
|
private |
Definition at line 50 of file cp_table_segmenter.hpp.
Referenced by params(), and setParams().
|
private |
Definition at line 51 of file cp_table_segmenter.hpp.
Referenced by foreground(), hasReference(), and setReference().