-
Hi! I want to extract patches from random levels in wsis, using the fast PatchGenerator, and thus want to know which levels already exist, to avoid the script from crashing when trying to extract from levels that does not exist. |
Beta Was this translation helpful? Give feedback.
Answered by
smistad
Jan 7, 2025
Replies: 1 comment 2 replies
-
I think I figured it out, getNrOfLevels() on the image pyramid |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes you can use image.getNrOfLevels().
With this you can also loop over all levels if you wish to inspect the size of each level:
You can see all the methods available for image pyramids here: https://fast.eriksmistad.no/classfast_1_1ImagePyramid.html#a2d796e7933254635ce4a7a0fa5e45cb1