Commit 45e813bb authored by ArthurVincent's avatar ArthurVincent
Browse files

ENH : sort list of classification and their confidence map -> nodata.py

parent ac8f7aba
...@@ -51,7 +51,7 @@ argClassification: ...@@ -51,7 +51,7 @@ argClassification:
fusionOptions :'-undecidedlabel 0 -nodatalabel 0 -method majorityvoting' fusionOptions :'-undecidedlabel 0 -nodatalabel 0 -method majorityvoting'
pixType : 'uint8' pixType : 'uint8'
confusionModel : False #True or False confusionModel : False #True or False
noLabelManagement : 'MaxConfidence'#MaxConfidence or learningPriority noLabelManagement : 'maxConfidence'#maxConfidence or learningPriority
} }
################################################################################################ ################################################################################################
......
...@@ -179,8 +179,13 @@ def noData(pathTest,pathFusion,fieldRegion,pathToImg,pathToRegion,N,pathConf,pat ...@@ -179,8 +179,13 @@ def noData(pathTest,pathFusion,fieldRegion,pathToImg,pathToRegion,N,pathConf,pat
for seed in range(N): for seed in range(N):
imgConfidence=fu.FileSearch_AND(pathTest+"/classif",True,"confidence_seed_"+str(seed)+".tif",currentTile) 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)) imgClassif=fu.FileSearch_AND(pathTest+"/classif",True,"Classif_"+currentTile,"seed_"+str(seed))
print "------------------------------"
print imgConfidence
print imgClassif
imgConfidence.sort() imgConfidence.sort()
imgClassif.sort() imgClassif.sort()
print imgConfidence
print imgClassif
exp,il = buildConfidenceExp(pathFusion,imgConfidence,imgClassif) exp,il = buildConfidenceExp(pathFusion,imgConfidence,imgClassif)
imgData = pathDirectory+"/"+currentTile+"_FUSION_NODATA_seed"+str(seed)+".tif" imgData = pathDirectory+"/"+currentTile+"_FUSION_NODATA_seed"+str(seed)+".tif"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment