You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having difficulty getting pystackreg to work for a simple example where I rotate the same square image by 90 degrees and try to register the rotation back to the original.
I'm using pystackreg version 0.2.7, python 3.8.12, and a macOS-10.16-x86_64-i386-64bit
I'm having similar issues on other images (all from histopathology). I've tried a few simple things like binarizing the images (i.e. tissue vs. background) or changing the datatypes (np.uint8, float), but nothing helps. My issue is perhaps similar to this issue.
Reproducible example
Here is the original RGB image so you can run the below code yourself
Thanks for reporting and thanks for providing the detailed example!
pystackreg (and StackReg/TurboReg, for that matter) do indeed not correctly process such strongly rotated images and I'm afraid I don't think I'm able to provide a quick methodologic fix.
I have encountered a similiar situation in a project with images that were sometimes rotated by 180° and my approach was to first determine the correlation between source and target and then between source and target-rotated-by-180° and based on these decide (automatically) whether to rotate the target image before registration.
I hope this helps. Let me know if you have a better solution.
I'm having difficulty getting pystackreg to work for a simple example where I rotate the same square image by 90 degrees and try to register the rotation back to the original.
I'm using pystackreg version 0.2.7, python 3.8.12, and a macOS-10.16-x86_64-i386-64bit
I'm having similar issues on other images (all from histopathology). I've tried a few simple things like binarizing the images (i.e. tissue vs. background) or changing the datatypes (np.uint8, float), but nothing helps. My issue is perhaps similar to this issue.
Reproducible example
Here is the original RGB image so you can run the below code yourself
Some setup
Try registering
Now lets try registering the rotated image
The text was updated successfully, but these errors were encountered: