Commit 1ace117e authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Improved docs.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 00f83966
Pipeline #25839 failed with stages
in 28 minutes and 20 seconds
......@@ -214,6 +214,8 @@ class Cluster_Learner(object):
# to predict target spectra
for pixVal in cluster_labels:
if pixVal == cmap_nodataVal:
# at nodata positions, the predicted pixel value will also be nodata
# -> don't do anything because im_pred was already initialized as an array full of nodata values
continue
elif pixVal == cmap_unclassifiedVal:
......
......@@ -369,8 +369,6 @@ class RSImage_ClusterPredictor(object):
# type: (Union[np.ndarray, GeoArray], Cluster_Learner, float, float, float, Union[str, int, float], int) -> GeoArray # noqa
"""Apply the prediction function of the given specifier to the given remote sensing image.
# NOTE: The 'nodataVal' is written
:param image: 3D array representing the input image
:param classifier: the classifier instance
:param in_nodataVal: no data value of the input image
......
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