55 virtual bool read(yarp::os::ConnectionReader& connection)
60 printf(
"Got %s\n", b.toString().c_str());
64 xKeep = b.get(0).asInt32();
65 yKeep = b.get(1).asInt32();
70 if (b.get(0).asInt32() < xKeep || b.get(1).asInt32() < yKeep)
81 w = b.get(0).asInt32() - x;
82 h = b.get(1).asInt32() - y;
111 yarp::dev::IRGBDSensor *iRGBDSensor;
112 yarp::os::BufferedPort<yarp::sig::ImageOf<yarp::sig::PixelMono16> > *pOutImg;
113 yarp::os::Port *pOutPort;
115 std::string algorithm;
120 int outFeaturesFormat;
125 double fx_d,fy_d,cx_d,cy_d,fx_rgb,fy_rgb,cx_rgb,cy_rgb;
127 yarp::os::Bottle outFeatures;
130 yarp::os::BufferedPort<yarp::sig::ImageOf<yarp::sig::PixelRgb> >* outCropSelectorImg;
131 yarp::os::Port* inCropSelectorPort;
135 int searchAreaDilatation;
136 float depthLowThreshold;
137 float depthHighThreshold;
138 int occupancyThreshold;
140 float utilityDepthLowThreshold;
141 float utilityDepthHighThreshold;
142 int numberUtilityVoxels;
144 float highWThreshold;
146 float highHThreshold;
150 void setIRGBDSensor(yarp::dev::IRGBDSensor * _iRGBDSensor);
151 void setOutImg(yarp::os::BufferedPort<yarp::sig::ImageOf<yarp::sig::PixelMono16> > * _pOutImg);
152 void setOutPort(yarp::os::Port *_pOutPort);
153 void init(yarp::os::ResourceFinder &rf);
156 void setCropSelector(
int cropSelector) { this->cropSelector = cropSelector; }
157 void setOutCropSelectorImg(yarp::os::BufferedPort<yarp::sig::ImageOf<yarp::sig::PixelRgb> >* outCropSelectorImg) { this->outCropSelectorImg = outCropSelectorImg; }
158 void setInCropSelectorPort(yarp::os::Port* inCropSelectorPort) { this->inCropSelectorPort = inCropSelectorPort; }