Segmentation Module. More...
#include <SegmModule.h>
Public Member Functions | |
virtual bool | configure (yarp::os::ResourceFinder &rf) |
virtual bool | close () |
virtual bool | interruptModule () |
virtual bool | updateModule () |
bool | attach (yarp::os::Port &source) |
virtual void | set_sigma (const double newValue) |
Set sigma (smoothing) parameter for the algorithm. More... | |
virtual void | set_k (const double newValue) |
Set k (scale factor for boundary-detection threshold function) parameter for the algorithm. More... | |
virtual void | set_minRegion (const double newValue) |
Set minRegion parameter for the algorithm, i.e., the minimum size of any segmented component. More... | |
virtual double | get_sigma () |
Get sigma (smoothing) parameter for the algorithm. More... | |
virtual double | get_k () |
Get k (scale factor for boundary-detection threshold function) parameter for the algorithm. More... | |
virtual double | get_minRegion () |
Get minRegion parameter for the algorithm, i.e., the minimum size of any segmented component. More... | |
virtual int32_t | get_num_components () |
Get the number of segmented components that have been detected in the last provided image. More... | |
virtual std::vector< yarp::sig::Pixel > | get_component_around (const yarp::sig::Pixel &objCenter) |
Get the list of pixels corresponding to the component to which a given pixel belongs. More... | |
virtual std::vector< std::string > | help (const std::string &functionName="--all") |
bool | read (yarp::os::ConnectionReader &connection) override |
Segmentation Module.
Definition at line 31 of file SegmModule.h.
|
virtual |
Get the list of pixels corresponding to the component to which a given pixel belongs.
objCenter | a pixel belonging to the region of interest |
Reimplemented from yarp::sig::SegmentationModuleInterface.
Definition at line 71 of file SegmModule.cpp.
References yarp::sig::Pixel::x, and yarp::sig::Pixel::y.
|
virtual |
Get k (scale factor for boundary-detection threshold function) parameter for the algorithm.
Reimplemented from yarp::sig::SegmentationModuleInterface.
Definition at line 68 of file SegmModule.cpp.
|
virtual |
Get minRegion parameter for the algorithm, i.e., the minimum size of any segmented component.
Reimplemented from yarp::sig::SegmentationModuleInterface.
Definition at line 69 of file SegmModule.cpp.
|
virtual |
Get the number of segmented components that have been detected in the last provided image.
Reimplemented from yarp::sig::SegmentationModuleInterface.
Definition at line 70 of file SegmModule.cpp.
|
virtual |
Get sigma (smoothing) parameter for the algorithm.
Reimplemented from yarp::sig::SegmentationModuleInterface.
Definition at line 67 of file SegmModule.cpp.
|
virtual |
Set k (scale factor for boundary-detection threshold function) parameter for the algorithm.
newValue | new value for k parameter |
Reimplemented from yarp::sig::SegmentationModuleInterface.
Definition at line 65 of file SegmModule.cpp.
|
virtual |
Set minRegion parameter for the algorithm, i.e., the minimum size of any segmented component.
newValue | new value for minRegion parameter |
Reimplemented from yarp::sig::SegmentationModuleInterface.
Definition at line 66 of file SegmModule.cpp.
|
virtual |
Set sigma (smoothing) parameter for the algorithm.
newValue | new value for sigma parameter |
Reimplemented from yarp::sig::SegmentationModuleInterface.
Definition at line 64 of file SegmModule.cpp.