-
Hi! I am using Fast library in python, and importing a WSI with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi If that information is stored in your TIFF you can get that information with the getSpacing() method. For an extracted patch at level, x, y with a specific width and height: access = imagePyramid.getAccess(fast.ACCESS_READ)
image = access.getPatchAsImage(level, x, y, width, height)
spacing_x = image.getSpacing()[0,0]
spacing_y = image.getSpacing()[1,0] This corresponds to the spacing for the given level of the patch. You can also get the spacing for level 0 directly from the image pyramid: spacing_x = imagePyramid.getSpacing()[0,0]
spacing_y = imagePyramid.getSpacing()[1,0] |
Beta Was this translation helpful? Give feedback.
Hi
If that information is stored in your TIFF you can get that information with the getSpacing() method.
For an extracted patch at level, x, y with a specific width and height:
This corresponds to the spacing for the given level of the patch.
You can also get the spacing for level 0 directly from the image pyramid: