Skip to content

Commit

Permalink
Change the way zoom factors are computed
Browse files Browse the repository at this point in the history
Addresses issue #31
  • Loading branch information
hackermd committed Aug 18, 2020
1 parent e0e2455 commit 7495def
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api.js
Expand Up @@ -517,7 +517,7 @@ class VLWholeSlideMicroscopyImageViewer {
* Compute the resolution at each pyramid level, since the zoom
* factor may not be the same between adjacent pyramid levels.
*/
let zoomFactor = pixelSpacing[0] / basePixelSpacing[0];
let zoomFactor = baseTotalPixelMatrixColumns / totalPixelMatrixColumns;
resolutions.push(zoomFactor);

/*
Expand Down

0 comments on commit 7495def

Please sign in to comment.