Commit 0e8f15fd authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Bugfix.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 45b133cf
Pipeline #4113 failed with stage
in 2 minutes and 17 seconds
...@@ -662,7 +662,7 @@ def classify_image(image, train_spectra, train_labels, classif_alg, in_nodataVal ...@@ -662,7 +662,7 @@ def classify_image(image, train_spectra, train_labels, classif_alg, in_nodataVal
if not return_distance: if not return_distance:
return cmap return cmap
else: else:
if classif_alg == ['MinDist', 'kNN_MinDist']: if classif_alg in ['MinDist', 'kNN_MinDist']:
dist = clf.euclidian_distance dist = clf.euclidian_distance
elif classif_alg in ['SAM', 'kNN_SAM']: elif classif_alg in ['SAM', 'kNN_SAM']:
dist = clf.angles_deg dist = clf.angles_deg
......
Markdown is supported
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