SBU-BMI / wsinfer

🔥 🚀 Blazingly fast pipeline for patch-based classification in whole slide images
https://wsinfer.readthedocs.io
Apache License 2.0
59 stars 10 forks source link

[BUG] in sbu conversion, prediction- and color- calculate patches differently #113

Open kaczmarj opened 1 year ago

kaczmarj commented 1 year ago

in email...

Patch locations in prediction-* files are computed using the following coordinate computations:

(df.minx + (df.width / 2)).round().astype(int) (df.miny + (df.height / 2)).round().astype(int)

Patch locations in color-* files were being computed as follows:

df.minx + ((df.minx + df.width) / 2) df.miny + ((df.miny + df.height) / 2)

The coordinate computations are different leading to mismatch between patches in color- and those in prediction-.