segmentation
All Data Structures Namespaces Files Functions Variables Modules Pages
SegmentationModuleInterface.h
1 /*
2  * Copyright (C) 2006-2019 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 // Autogenerated by Thrift Compiler (0.12.0-yarped)
10 //
11 // This is an automatically generated file.
12 // It could get re-generated if the ALLOW_IDL_GENERATION flag is on.
13 
14 #ifndef YARP_THRIFT_GENERATOR_SERVICE_SEGMENTATIONMODULEINTERFACE_H
15 #define YARP_THRIFT_GENERATOR_SERVICE_SEGMENTATIONMODULEINTERFACE_H
16 
17 #include <yarp/os/Wire.h>
18 #include <yarp/os/idl/WireTypes.h>
19 #include <Pixel.h>
20 
21 namespace yarp {
22 namespace sig {
23 
28  public yarp::os::Wire
29 {
30 public:
31  // Constructor
33 
38  virtual void set_sigma(const double newValue);
39 
44  virtual void set_k(const double newValue);
45 
50  virtual void set_minRegion(const double newValue);
51 
56  virtual double get_sigma();
57 
62  virtual double get_k();
63 
68  virtual double get_minRegion();
69 
74  virtual std::int32_t get_num_components();
75 
81  virtual std::vector<Pixel> get_component_around(const Pixel& objCenter);
82 
83  // help method
84  virtual std::vector<std::string> help(const std::string& functionName = "--all");
85 
86  // read from ConnectionReader
87  bool read(yarp::os::ConnectionReader& connection) override;
88 };
89 
90 } // namespace yarp
91 } // namespace sig
92 
93 #endif // YARP_THRIFT_GENERATOR_SERVICE_SEGMENTATIONMODULEINTERFACE_H
Pixel position in the image frame.
Definition: Pixel.h:28
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.