
// Script function: Live profile.
// 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!" )
ImageDisplay MyProfile = GlobalSinoImage.ImageGetImageDisplay( 0 )
Number EMx, EMy
GetSize( GlobalSinoImage, EMx, EMy )
Number MyAverage = 0.2*EMy
NewLiveProfile( MyProfile, 0.2*EMx, 0.3*EMy, 0.4*EMx, 0.6*EMy, MyAverage )
