Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
V4R::EllipsesDetection Class Reference

#include <v4r_ellipses.h>

Inheritance diagram for V4R::EllipsesDetection:
Inheritance graph
[legend]

List of all members.

Classes

class  Ellipse
class  Marker
class  ObliqueCone
struct  Parameters

Public Types

enum  DetectionState {
  VALID = 0, NA = 1, INVALID_CONTOUR_POINTS, INVALID_CONTOUR_CONVEX,
  INVALID_ROTATED_RECT_RATIO, INVALID_CONTOUR_MEAN, INVALID_MIN_RAIDUS, INVALID_MAX_RAIDUS,
  INVALID_NO_RING, INVALID_IS_INNER_RING, INVALID_ELLIPSE
}
enum  EdgeDetection { EDGE_DETECTION_THRESHOLD = 0, EDGE_DETECTION_CANNY = 1 }
enum  EdgeLinking {
  EDGE_LINKING_OPENCV_APPROX_NONE = 0, EDGE_LINKING_OPENCV_APPROX_SIMPLE = 1, EDGE_LINKING_V4R_SIMPLE = 2, EDGE_LINKING_V4R_COMPLEX = 3,
  EDGE_LINKING_V4R_CONTOUR = 4
}
enum  PoseEstimation { POSE_ESTIMATION_OFF = 0, POSE_ESTIMATION_SOLVEPNP = 1, POSE_ESTIMATION_FROM_ELLIPSE = 2 }

Public Member Functions

 EllipsesDetection (Parameters *parm)
 ~EllipsesDetection ()

Protected Member Functions

void contour_detection ()
void createEllipseCanditates ()
void createRings ()
void draw_ellipses (cv::Mat &m)
void edge_detection (const cv::Mat &m)
DetectionState EllipseRedefinement (Ellipse &ellipse)
void estimatePoses ()
DetectionState filterContour (Ellipse &ellipse)
DetectionState filterContourMean (Ellipse &ellipse)
DetectionState filterEllipse (Ellipse &ellipse)
void filterShapes ()
void fit_ellipses_opencv (const cv::Mat &m, const cv::Mat cameraMatrix, const cv::Mat distCoeffs, const cv::Mat projectionMatrix, const boost::posix_time::ptime &tstamp)
void next ()

Protected Attributes

V4R::Camera camera_
V4R::Contour contour_detector_
std::vector< std::vector
< cv::Point > > 
contours_
std::vector< Ellipseellipses_
cv::Mat imgBlured_
cv::Mat imgDirection_
cv::Mat imgEdges_
cv::Mat imgGradient_
cv::Mat imgGray_
cv::Mat imgSobelDx_
cv::Mat imgSobelDy_
cv::Mat_< cv::Point2f > lookupUndistor_
unsigned long loop_count
std::list< Markermarkers_
Parametersparam_
boost::posix_time::ptime tstamp_
boost::posix_time::ptime tstampLast_

Detailed Description

Definition at line 36 of file v4r_ellipses.h.


Member Enumeration Documentation

Enumerator:
VALID 
NA 
INVALID_CONTOUR_POINTS 
INVALID_CONTOUR_CONVEX 
INVALID_ROTATED_RECT_RATIO 
INVALID_CONTOUR_MEAN 
INVALID_MIN_RAIDUS 
INVALID_MAX_RAIDUS 
INVALID_NO_RING 
INVALID_IS_INNER_RING 
INVALID_ELLIPSE 

Definition at line 38 of file v4r_ellipses.h.

Enumerator:
EDGE_DETECTION_THRESHOLD 
EDGE_DETECTION_CANNY 

Definition at line 56 of file v4r_ellipses.h.

Enumerator:
EDGE_LINKING_OPENCV_APPROX_NONE 
EDGE_LINKING_OPENCV_APPROX_SIMPLE 
EDGE_LINKING_V4R_SIMPLE 
EDGE_LINKING_V4R_COMPLEX 
EDGE_LINKING_V4R_CONTOUR 

Definition at line 60 of file v4r_ellipses.h.

Enumerator:
POSE_ESTIMATION_OFF 
POSE_ESTIMATION_SOLVEPNP 
POSE_ESTIMATION_FROM_ELLIPSE 

Definition at line 51 of file v4r_ellipses.h.


Constructor & Destructor Documentation

Definition at line 38 of file v4r_ellipses.cpp.

Definition at line 33 of file v4r_ellipses.cpp.


Member Function Documentation

Definition at line 94 of file v4r_ellipses.cpp.

Definition at line 42 of file v4r_ellipses.cpp.

void EllipsesDetection::createRings ( ) [protected]

Definition at line 190 of file v4r_ellipses.cpp.

void EllipsesDetection::draw_ellipses ( cv::Mat &  m) [protected]

Matlab Debug output

Definition at line 29 of file v4r_ellipses_draw.cpp.

void EllipsesDetection::edge_detection ( const cv::Mat &  m) [protected]

Definition at line 81 of file v4r_ellipses.cpp.

Definition at line 169 of file v4r_ellipses.cpp.

void EllipsesDetection::estimatePoses ( ) [protected]

Definition at line 253 of file v4r_ellipses.cpp.

Definition at line 69 of file v4r_ellipses.cpp.

Definition at line 224 of file v4r_ellipses.cpp.

Definition at line 180 of file v4r_ellipses.cpp.

void EllipsesDetection::fit_ellipses_opencv ( const cv::Mat &  m,
const cv::Mat  cameraMatrix,
const cv::Mat  distCoeffs,
const cv::Mat  projectionMatrix,
const boost::posix_time::ptime &  tstamp 
) [protected]

Definition at line 123 of file v4r_ellipses.cpp.

void EllipsesDetection::next ( ) [protected]

Definition at line 218 of file v4r_ellipses.cpp.


Member Data Documentation

Definition at line 186 of file v4r_ellipses.h.

Definition at line 185 of file v4r_ellipses.h.

std::vector< std::vector<cv::Point> > V4R::EllipsesDetection::contours_ [protected]

Definition at line 173 of file v4r_ellipses.h.

std::vector<Ellipse> V4R::EllipsesDetection::ellipses_ [protected]

Definition at line 174 of file v4r_ellipses.h.

Definition at line 176 of file v4r_ellipses.h.

Definition at line 179 of file v4r_ellipses.h.

cv::Mat V4R::EllipsesDetection::imgEdges_ [protected]

Definition at line 177 of file v4r_ellipses.h.

Definition at line 178 of file v4r_ellipses.h.

cv::Mat V4R::EllipsesDetection::imgGray_ [protected]

Definition at line 175 of file v4r_ellipses.h.

Definition at line 180 of file v4r_ellipses.h.

Definition at line 181 of file v4r_ellipses.h.

cv::Mat_<cv::Point2f> V4R::EllipsesDetection::lookupUndistor_ [protected]

Definition at line 182 of file v4r_ellipses.h.

unsigned long V4R::EllipsesDetection::loop_count [protected]

Definition at line 184 of file v4r_ellipses.h.

std::list<Marker> V4R::EllipsesDetection::markers_ [protected]

Definition at line 183 of file v4r_ellipses.h.

Definition at line 159 of file v4r_ellipses.h.

boost::posix_time::ptime V4R::EllipsesDetection::tstamp_ [protected]

Definition at line 187 of file v4r_ellipses.h.

boost::posix_time::ptime V4R::EllipsesDetection::tstampLast_ [protected]

Definition at line 188 of file v4r_ellipses.h.


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


v4r_ellipses
Author(s):
autogenerated on Wed Aug 26 2015 16:41:40