// @int(label = "Number of Rows:", value=3) numRow // @int(label = "Number of Columns:", value=3) numCol // @double(label = "Image scaling factor:", value=0.5) numScale // @double(label = "Horizontal FOV (inch):", value=8.5, description="This is the width in inches that you wish to use for you horizontal field of view.") hFOV // @String(label = "Close stack after?", choices={"Yes", "No"}, style="radioButtonHorizontal") closeStack // @String(label = "Edit stack order?", choices={"Yes", "No"}, style="radioButtonHorizontal") editStack // @String(Label = "Include filename?", choices={"Yes", "No"}, style="radioButtonHorizontal", description="Note: This will not remove names from a stack that already has names..") fileName // @String(Label = "Include Border?", choices={"Yes", "No"}, style="radioButtonHorizontal") useBorder // Check if a stack is already open, if not, convert the open windows into a stack. if (nSlices<2) { run("Images to Stack", "name=Stack title=[] use"); if (editStack=="Yes") { run("Stack Sorter"); waitForUser; } } // Need the identifyer of the stack stackID=getImageID; // Check for stack index out of range error: if (nSlices