ome / omero-romio

Gradle project for the ROMIO library of OMERO
GNU General Public License v2.0
0 stars 13 forks source link

PixelBuffer resolution levels in unexpected order #20

Open mtbc opened 4 years ago

mtbc commented 4 years ago

It's not easy to figure out from the PixelBuffer Javadoc how to use instances, e.g., what should be expected from the byte-swapping that is mentioned, which way around the data will end up. More critically, getResolutionDescriptions suggests that the indices of the return value have,

the resolution level matching the index of the outer index

but in my experiments with instances of BfPixelBuffer and BfPyramidPixelBuffer they are in the opposite order. For example, with 77917.svs the last item of the description list is [1024, 482] which is the resolution I get from setResolution(0).