HLR  0.0.1
Public Member Functions | List of all members
HLR::Vision::ICupDetector Class Referenceabstract

Can detect cups using the Kinect color and depth camera. This class allows its user to detect cups in a depth image of the Kinect. It also offers an interface to get the latest frames from the three Camera's the Kinect offers. More...

#include <ICupDetector.hpp>

Inheritance diagram for HLR::Vision::ICupDetector:
Collaboration diagram for HLR::Vision::ICupDetector:

Public Member Functions

 ICupDetector ()=default
 Default constructor.
 
virtual ~ICupDetector ()=default
 Default destructor.
 
 ICupDetector (ICupDetector &&cup_detector)=default
 Default move constructor. More...
 
 ICupDetector (const ICupDetector &cup_detector)=default
 Default copy constructor. More...
 
ICupDetectoroperator= (const ICupDetector &cup_detector)=default
 Default assignment operator. More...
 
ICupDetectoroperator= (ICupDetector &&cup_detector)=default
 default move assignment operator More...
 
virtual CupDetection detect_cups ()=0
 Detects cups using the Kinect Detects cups using the camera's of the Kinect. This function returns the location of the detected cups in the depth image of the Kinect. More...
 
virtual std::shared_ptr< cv::Mat > get_detected_cups_image ()=0
 Returns an image wich has outlined and identified the detected cups. More...
 
virtual std::shared_ptr< cv::Mat > get_latest_depth_frame ()=0
 Returns the latest depth frame of the Kinect. More...
 
virtual std::shared_ptr< cv::Mat > get_latest_ir_frame ()=0
 Returns the latest IR frame of the Kinect IR camera. More...
 
virtual std::shared_ptr< cv::Mat > get_latest_color_frame ()=0
 Returns the latest color frame of the Kinect color camera. More...
 

Detailed Description

Can detect cups using the Kinect color and depth camera. This class allows its user to detect cups in a depth image of the Kinect. It also offers an interface to get the latest frames from the three Camera's the Kinect offers.

Constructor & Destructor Documentation

HLR::Vision::ICupDetector::ICupDetector ( ICupDetector &&  cup_detector)
default

Default move constructor.

Parameters
cup_detector
HLR::Vision::ICupDetector::ICupDetector ( const ICupDetector cup_detector)
default

Default copy constructor.

Parameters
cup_detector

Member Function Documentation

virtual CupDetection HLR::Vision::ICupDetector::detect_cups ( )
pure virtual

Detects cups using the Kinect Detects cups using the camera's of the Kinect. This function returns the location of the detected cups in the depth image of the Kinect.

Returns
CupDetection The location of the detected cups in the depth image of the Kinect.

Implemented in HLR::Vision::MockCupDetector, and HLR::Vision::CupDetector.

virtual std::shared_ptr<cv::Mat> HLR::Vision::ICupDetector::get_detected_cups_image ( )
pure virtual

Returns an image wich has outlined and identified the detected cups.

Returns an image wich has outlined and identified the detected cups. In this image a square is drawn around the contour of the detected cups and a number is displayed above each of the detected cups.

Returns
std::shared_ptr<cv::Mat> An image wich has outlined and identified the detected cups.

Implemented in HLR::Vision::MockCupDetector, and HLR::Vision::CupDetector.

virtual std::shared_ptr<cv::Mat> HLR::Vision::ICupDetector::get_latest_color_frame ( )
pure virtual

Returns the latest color frame of the Kinect color camera.

Returns
std::shared_ptr<cv::Mat> The latest color frame of the Kinect color camera.

Implemented in HLR::Vision::MockCupDetector, and HLR::Vision::CupDetector.

virtual std::shared_ptr<cv::Mat> HLR::Vision::ICupDetector::get_latest_depth_frame ( )
pure virtual

Returns the latest depth frame of the Kinect.

Returns
std::shared_ptr<cv::Mat> Latest depth frame of the Kinect.

Implemented in HLR::Vision::MockCupDetector, and HLR::Vision::CupDetector.

virtual std::shared_ptr<cv::Mat> HLR::Vision::ICupDetector::get_latest_ir_frame ( )
pure virtual

Returns the latest IR frame of the Kinect IR camera.

Returns
std::shared_ptr<cv::Mat> Latest IR frame of the Kinect IR camera.

Implemented in HLR::Vision::MockCupDetector, and HLR::Vision::CupDetector.

ICupDetector& HLR::Vision::ICupDetector::operator= ( const ICupDetector cup_detector)
default

Default assignment operator.

Parameters
cup_detectorobject to assign
Returns
ICupDetector&
ICupDetector& HLR::Vision::ICupDetector::operator= ( ICupDetector &&  cup_detector)
default

default move assignment operator

Parameters
cup_detector
Returns
ICupDetector&

The documentation for this class was generated from the following file: