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
0a299656
Commit
0a299656
authored
13 years ago
by
Cyrille Valladeau
Browse files
Options
Downloads
Patches
Plain Diff
ENH: add test ref for ReadImageInfo app + add a seed to the vnl_random
parent
2dda5508
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Applications/Utils/otbReadImageInfo.cxx
+1
-1
1 addition, 1 deletion
Applications/Utils/otbReadImageInfo.cxx
Testing/Applications/Utils/CMakeLists.txt
+20
-4
20 additions, 4 deletions
Testing/Applications/Utils/CMakeLists.txt
with
21 additions
and
5 deletions
Applications/Utils/otbReadImageInfo.cxx
+
1
−
1
View file @
0a299656
...
...
@@ -251,7 +251,7 @@ private:
FloatType
approxGroundSpacing
=
std
::
make_pair
(
itk
::
NumericTraits
<
ValueType
>::
Zero
,
itk
::
NumericTraits
<
ValueType
>::
min
());
FloatVectorImageType
::
IndexType
index
;
vnl_random
rand
;
vnl_random
rand
(
12345
)
;
index
[
0
]
=
static_cast
<
FloatVectorImageType
::
IndexType
::
IndexValueType
>
(
rand
.
lrand32
(
0
,
inImage
->
GetLargestPossibleRegion
().
GetSize
()[
0
]));
index
[
1
]
=
static_cast
<
FloatVectorImageType
::
IndexType
::
IndexValueType
>
(
rand
.
lrand32
(
0
,
inImage
->
GetLargestPossibleRegion
().
GetSize
()[
1
]));
...
...
This diff is collapsed.
Click to expand it.
Testing/Applications/Utils/CMakeLists.txt
+
20
−
4
View file @
0a299656
...
...
@@ -23,21 +23,37 @@ OTB_TEST_APPLICATION(NAME apTvUtSmoothingTest
OTB_TEST_APPLICATION
(
NAME apTvUtReadImageInfoTest
APP ReadImageInfo
OPTIONS -in
${
INPUTDATA
}
/poupees.tif
)
OPTIONS -in
${
INPUTDATA
}
/poupees.tif
TESTENVOPTIONS
${
TEMP
}
/apTvUtReadImageInfoTest.txt
VALID --compare-ascii
${
EPSILON_7
}
${
BASELINE_FILES
}
/apTvUtReadImageInfoTest.txt
${
TEMP
}
/apTvUtReadImageInfoTest.txt
)
IF
(
OTB_DATA_USE_LARGEINPUT
)
OTB_TEST_APPLICATION
(
NAME apTvUtReadImageInfoSpot5
APP ReadImageInfo
OPTIONS -in
${
LARGEDATA
}
/SPOT5/TEHERAN/IMAGERY.TIF
)
OPTIONS -in
${
LARGEDATA
}
/SPOT5/TEHERAN/IMAGERY.TIF
TESTENVOPTIONS
${
TEMP
}
/apTvUtReadImageInfoSpot5.txt
VALID --compare-ascii
${
EPSILON_7
}
${
BASELINE_FILES
}
/apTvUtReadImageInfoSpot5.txt
${
TEMP
}
/apTvUtReadImageInfoSpot5.txt
)
OTB_TEST_APPLICATION
(
NAME apTvUtReadImageInfoERS
APP ReadImageInfo
OPTIONS -in
${
LARGEDATA
}
/SAR_ERS2_SLCI_SCENE1/DAT_01.001
)
OPTIONS -in
${
LARGEDATA
}
/SAR_ERS2_SLCI_SCENE1/DAT_01.001
TESTENVOPTIONS
${
TEMP
}
/apTvUtReadImageInfoERS.txt
VALID --compare-ascii
${
EPSILON_7
}
${
BASELINE_FILES
}
/apTvUtReadImageInfoERS.txt
${
TEMP
}
/apTvUtReadImageInfoERS.txt
)
OTB_TEST_APPLICATION
(
NAME apTvUtReadImageInfoRADARSAT1
APP ReadImageInfo
OPTIONS -in
${
LARGEDATA
}
/RADARSAT1/GOMA/SCENE01/DAT_01.001
)
OPTIONS -in
${
LARGEDATA
}
/RADARSAT1/GOMA/SCENE01/DAT_01.001
TESTENVOPTIONS
${
TEMP
}
/apTvUtReadImageInfoRADARSAT1.txt
VALID --compare-ascii
${
EPSILON_7
}
${
BASELINE_FILES
}
/apTvUtReadImageInfoRADARSAT1.txt
${
TEMP
}
/apTvUtReadImageInfoRADARSAT1.txt
)
ENDIF
(
OTB_DATA_USE_LARGEINPUT
)
...
...
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