@@ -194,8 +194,6 @@ function _computeImagePyramid({ metadata }) {
194194 const pyramidResolutions = [ ]
195195 const pyramidOrigins = [ ]
196196 const pyramidPixelSpacings = [ ]
197- const pyramidImageSizes = [ ]
198- const pyramidPhysicalSizes = [ ]
199197 const offset = [ 0 , - 1 ]
200198 const baseTotalPixelMatrixColumns =
201199 pyramidBaseMetadata . TotalPixelMatrixColumns
@@ -212,11 +210,6 @@ function _computeImagePyramid({ metadata }) {
212210 pyramidGridSizes . push ( [ nColumns , nRows ] )
213211 pyramidPixelSpacings . push ( pixelSpacing )
214212
215- pyramidImageSizes . push ( [ totalPixelMatrixColumns , totalPixelMatrixRows ] )
216- pyramidPhysicalSizes . push ( [
217- ( totalPixelMatrixColumns * pixelSpacing [ 1 ] ) . toFixed ( 4 ) ,
218- ( totalPixelMatrixRows * pixelSpacing [ 0 ] ) . toFixed ( 4 ) ,
219- ] )
220213 let zoomFactor = baseTotalPixelMatrixColumns / totalPixelMatrixColumns
221214 const roundedZoomFactor = Math . round ( zoomFactor )
222215 /*
@@ -243,29 +236,6 @@ function _computeImagePyramid({ metadata }) {
243236 pyramidGridSizes . reverse ( )
244237 pyramidOrigins . reverse ( )
245238 pyramidPixelSpacings . reverse ( )
246- pyramidImageSizes . reverse ( )
247- pyramidPhysicalSizes . reverse ( )
248-
249- const uniquePhysicalSizes = [
250- ...new Set ( pyramidPhysicalSizes . map ( ( v ) => v . toString ( ) ) ) ,
251- ] . map ( ( v ) => v . split ( ',' ) )
252- if ( uniquePhysicalSizes . length > 1 ) {
253- console . warn (
254- 'images of the image pyramid have different sizes: ' ,
255- '\nsize [mm]: ' ,
256- pyramidPhysicalSizes ,
257- '\npixel spacing [mm]: ' ,
258- pyramidPixelSpacings ,
259- '\nsize [pixels]: ' ,
260- pyramidImageSizes ,
261- '\ntile size [pixels]: ' ,
262- pyramidTileSizes ,
263- '\ntile grid size [tiles]: ' ,
264- pyramidGridSizes ,
265- '\nresolution [factors]: ' ,
266- pyramidResolutions ,
267- )
268- }
269239
270240 /**
271241 * Frames may extend beyond the size of the total pixel matrix.
0 commit comments