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
Julien Cabieces
otb
Commits
e00416f8
Commit
e00416f8
authored
9 years ago
by
Julien Michel
Browse files
Options
Downloads
Patches
Plain Diff
PERF: Optimize WarpImageFilter by avoiding refcount bouncing
parent
0a0765f1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Modules/ThirdParty/ITK/include/otbWarpImageFilter.h
+1
-1
1 addition, 1 deletion
Modules/ThirdParty/ITK/include/otbWarpImageFilter.h
Modules/ThirdParty/ITK/include/otbWarpImageFilter.txx
+2
-3
2 additions, 3 deletions
Modules/ThirdParty/ITK/include/otbWarpImageFilter.txx
with
3 additions
and
4 deletions
Modules/ThirdParty/ITK/include/otbWarpImageFilter.h
+
1
−
1
View file @
e00416f8
...
...
@@ -257,7 +257,7 @@ private:
/** This function should be in an interpolator but none of the ITK
* interpolators at this point handle edge conditions properly
*/
DisplacementType
EvaluateDisplacementAtPhysicalPoint
(
const
PointType
&
p
);
DisplacementType
EvaluateDisplacementAtPhysicalPoint
(
const
PointType
&
p
,
const
DisplacementFieldType
*
fieldPtr
);
PixelType
m_EdgePaddingValue
;
SpacingType
m_OutputSpacing
;
...
...
This diff is collapsed.
Click to expand it.
Modules/ThirdParty/ITK/include/otbWarpImageFilter.txx
+
2
−
3
View file @
e00416f8
...
...
@@ -214,9 +214,8 @@ typename WarpImageFilter<TInputImage,
TOutputImage,
TDisplacementField>::DisplacementType
WarpImageFilter<TInputImage,TOutputImage,TDisplacementField>
::EvaluateDisplacementAtPhysicalPoint(const PointType &point)
::EvaluateDisplacementAtPhysicalPoint(const PointType &point
, const DisplacementFieldType *fieldPtr
)
{
DisplacementFieldPointer fieldPtr = this->GetDisplacementField();
itk::ContinuousIndex<double,ImageDimension> index;
fieldPtr->TransformPhysicalPointToContinuousIndex(point,index);
unsigned int dim; // index over dimension
...
...
@@ -377,7 +376,7 @@ WarpImageFilter<TInputImage,TOutputImage,TDisplacementField>
index = outputIt.GetIndex();
outputPtr->TransformIndexToPhysicalPoint( index, point );
displacement = this->EvaluateDisplacementAtPhysicalPoint(point);
displacement = this->EvaluateDisplacementAtPhysicalPoint(
point
, fieldPtr
);
// compute the required input image point
for(unsigned int j = 0; j < ImageDimension; j++ )
{
...
...
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