

// Script function: Output length per pixel (pixel size) of the image
// Requirement: Open an image

// Unless named starting with GlobalSino, EM, My, Self, the function commands are defined 
//by Gatan DM, please see at link: http://www.globalsino.com/EM/page2597.html


image GlobalSinoImage
 
if ( !GetFrontImage( GlobalSinoImage ) )
Throw( "Please open an image" )

GlobalSinoImage:=GetFrontImage()

number SCx, SCy
GetScale(GlobalSinoImage, SCx, SCy)

String EMLengthUnits = GetUnitString(GlobalSinoImage)

result ("\n\n")
result ("Length per pixel (pixel size) of the image is: ")
result ("\n" + SCx + " " + EMLengthUnits)



