diff --git a/tools/extract/leonida/classify.py b/tools/extract/leonida/classify.py index af1e12f..95285f3 100644 --- a/tools/extract/leonida/classify.py +++ b/tools/extract/leonida/classify.py @@ -3,7 +3,7 @@ from scipy import ndimage as ndi from skimage.color import rgb2lab PALETTE = { - "wasser": (44, 103, 164), + "wasser": (48, 144, 192), # gemessen im Mosaik; tiles.py nennt die Kompositionsfarbe "land": (192, 216, 128), "gruen": (139, 195, 74), "sand": (232, 216, 136), @@ -15,7 +15,7 @@ PALETTE = { } CLASSES = {name: i for i, name in enumerate(PALETTE)} UNKNOWN = 255 -MAX_DELTA_E = 14.0 # darĂ¼ber gilt ein Pixel als unbekannt (Beschriftung, Icon, Kante) +MAX_DELTA_E = 22.0 # darĂ¼ber unbekannt; deckt den Tiefenverlauf des Wassers mit ab def classify(rgb: np.ndarray, report_unknown: bool = False):