Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Youssefi
otb
Commits
10dc27a4
Commit
10dc27a4
authored
14 years ago
by
Aurélien Bricier
Browse files
Options
Downloads
Patches
Plain Diff
ENH: better algorithm parametrization
parent
b199a4cc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/FeatureExtraction/otbLineSegmentDetector.txx
+5
-5
5 additions, 5 deletions
Code/FeatureExtraction/otbLineSegmentDetector.txx
with
5 additions
and
5 deletions
Code/FeatureExtraction/otbLineSegmentDetector.txx
+
5
−
5
View file @
10dc27a4
...
...
@@ -53,9 +53,9 @@ LineSegmentDetector<TInputImage, TPrecision>
::LineSegmentDetector()
{
m_DirectionsAllowed = 1. /
8
.;
m_DirectionsAllowed = 1. /
16
.;
m_Prec = CONST_PI * m_DirectionsAllowed;
m_Threshold = 2
.
;
m_Threshold =
5.
2;
/** Compute the modulus and the orientation gradient images */
m_GradientFilter = GradientFilterType::New();
...
...
@@ -108,7 +108,7 @@ LineSegmentDetector<TInputImage, TPrecision>
/** Compute the modulus and the orientation gradient image*/
m_GradientFilter->SetInput(castFilter->GetOutput());
m_GradientFilter->SetSigma(
1
.3);
m_GradientFilter->SetSigma(
0
.3);
m_MagnitudeFilter->SetInput(m_GradientFilter->GetOutput());
m_OrientationFilter->SetInput(m_GradientFilter->GetOutput());
...
...
@@ -169,10 +169,10 @@ LineSegmentDetector<TInputImage, TPrecision>
max = minmaxCalculator->GetMaximum();
/** Compute the threshold on the gradient*/
m_Threshold =
4 *
m_Threshold
/ vcl_sin(m_Prec)
* ((max - min) / 255.); // threshold normalized with min & max of the values
m_Threshold = m_Threshold * ((max - min) / 255.); // threshold normalized with min & max of the values
/** Computing the length of the bins*/
unsigned int NbBin = 10;
unsigned int NbBin = 10
24
;
double lengthBin = static_cast<double>((max - min)) / static_cast<double>(NbBin - 1);
CoordinateHistogramType tempHisto(NbBin); /** Initializing the histogram */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment