paip-2019 / challenge

30 stars 10 forks source link

Issue regarding the shape of submitted file for task 1 #37

Closed haranrk closed 5 years ago

haranrk commented 5 years ago
Screenshot 2019-08-20 at 9 37 59 AM Screenshot 2019-08-20 at 9 37 37 AM

The shape of my file seems to be consistent with the level '0' dimension of the slide image as reported by open slide. However, the system rejected my submission stating that the shape required is the transpose of the level '0' dimensions.

hjoonjang commented 5 years ago

Hi, @haranrk As far as I know, openslide shows dimensions in WxH (X-Y) manner, which is the opposite of the common numpy shape orders, HxW (Y-X). So if you try to read the WSI dimensions with numpy.ndarray method, I think you will see what has been going on, though the reading procedure might be tricky. (FYI, pyvips library supports more straightforward usages to load WSIs.) Please check your output shape compared to the original dimensions.

Thank you, Hyungjoon

haranrk commented 5 years ago

Yes, that makes sense. I was able to submit by transposing the image.