Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
273
Issues
273
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
2ce19c7e
Commit
2ce19c7e
authored
Nov 20, 2020
by
Guillaume Pasero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: ResetMargin app support vector images
parent
e6d8e3f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Modules/Applications/AppImageUtils/app/otbResetMargin.cxx
Modules/Applications/AppImageUtils/app/otbResetMargin.cxx
+5
-5
No files found.
Modules/Applications/AppImageUtils/app/otbResetMargin.cxx
View file @
2ce19c7e
...
...
@@ -141,8 +141,8 @@ private:
void
DoExecute
()
override
{
Float
ImageType
*
input
=
GetParameterFloat
Image
(
"in"
);
FloatImageType
::
RegionType
region
;
Float
VectorImageType
*
input
=
GetParameterFloatVector
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"
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment