John-P / wsic

Whole Slide image (WSI) conversion for brightfield histology images
MIT License
31 stars 4 forks source link

Incorrect MPP resolution handling from JP2 image #54

Closed himekifee closed 1 year ago

himekifee commented 1 year ago

Description

By inspecting the jp2 metadata I see the Capture X Resolution is 36364 and the unit is cm. The corresponding MPP is 0.275 图片 However, In the code, the resolution box reads 3636400 and an MPP of approx. 0.00275. image2 image3

What I Did

wsic convert -i in.jp2 -o out.tiff -rt 4096 4096 -w 2 --no-ome --overwrite -to 180 -c jpeg -cl 95 -d 2 -d 4 -d 8
John-P commented 1 year ago

This should be fixed shortly in the line PR. Thank you for identifying this.