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
Container Registry
Model registry
Operate
Environments
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
Main Repositories
otb
Commits
d5c3c7aa
Commit
d5c3c7aa
authored
17 years ago
by
Julien Michel
Browse files
Options
Downloads
Patches
Plain Diff
tentative de correction pb de streaming
parent
f94b7542
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Fusion/otbBayesianFusionFilter.txx
+17
-1
17 additions, 1 deletion
Code/Fusion/otbBayesianFusionFilter.txx
with
17 additions
and
1 deletion
Code/Fusion/otbBayesianFusionFilter.txx
+
17
−
1
View file @
d5c3c7aa
...
...
@@ -68,6 +68,10 @@ namespace otb
TOutputImage>
::BeforeThreadedGenerateData ()
{
OutputImageRegionType msiRequestedRegion = this->GetMultiSpectInterp()->GetRequestedRegion();
OutputImageRegionType msRequestedRegion = this->GetMultiSpect()->GetRequestedRegion();
OutputImageRegionType panchroRequestedRegion = this->GetPanchro()->GetRequestedRegion();
// Allocate output
typename OutputImageType::Pointer output = this->GetOutput();
typename InputMultiSpectralImageType::Pointer multiSpec = const_cast<InputMultiSpectralImageType *>(this->GetMultiSpect());
...
...
@@ -91,13 +95,15 @@ namespace otb
covComputefilter->SetInput(multiSpecInterp);
covComputefilter->Update();
MatrixType m_CovarianceMatrix = covComputefilter->GetCovariance();
m_CovarianceInvMatrix = m_CovarianceMatrix.GetInverse();
/** Beta computation : Regression model coefficient */
// MatrixTransform only support vectorimage input
typename CasterType::Pointer caster = CasterType::New();
caster->SetInput(panchro);
caster->Update();
//
caster->Update();
// Compute the transpose multispectral image multiplied by itself
typename MSTransposeMSType::Pointer msTransposeMs = MSTransposeMSType::New();
// Compute the transpose multispectral image multiplied by the panchromatic one
...
...
@@ -262,6 +268,16 @@ namespace otb
this->GetFunctor().SetCovarianceInvMatrix(m_CovarianceInvMatrix);
this->GetFunctor().SetLambda(m_Lambda);
this->GetFunctor().SetS(m_S);
// Restore the previous buffered data
multiSpecInterp->SetRequestedRegion(msiRequestedRegion);
multiSpecInterp->PropagateRequestedRegion();
multiSpecInterp->UpdateOutputData();
multiSpec->SetRequestedRegion(msRequestedRegion);
multiSpec->PropagateRequestedRegion();
multiSpec->UpdateOutputData();
}
} // end namespace otb
...
...
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