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
Get the best level to use for displaying the given downsample.
so I assume it'll find the level that gives the closest downsample level to what user specified.
But it's not clear what method it uses.
For example I have an image with the level_downsamples: (1.0, 4.000338983050847, 16.003617096842103, 64.08332759265456)
and I specify get_best_level_for_downsample(64) which returns level 2, corresponding to a downsample of 16.0036.
From source code it looks like it just chooses the largest level with a downsample less than user's downsample. This should be documented.
Context
Issue type (bug report or feature request): Feature request
Operating system (e.g. Fedora 24, Mac OS 10.11, Windows 10): RHEL 7.6
Platform (e.g. 64-bit x86, 32-bit ARM): x86_64
OpenSlide version: 3.4.1
Slide format (e.g. SVS, NDPI, MRXS): SVS
Details
get_best_level_for_downsample
has very little documentation on what it actually does.In https://openslide.org/api/openslide_8h.html, the official API, it says
so I assume it'll find the level that gives the closest downsample level to what user specified.
But it's not clear what method it uses.
For example I have an image with the
level_downsamples
: (1.0, 4.000338983050847, 16.003617096842103, 64.08332759265456)and I specify
get_best_level_for_downsample(64)
which returns level 2, corresponding to a downsample of 16.0036.From source code it looks like it just chooses the largest level with a downsample less than user's downsample. This should be documented.
openslide/src/openslide.c
Lines 426 to 446 in f55a3bf
The text was updated successfully, but these errors were encountered: