Skip to content

Match Ycbcr TIFF decoding to rasterio/libtiff #266

@kylebarron

Description

@kylebarron

Currently we have two python tests that don't have exactly the same decoded values as rasterio/libtiff.

# Ycbcr subsampling not implemented
# ("rio-tiler", "cog_rgb_with_stats"),
("umbra", "sydney_airport_GEC"),
# Ycbcr subsampling not implemented
# ("vantor", "maxar_opendata_yellowstone_visual"),

E       AssertionError:
E       Arrays are not equal
E
E       Mismatched elements: 7858 / 49152 (16%)
E       Max absolute difference among violations: 4
E       Max relative difference among violations: 0.33333333
E        ACTUAL: array([[[141, 146, 139],
E               [141, 146, 139],
E               [160, 163, 154],...
E        DESIRED: array([[[141, 146, 139],
E               [141, 146, 139],
E               [160, 163, 154],...

E       AssertionError:
E       Arrays are not equal
E
E       Mismatched elements: 212 / 12288 (1.73%)
E       Max absolute difference among violations: 3
E       Max relative difference among violations: 0.0483871
E        ACTUAL: array([[[54, 75, 56],
E               [59, 80, 61],
E               [64, 85, 66],...
E        DESIRED: array([[[54, 75, 56],
E               [59, 80, 61],
E               [64, 85, 66],...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions