Grid2MicsPerPixel(ImageData). A new window will appear with the grid fitted and the number of microns per pixel in X and Y reported.
hSI.hScan2D.plotFov2VoltageCurveand try to generate a square-looking image by adding and moving the control points up and down with buttons at the bottom right. Measure each time with
hSI.objectiveResolutionwhich is the number of microns per degree of scan angle. You can just do this at the command line and the value persists across sessions (no need to explicitly save it).
hSI.objectiveResolutionvalue seems to vary slightly (but significantly) between different image resolutions. Furthermore, some image resolutions produce square images for a given set of scan settings and others do not. So you want to choose good parameters that be easily re-loaded.
.ymlfile that looks like this:
SETTINGSfolder and call it
SIBTclass to return the number of microns per pixel ScanImage thinks you have:
hBT.scanner.returnScanSettings. Read the
hSI.objectiveResolutionat the command line and re-run above until the nominal number of microns per pixel for this setting matches the value returned by
hSI.objectiveResolutionvalue in the
objResfield of the
hBT.scanner.setImageSize(a method of
SIBT), should you want to apply this at the command line. The
hSI.objectiveResolutionis not cached in the ScanImage