Skip to content

list available image levels in wsi #219

Answered by smistad
mhoibo asked this question in Q&A
Discussion options

You must be logged in to vote

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:

for i in range(image.getNrOfLevels()):
    print(i, image.getLevelWidth(i), image.getLevelHeight(i))

You can see all the methods available for image pyramids here: https://fast.eriksmistad.no/classfast_1_1ImagePyramid.html#a2d796e7933254635ce4a7a0fa5e45cb1

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@smistad
Comment options

Answer selected by mhoibo
@mhoibo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants