Grid2MicsPerPixel
function to measure the exact number of microns per pixel along the rows and columns of your grid images. ImageData
.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.plotFov2VoltageCurve
and 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 Grid2MicsPerPixel
. hSI.objectiveResolution
which 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.objectiveResolution
value 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..yml
file that looks like this:SETTINGS
folder and call it frameSizes.yml
.csv
file. SIBT
class to return the number of microns per pixel ScanImage thinks you have: hBT.scanner.returnScanSettings
. Read the micronsPerPixel_cols
field. hSI.objectiveResolution
at the command line and re-run above until the nominal number of microns per pixel for this setting matches the value returned by micronsPerPixel_cols
. hSI.objectiveResolution
value in the objRes
field of the .yml
file. hBT.scanner.setImageSize
(a method of SIBT
), should you want to apply this at the command line. The hSI.objectiveResolution
is not cached in the ScanImage .cfg
file.