Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
geomultisens
gms_preprocessing
Commits
b276be50
Commit
b276be50
authored
Apr 10, 2019
by
Daniel Scheffler
Browse files
Fixed _ImageClassifier._label_unclassified_pixels() overwriting nodata values.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
19fcd979
Pipeline
#3888
failed with stage
in 2 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gms_preprocessing/algorithms/classification.py
View file @
b276be50
...
...
@@ -114,7 +114,11 @@ class _ImageClassifier(object):
else
:
raise
ValueError
(
threshold
)
cmap
[
distances
>
threshold
]
=
label_unclassified
mask_unclassified
=
distances
>
threshold
if
cmap_nodataVal
is
not
None
:
mask_unclassified
=
mask_unclassified
&
(
cmap
[:]
!=
cmap_nodataVal
)
cmap
[
mask_unclassified
]
=
label_unclassified
cmap
.
unclassified_val
=
label_unclassified
return
cmap
...
...
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