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
9b987df1
Commit
9b987df1
authored
14 years ago
by
Manuel Grizonnet
Browse files
Options
Downloads
Patches
Plain Diff
TEST:add test with extract roi after rx to put expose residual problems
parent
24c79d02
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Testing/CMakeLists.txt
+12
-0
12 additions, 0 deletions
Testing/CMakeLists.txt
Testing/LocalRxDetectorRoiTest.cxx
+7
-8
7 additions, 8 deletions
Testing/LocalRxDetectorRoiTest.cxx
Testing/otbAnomalyTests1.cxx
+1
-0
1 addition, 0 deletions
Testing/otbAnomalyTests1.cxx
with
20 additions
and
8 deletions
Testing/CMakeLists.txt
+
12
−
0
View file @
9b987df1
...
...
@@ -162,6 +162,7 @@ ADD_TEST(hyVCA_AVIRIS
SET
(
otbAnomalyTests1_SRC
LocalRxDetectorTest.cxx
LocalRxDetectorRoiTest.cxx
#LocalRxDetectorNonTrhreadedTest.cxx
#LocalRxDetectorRoiNonThreadedTest.cxx
)
...
...
@@ -182,3 +183,14 @@ ADD_TEST(tvLocalRXDetector
7
1
)
ADD_TEST
(
tvLocalRXDetectorROI
${
TESTEXE_DIR
}
/otbAnomalyTests1
LocalRXDetectorROITest
${
DATA
}
/CupriteSubHsi/cupriteSubHsi.tif
${
TEMP
}
/localRXROICupriteSubHsi.tif
7
1
60
60
)
This diff is collapsed.
Click to expand it.
Testing/LocalRxDetectorRoiTest.cxx
+
7
−
8
View file @
9b987df1
...
...
@@ -7,7 +7,7 @@
#include
"otbExtractROI.h"
int
main
(
int
argc
,
char
*
argv
[])
int
LocalRXDetectorROITest
(
int
argc
,
char
*
argv
[])
{
typedef
double
PixelType
;
typedef
otb
::
VectorImage
<
PixelType
,
2
>
VectorImageType
;
...
...
@@ -23,14 +23,13 @@ int main(int argc, char * argv[])
//--------------- Parameters ------------------//
const
char
*
filename
=
argv
[
1
];
const
char
*
outputFilename
=
argv
[
2
];
const
int
externalRadius
=
atoi
(
argv
[
3
]);
const
int
internalRadius
=
atoi
(
argv
[
4
]);
const
char
*
filename
=
"cupriteSubHsi.tif"
;
const
char
*
outputFilename
=
"roiTest.tif"
;
const
int
externalRadius
=
7
;
const
int
internalRadius
=
1
;
const
int
nbCol
=
atoi
(
argv
[
1
]);
const
int
nbRow
=
atoi
(
argv
[
2
]);
const
int
nbCol
=
atoi
(
argv
[
5
]);
const
int
nbRow
=
atoi
(
argv
[
6
]);
const
int
idxCol
=
0
;
const
int
idxRow
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Testing/otbAnomalyTests1.cxx
+
1
−
0
View file @
9b987df1
...
...
@@ -25,4 +25,5 @@ void RegisterTests()
{
REGISTER_TEST
(
LocalRXDetectorNewTest
);
REGISTER_TEST
(
LocalRXDetectorTest
);
REGISTER_TEST
(
LocalRXDetectorROITest
);
}
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