spatialConversion
- xripl.visualizations.spatialConversion(img, px2Um, pxRef, umRef, method='vertical')[source]
Generates spatial extents of image in micrometers, by using the image shape, pixel to micrometer conversion factor, and a reference position defined in both pixel and micrometer coordinates.
- imgnumpy.ndarray
Image for getting spatial conversion coordinates.
- px2Umfloat
Conversion factor micrometers / pixel for the image.
- pxReftuple
Reference position in pixels.
- umReftuple
Reference position in micrometers.
- methodstr
Marble images are horizontal by default, but we make them vertical to match Ranjan SBI paper with shock propagating downward. Default shock direction is vertical.