#include <ellipse_refinement.h>
Classes | |
| class | Ellipse |
| class | Parameter |
Public Member Functions | |
| EllipseRefinement (const Parameter &_param=Parameter()) | |
| bool | refine (const cv::Mat_< short > &im_dx, const cv::Mat_< short > &im_dy, const std::vector< cv::Point2f > &points, Ellipse &ellipse) |
| ~EllipseRefinement () | |
Public Attributes | |
| Parameter | param |
Private Attributes | |
| std::vector< cv::Point2d > | pointsToUse |
Definition at line 16 of file ellipse_refinement.h.
Constructor/ destructor
Definition at line 38 of file ellipse_refinement.cpp.
| tuw::EllipseRefinement::~EllipseRefinement | ( | ) |
Definition at line 44 of file ellipse_refinement.cpp.
| bool tuw::EllipseRefinement::refine | ( | const cv::Mat_< short > & | im_dx, |
| const cv::Mat_< short > & | im_dy, | ||
| const std::vector< cv::Point2f > & | points, | ||
| Ellipse & | ellipse | ||
| ) |
Calculate exact ellipse parameters of the given ellipse using gradient images
| im_dx | image gradients x ( e.g. cv::Sobel( im_gray, im_dx, CV_16S, 1, 0, 3, 1, 0) ) |
| im_dy | image gradients y ( e.g. cv::Sobel( im_gray, im_dx, CV_16S, 0, 1, 3, 1, 0) ) |
| points | contour edgels |
| ellipse | to be refined |
Calculate exact ellipse parameters of the given ellipse hypothesis using gradient images
Definition at line 52 of file ellipse_refinement.cpp.
| Parameter tuw::EllipseRefinement::param |
Definition at line 100 of file ellipse_refinement.h.
|
private |
Definition at line 97 of file ellipse_refinement.h.