Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
iota2-project
iota2
Commits
45e813bb
Commit
45e813bb
authored
May 10, 2016
by
ArthurVincent
Browse files
ENH : sort list of classification and their confidence map -> nodata.py
parent
ac8f7aba
Changes
2
Hide whitespace changes
Inline
Side-by-side
data/Config_4Tiles_L8.cfg
View file @
45e813bb
...
...
@@ -51,7 +51,7 @@ argClassification:
fusionOptions :'-undecidedlabel 0 -nodatalabel 0 -method majorityvoting'
pixType : 'uint8'
confusionModel : False #True or False
noLabelManagement : '
M
axConfidence'#
M
axConfidence or learningPriority
noLabelManagement : '
m
axConfidence'#
m
axConfidence or learningPriority
}
################################################################################################
...
...
scripts/common/noData.py
View file @
45e813bb
...
...
@@ -179,8 +179,13 @@ def noData(pathTest,pathFusion,fieldRegion,pathToImg,pathToRegion,N,pathConf,pat
for
seed
in
range
(
N
):
imgConfidence
=
fu
.
FileSearch_AND
(
pathTest
+
"/classif"
,
True
,
"confidence_seed_"
+
str
(
seed
)
+
".tif"
,
currentTile
)
imgClassif
=
fu
.
FileSearch_AND
(
pathTest
+
"/classif"
,
True
,
"Classif_"
+
currentTile
,
"seed_"
+
str
(
seed
))
print
"------------------------------"
print
imgConfidence
print
imgClassif
imgConfidence
.
sort
()
imgClassif
.
sort
()
print
imgConfidence
print
imgClassif
exp
,
il
=
buildConfidenceExp
(
pathFusion
,
imgConfidence
,
imgClassif
)
imgData
=
pathDirectory
+
"/"
+
currentTile
+
"_FUSION_NODATA_seed"
+
str
(
seed
)
+
".tif"
...
...
Write
Preview
Supports
Markdown
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