You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, the code is very good! But I have some questions.
In you main.cpp, detector short segments use follow params
// Gaussian kernel size
int ksize = 5;
// Sigma of the gaussian kernel
float sigma = 1;
// The threshold of pixel gradient magnitude.
// Only those pixels whose gradient magnitude are larger than
// this threshold will be taken as possible edge points.
float gradientThreshold = 30;
// If the pixel's gradient value is bigger than both of its neighbors by a
// certain anchorThreshold, the pixel is marked to be an anchor.
uint8_t anchorThreshold = 8;
// Anchor testing can be performed at different scan intervals, i.e.,
// every row/column, every second row/column
unsigned int scanIntervals = 2;
// Minimum line segment length
int minLineLen = 15;
// Threshold used to check if a list of edge points for a line segment
double lineFitErrThreshold = 0.2;
// Threshold used to check if a new pixel is part of an already fit line segment
double pxToSegmentDistTh = 1.5;
// Threshold used to validate the junction jump region. The first eigenvalue of the gradient
// auto-correlation matrix should be at least junctionEigenvalsTh times bigger than the second eigenvalue
double junctionEigenvalsTh = 10;
// the difference between the perpendicular segment direction and the direction of the gradient
// in the region to be validated must be less than junctionAngleTh radians
double junctionAngleTh = 10 * (M_PI / 180.0);
// The threshold over the validation criteria. For ELSED, it is the gradient angular error in pixels.
double validationTh = 0.15;
// Whether to validate or not the generated segments
bool validate = true;
// Whether to jump over junctions
bool treatJunctions = true;
// List of junction size that will be tested (in pixels)
std::vector<int> listJunctionSizes = {5, 7, 9};
when you detect large segments. what is the params?
The text was updated successfully, but these errors were encountered:
Hii, thanks a lot for your interest. All the parameters are the same except the listJunctionSizes by an empty list, this prevents the algorithm from trying to jump at gradient discontinuities and therefore, it detects only short segments:
Hi, the code is very good! But I have some questions.
In you
main.cpp
, detector short segments use follow paramswhen you detect large segments. what is the params?
The text was updated successfully, but these errors were encountered: