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
d581e601
Commit
d581e601
authored
13 years ago
by
Julien Malik
Browse files
Options
Downloads
Patches
Plain Diff
BUG: LineSegmentDetector waits for an image with MetadataDictionnary
parent
05f7dd2b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/FeatureExtraction/otbStreamingLineSegmentDetector.txx
+5
-2
5 additions, 2 deletions
Code/FeatureExtraction/otbStreamingLineSegmentDetector.txx
with
5 additions
and
2 deletions
Code/FeatureExtraction/otbStreamingLineSegmentDetector.txx
+
5
−
2
View file @
d581e601
...
@@ -71,15 +71,18 @@ PersistentStreamingLineSegmentDetector<TInputImage>
...
@@ -71,15 +71,18 @@ PersistentStreamingLineSegmentDetector<TInputImage>
typename ExtractImageFilterType::Pointer extract = ExtractImageFilterType::New();
typename ExtractImageFilterType::Pointer extract = ExtractImageFilterType::New();
extract->SetInput( this->GetInput() );
extract->SetInput( this->GetInput() );
extract->SetExtractionRegion( this->GetInput()->GetBufferedRegion() );
extract->SetExtractionRegion( this->GetInput()->GetBufferedRegion() );
extract->Update();
// WARNING: itk::ExtractImageFilter does not copy the MetadataDictionnary
// WARNING: itk::ExtractImageFilter does not copy the MetadataDictionnary
// We are in index coordinates from now on
// but LSD filter need the projection ref if available
extract->GetOutput()->SetMetaDataDictionary(this->GetInput()->GetMetaDataDictionary());
typename LSDType::Pointer lsd = LSDType::New();
typename LSDType::Pointer lsd = LSDType::New();
lsd->SetInput(extract->GetOutput());
lsd->SetInput(extract->GetOutput());
lsd->UpdateOutputInformation();
lsd->UpdateOutputInformation();
lsd->Update();
lsd->Update();
// return the LSD VectorData in image
index
coordinates
// return the LSD VectorData in image
physical
coordinates
return lsd->GetOutput();
return lsd->GetOutput();
}
}
...
...
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