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
6fbfc264
Commit
6fbfc264
authored
17 years ago
by
Cyrille Valladeau
Browse files
Options
Downloads
Patches
Plain Diff
oups... oubli d'un bout de commit.
parent
c57568f7
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
Testing/Code/BasicFilters/otbWindowedSincInterpolateImageFunction.cxx
+1
-43
1 addition, 43 deletions
.../BasicFilters/otbWindowedSincInterpolateImageFunction.cxx
with
1 addition
and
43 deletions
Testing/Code/BasicFilters/otbWindowedSincInterpolateImageFunction.cxx
+
1
−
43
View file @
6fbfc264
...
...
@@ -166,49 +166,7 @@ int otbWindowedSincInterpolateImageFunction(int argc, char * argv[])
}
file
.
close
();
/**********************************************/
typedef
otb
::
StreamingImageFileWriter
<
ImageType
>
WriterType
;
typedef
itk
::
TranslationTransform
<
double
,
2
>
TransformType
;
typedef
otb
::
StreamingResampleImageFilter
<
ImageType
,
ImageType
,
double
>
StreamingResampleImageFilterType
;
// Instantiating object
WriterType
::
Pointer
writer
=
WriterType
::
New
();
StreamingResampleImageFilterType
::
Pointer
resampler
=
StreamingResampleImageFilterType
::
New
();
TransformType
::
Pointer
transform
=
TransformType
::
New
();
// Resampler connected to input image
resampler
->
SetInput
(
reader
->
GetOutput
());
// Size of output resampler result
StreamingResampleImageFilterType
::
SizeType
size
;
size
[
0
]
=
600
;
size
[
1
]
=
600
;
resampler
->
SetSize
(
size
);
resampler
->
SetInterpolatorNeighborhoodRadius
(
atoi
(
argv
[
3
]));
resampler
->
SetInterpolator
(
gauss
);
// Transformation creation
TransformType
::
OutputVectorType
translation
;
translation
[
0
]
=
100
;
translation
[
1
]
=
200
;
transform
->
SetOffset
(
translation
);
// Resampler is updated with new transformation (default is identity)
resampler
->
SetTransform
(
transform
);
// Result of resampler is written
writer
->
SetInput
(
resampler
->
GetOutput
());
writer
->
SetNumberOfStreamDivisions
(
1
);
writer
->
SetFileName
(
"tutu.tif"
);
writer
->
Update
();
return
EXIT_SUCCESS
;
}
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