14 #ifndef YARP_THRIFT_GENERATOR_SERVICE_SEGMENTATIONMODULEINTERFACE_H
15 #define YARP_THRIFT_GENERATOR_SERVICE_SEGMENTATIONMODULEINTERFACE_H
17 #include <yarp/os/Wire.h>
18 #include <yarp/os/idl/WireTypes.h>
38 virtual void set_sigma(
const double newValue);
44 virtual void set_k(
const double newValue);
62 virtual double get_k();
84 virtual std::vector<std::string> help(
const std::string& functionName =
"--all");
87 bool read(yarp::os::ConnectionReader& connection)
override;
Pixel position in the image frame.
Interface for module that performs graph-based segmentation.
virtual std::int32_t get_num_components()
Get the number of segmented components that have been detected in the last provided image.
virtual void set_k(const double newValue)
Set k (scale factor for boundary-detection threshold function) parameter for the algorithm.
virtual double get_sigma()
Get sigma (smoothing) parameter for the algorithm.
virtual void set_sigma(const double newValue)
Set sigma (smoothing) parameter for the algorithm.
virtual double get_minRegion()
Get minRegion parameter for the algorithm, i.e., the minimum size of any segmented component.
virtual double get_k()
Get k (scale factor for boundary-detection threshold function) parameter for the algorithm.
virtual std::vector< Pixel > get_component_around(const Pixel &objCenter)
Get the list of pixels corresponding to the component to which a given pixel belongs.
virtual void set_minRegion(const double newValue)
Set minRegion parameter for the algorithm, i.e., the minimum size of any segmented component.