ScrollPrize / vesuvius

Python library for accessing Vesuvius Challenge data
MIT License
13 stars 1 forks source link

Different inklabel format across segments #5

Open jgcarrasco opened 3 weeks ago

jgcarrasco commented 3 weeks ago

I noticed that some segments return grayscale inklabels (i.e. of shape (height x width)) whereas other return RGB images (e.g. (height, width, 3)). For example:

volume_1 = Volume(20230827161847, normalize=True, cache=True)
volume_2 = Volume(20231210121321, normalize=True, cache=True)
print(volume_1.inklabel.shape, volume_2.inklabel.shape) # ((9216, 5120), (15872, 12544, 3))

I think that this is not a problem of the library itself, but of the format of the inklabels stored in https://dl.ash2txt.org/other/dev/scrolls/1/segments/54keV_7.91um/. Reuploading the inklabels in the same format should fix the issue.