#include <DLEllipseDetect.h>
Public Member Functions | |
DLEllipseDetect () | |
DLEllipseDetect (DLImage &image, DL_BYTE mag_thres, double image_shrink_ratio, int area_min_pixel, int area_max_pixel, float axis_ratio_max, float y_center0=0, float y_center1=1.0, float x_center0=0, float x_center1=1.0, int ny_center=100, int nx_center=100, int narea=100) | |
virtual | ~DLEllipseDetect () |
void | dlDrawEllipseRegion (DLImage &outputImage, DL3DBin *bins, int binIndex, enum DLColorMapValue markerColor=DL_RED1) |
list < DLEllipseCandidate > | dlGetDetectedEllipses () |
DLEllipseDetect::DLEllipseDetect | ( | ) | [inline] |
Default DLEllipseDetect Constructor
DLEllipseDetect::DLEllipseDetect | ( | DLImage & | image, | |
DL_BYTE | mag_thres, | |||
double | image_shrink_ratio, | |||
int | area_min_pixel, | |||
int | area_max_pixel, | |||
float | axis_ratio_max, | |||
float | y_center0 = 0 , |
|||
float | y_center1 = 1.0 , |
|||
float | x_center0 = 0 , |
|||
float | x_center1 = 1.0 , |
|||
int | ny_center = 100 , |
|||
int | nx_center = 100 , |
|||
int | narea = 100 | |||
) |
DLEllipseDetect Constructor
Detects elliptic and complex shape objects from input images and return a list detected ellipses with their corresponding confidence values.
image | DLImage input image | |
mag_thres | DL_BYTE threshold value used for evaluating the edge magnitude image. Edges with magnitude weaker than this value are ignored. Its valid range is [1, 255] | |
image_shrink_ratio | double the image shrink ratio (>=1) |
area_min_pixel | int the minimum area of the elliptic objects in pixel square in original input image | |
area_max_pixel | int the maximum area of the elliptic objects in pixel square in original input image | |
axis_ratio_max | float the maximum possible ratio of the lengths of the major axis to the minor axis |
y_center0 | float starting position in row, valid range [0, 1.0] | |
y_center1 | float ending position in row, valid range [0, 1.0] | |
x_center0 | float starting position in column, valid range [0, 1.0] | |
x_center1 | float ending position in column, valid range [0, 1.0] |
ny_center | int the number of distinctive accumulator bins for ellipse center in row direction | |
nx_center | int the number of distinctive accumulator bins for ellipse center in column direction | |
narea | int the number of distinctive accumulator bins for ellipse area |
virtual DLEllipseDetect::~DLEllipseDetect | ( | ) | [inline, virtual] |
Default DLEllipseDetect Destructor
void DLEllipseDetect::dlDrawEllipseRegion | ( | DLImage & | outputImage, | |
DL3DBin * | bins, | |||
int | binIndex, | |||
enum DLColorMapValue | markerColor = DL_RED1 | |||
) |
Draw colored bounding boxes around the specified ellipse candidates
outputImage | DLImage output color image | |
bins | DL3DBin* to 3-dimensional accumulator bins | |
binIndex | int the index of the 3-dimensional accumulator bin | |
markerColor | DLColorType the color of the plotted bounding box |
list<DLEllipseCandidate> DLEllipseDetect::dlGetDetectedEllipses | ( | ) | [inline] |
Return the list of ellipse candidates