// Script function: Get lowest and highest displayed intensity, which can be found at DigitalMicrograph > Display > Image info ... > Line Plot // Requirement: Open a 1-D 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 := GetFrontImage() showImage( GlobalSinoImage ) ImageDisplay EMDisplay = GlobalSinoImage.ImageGetImageDisplay(0) number EMLowLimit, EMHighLimit EMDisplay.LinePlotImageDisplayGetContrastLimits( EMLowLimit, EMHighLimit ) // Get lowest and highest displayed intensity result ("Low Limit: " + EMLowLimit + "\n") result ("High Limit: " + EMHighLimit + "\n") result ("\n")