// Script function: Extract and show the ROI in the most front image or the most front image if it has not ROI.
// 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 MyFrontIMG:=getfrontimage()[] 
showimage (MyFrontIMG)