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
ffa8be7c
Commit
ffa8be7c
authored
6 years ago
by
Cédric Traizet
Browse files
Options
Downloads
Patches
Plain Diff
ENH: remove dummy tests
parent
06561db9
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
Modules/Core/Functor/test/otbFunctorImageFilter.cxx
+0
-48
0 additions, 48 deletions
Modules/Core/Functor/test/otbFunctorImageFilter.cxx
with
0 additions
and
48 deletions
Modules/Core/Functor/test/otbFunctorImageFilter.cxx
+
0
−
48
View file @
ffa8be7c
...
...
@@ -301,34 +301,6 @@ template<typename T> struct MaxInEachChannel
};
// 1 Image with neighborhood of VariableLengthVector -> 1 image
// this is a dummy functor that returns the first element of the vector at the
// center of the neighborhood
template
<
typename
T
>
struct
NeighborhoodVecInScalOut
{
auto
operator
()(
const
itk
::
ConstNeighborhoodIterator
<
otb
::
VectorImage
<
T
>>
&
in
)
const
{
float
out
=
in
.
GetCenterPixel
()[
0
];
return
out
;
}
};
template
<
typename
T
>
struct
NeighborhoodArrayInScalOut
{
auto
operator
()(
const
itk
::
ConstNeighborhoodIterator
<
otb
::
Image
<
itk
::
FixedArray
<
T
,
2
>>>
&
in
)
const
{
float
out
=
in
.
GetCenterPixel
()[
0
];
return
out
;
}
};
template
<
typename
T
>
struct
VectorModulus
{
itk
::
VariableLengthVector
<
double
>
operator
()(
const
itk
::
VariableLengthVector
<
std
::
complex
<
T
>>
&
in
)
const
...
...
@@ -474,26 +446,6 @@ int otbFunctorImageFilter(int itkNotUsed(argc), char * itkNotUsed(argv) [])
maxInEachChannel
->
SetInputs
(
vimage
);
maxInEachChannel
->
Update
();
using
NeighborhoodVecInScalOutType
=
NeighborhoodVecInScalOut
<
double
>
;
auto
neighborhoodVecInScalOut
=
NewFunctorFilter
(
NeighborhoodVecInScalOutType
{},
{{
3
,
3
}});
neighborhoodVecInScalOut
->
SetInputs
(
vimage
);
neighborhoodVecInScalOut
->
Update
();
using
ArrayImageType
=
Image
<
itk
::
FixedArray
<
double
,
2
>>
;
auto
arrayImage
=
ArrayImageType
::
New
();
arrayImage
->
SetRegions
(
size
);
arrayImage
->
Allocate
();
itk
::
FixedArray
<
double
,
2
>
array
;
array
.
Fill
(
0
);
arrayImage
->
FillBuffer
(
array
);
using
NeighborhoodArrayInScalOutType
=
NeighborhoodArrayInScalOut
<
double
>
;
auto
neighborhoodArrayInScalOut
=
NewFunctorFilter
(
NeighborhoodArrayInScalOutType
{},
{{
3
,
3
}});
neighborhoodArrayInScalOut
->
SetInputs
(
arrayImage
);
neighborhoodArrayInScalOut
->
Update
();
// Test FunctorImageFilter with Module (complex=
using
ModulusType
=
VectorModulus
<
double
>
;
auto
modulus
=
NewFunctorFilter
(
ModulusType
{});
...
...
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