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 Osman
otb
Commits
2ce19c7e
Commit
2ce19c7e
authored
4 years ago
by
Guillaume Pasero
Browse files
Options
Downloads
Patches
Plain Diff
ENH: ResetMargin app support vector images
parent
e6d8e3f6
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
Modules/Applications/AppImageUtils/app/otbResetMargin.cxx
+5
-5
5 additions, 5 deletions
Modules/Applications/AppImageUtils/app/otbResetMargin.cxx
with
5 additions
and
5 deletions
Modules/Applications/AppImageUtils/app/otbResetMargin.cxx
+
5
−
5
View file @
2ce19c7e
...
...
@@ -141,8 +141,8 @@ private:
void
DoExecute
()
override
{
FloatImageType
*
input
=
GetParameterFloatImage
(
"in"
);
FloatImageType
::
RegionType
region
;
Float
Vector
ImageType
*
input
=
GetParameterFloat
Vector
Image
(
"in"
);
Float
Vector
ImageType
::
RegionType
region
;
switch
(
GetParameterInt
(
"mode"
))
{
case
0
:
// roi
...
...
@@ -154,8 +154,8 @@ private:
case
1
:
// threshold
{
region
=
input
->
GetLargestPossibleRegion
();
FloatImageType
::
IndexType
idx
=
region
.
GetIndex
();
FloatImageType
::
SizeType
sz
=
region
.
GetSize
();
Float
Vector
ImageType
::
IndexType
idx
=
region
.
GetIndex
();
Float
Vector
ImageType
::
SizeType
sz
=
region
.
GetSize
();
int
thrX
=
GetParameterInt
(
"threshold.x"
);
int
thrYtop
=
GetParameterInt
(
"threshold.y.start"
);
int
thrYbot
=
GetParameterInt
(
"threshold.y.end"
);
...
...
@@ -172,7 +172,7 @@ private:
}
}
auto
filter
=
ResetMarginFilter
<
FloatImageType
>::
New
();
auto
filter
=
ResetMarginFilter
<
Float
Vector
ImageType
>::
New
();
filter
->
SetROI
(
region
);
filter
->
SetInput
(
input
);
filter
->
SetPaddingValue
(
GetParameterFloat
(
"val"
));
...
...
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