-
Notifications
You must be signed in to change notification settings - Fork 30
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
Calculation of numberOfTilesX and numberOfTilesY subtracts xOsiz/yOsiz instead of xTOsiz/yTOsiz #221
Comments
Looks like a fault of the images, not Jpylyzer, see: |
Hi Johan, Thank you for looking into this -- it always useful to confirm against other peoples' code. With that said, -- please correct me if I am wrong -- the image Thank you. Kind regards, |
I think you're right - looking at the code again: jpylyzer/jpylyzer/boxvalidator.py Line 1924 in b5d4d97
Here I see: numberOfTilesX = math.ceil((xsiz - xOsiz) / xTsiz)
numberOfTilesY = math.ceil((ysiz - yOsiz) / yTsiz) But of course this should be: numberOfTilesX = math.ceil((xsiz - xTOsiz) / xTsiz)
numberOfTilesY = math.ceil((ysiz - yTOsiz) / yTsiz) Will correct this in the stable release. Thanks again for reporting this, and apologies for any confusion caused by my initial response! |
Thank you Johan. |
As described here by @comstock and @aous72:
aous72/OpenJPH#113 (comment)
Some of the files (both JPH and codestream) fail validation with:
TODO: figure out whether this is a Jpylyzer bug or a real fault of the images.
The text was updated successfully, but these errors were encountered: