fimeval 0.1.43__tar.gz → 0.1.44__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fimeval-0.1.43 → fimeval-0.1.44}/PKG-INFO +2 -2
- {fimeval-0.1.43 → fimeval-0.1.44}/pyproject.toml +1 -1
- {fimeval-0.1.43 → fimeval-0.1.44}/src/fimeval/ContingencyMap/evaluationFIM.py +1 -1
- {fimeval-0.1.43 → fimeval-0.1.44}/src/fimeval/ContingencyMap/printcontingency.py +6 -7
- {fimeval-0.1.43 → fimeval-0.1.44}/LICENSE.txt +0 -0
- {fimeval-0.1.43 → fimeval-0.1.44}/README.md +0 -0
- {fimeval-0.1.43 → fimeval-0.1.44}/src/fimeval/BuildingFootprint/__init__.py +0 -0
- {fimeval-0.1.43 → fimeval-0.1.44}/src/fimeval/BuildingFootprint/evaluationwithBF.py +0 -0
- {fimeval-0.1.43 → fimeval-0.1.44}/src/fimeval/ContingencyMap/PWBs3.py +0 -0
- {fimeval-0.1.43 → fimeval-0.1.44}/src/fimeval/ContingencyMap/__init__.py +0 -0
- {fimeval-0.1.43 → fimeval-0.1.44}/src/fimeval/ContingencyMap/methods.py +0 -0
- {fimeval-0.1.43 → fimeval-0.1.44}/src/fimeval/ContingencyMap/metrics.py +0 -0
- {fimeval-0.1.43 → fimeval-0.1.44}/src/fimeval/ContingencyMap/plotevaluationmetrics.py +0 -0
- {fimeval-0.1.43 → fimeval-0.1.44}/src/fimeval/__init__.py +0 -0
- {fimeval-0.1.43 → fimeval-0.1.44}/src/fimeval/utilis.py +0 -0
|
@@ -226,7 +226,7 @@ def evaluateFIM(
|
|
|
226
226
|
extract_c = np.where(mask2, out_image2, 0)
|
|
227
227
|
extract_c = np.where(extract_c > 0, 1, 0)
|
|
228
228
|
idx_pwc = np.where(extract_c == 1)
|
|
229
|
-
out_image2[idx_pwc] =
|
|
229
|
+
out_image2[idx_pwc] = 5
|
|
230
230
|
out_image2_resized = resize_image(
|
|
231
231
|
out_image2,
|
|
232
232
|
out_transform2,
|
|
@@ -18,7 +18,7 @@ def getContingencyMap(raster_path, method_path):
|
|
|
18
18
|
combined_flood = np.full_like(band1, fill_value=1, dtype=int)
|
|
19
19
|
|
|
20
20
|
# Map pixel values to colors
|
|
21
|
-
combined_flood[band1 ==
|
|
21
|
+
combined_flood[band1 == 5] = 0
|
|
22
22
|
combined_flood[band1 == 0] = 1
|
|
23
23
|
combined_flood[band1 == 1] = 2
|
|
24
24
|
combined_flood[band1 == 2] = 3
|
|
@@ -60,12 +60,11 @@ def getContingencyMap(raster_path, method_path):
|
|
|
60
60
|
|
|
61
61
|
# Create legend patches
|
|
62
62
|
value_labels = {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
5: "True Positive",
|
|
63
|
+
1: "True negative",
|
|
64
|
+
2: "False positive",
|
|
65
|
+
3: "False negative",
|
|
66
|
+
4: "True positive",
|
|
67
|
+
5: "Permanent water bodies"
|
|
69
68
|
}
|
|
70
69
|
legend_patches = [
|
|
71
70
|
Patch(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|