-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix downsampling issue #69
base: master
Are you sure you want to change the base?
Conversation
Just changing this line fixes the issue with the TileConfiguration reported here : https://forum.image.sc/t/fusion-of-label-images-using-downsampling/73150
I would be fine but I don't have any files to test the other types which is why I asked if there was a reason to keep it only for 5 and 7. |
@lguerard wrote in #38 (comment)
The There's actually two code paths, for grid type
So while the fix might work for your case, @lguerard, I believe there was some other breakage since f37c98f. It would be good to have unit test cases for this 😄 |
Indeed, sorry about this. I'll investigate a bit more and update this PR when I have found something ! |
Actually, I think I was right. If I understand correctly what the Stitching/src/main/java/plugin/Stitching_Grid.java Lines 417 to 418 in 340ab11
only changes the grid elements which corresponds to the position of the tiles no ? The real downsampling of the ImagePlus is happening here and only if the GridType is 5 or 7.Stitching/src/main/java/plugin/Stitching_Grid.java Lines 460 to 466 in 340ab11
|
Just changing this line fixes the issue with the TileConfiguration reported here : https://forum.image.sc/t/fusion-of-label-images-using-downsampling/73150
Closes #38.