Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
geomultisens
specclassify
Commits
46609f1b
Commit
46609f1b
authored
Dec 16, 2021
by
Daniel Scheffler
Browse files
Fix one remaining data type.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
e41e7e3d
Pipeline
#36292
passed with stages
in 6 minutes and 53 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
specclassify/classifiers/sam.py
View file @
46609f1b
...
...
@@ -60,7 +60,7 @@ class SAM_Classifier(_ImageClassifier):
# normalize input data because SAM asserts only data between -1 and 1
train_spectra_norm
,
tileimdata_norm
=
normalize_endmembers_image
(
endmembers
,
image
)
angles
=
np
.
zeros
((
image
.
shape
[
0
],
image
.
shape
[
1
],
n_samples
),
np
.
float
)
angles
=
np
.
zeros
((
image
.
shape
[
0
],
image
.
shape
[
1
],
n_samples
),
float
)
# if np.std(tileimdata) == 0: # skip tiles that only contain the same value
# loop over all training spectra and compute spectral angle for each pixel
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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