setBatchMode(false); // Select the slice with highest intensity and Set display; Maxstack=0; Minstack=65500; OptSlice=0; for (i=1; iMaxstack) { Maxstack=max; Minstack=min; OptSlice=i; } } setSlice(OptSlice); setMinAndMax(Minstack, Maxstack); // Get info on the setup; getDateAndTime(year, month, dayOfWeek, dayOfMonth, hour, minute, second, msec); Dayadjust = ""; if (dayOfMonth<10) {Dayadjust = "0";} month=month+1; Monthadjust = ""; if (month<10) {Monthadjust = "0";} date = ""+year+"-"+Monthadjust+month+"-"+Dayadjust+dayOfMonth; Dialog.create("Image and microscope information"); Dialog.addString("Microscope Name:", ""); Dialog.addNumber("Magnification:", 100); Dialog.addString("NA:", "1.4"); Dialog.addNumber("Pixel size (nm):", 60); Dialog.addString("Date:", date); Dialog.show(); microscope = Dialog.getString(); MA = Dialog.getNumber(); NA = Dialog.getString(); xyVoxel = Dialog.getNumber(); date = Dialog.getString(); MainName=date+"_"+microscope+"_"+MA+"x_"+NA; zVoxel=200; setVoxelSize(xyVoxel, xyVoxel, zVoxel, "nm"); rename("Stack"); ROIsize=round(15000/xyVoxel); halfROIsize = round(ROIsize/2); boucle=1; while (boucle!=0) { getCursorLoc(x, y, z, flags); if (flags==4) boucle=0; } OptSlice=z; zProfileX = newArray(100); zProfileY = newArray(100); for (i=0; i=MaxGraph) {MaxGraph = YplotLatReal[i];} } XplotLatFit = newArray(Amplitude*4); YplotLatFit = newArray(Amplitude*4); Ymin=66000; Ymax=0; for (i=0; i=MaxGraph) {MaxGraph = YplotLatFit[i];} if (Ymin>YplotLatFit[i]) {Ymin=YplotLatFit[i];} if (Ymax=MaxGraph) {MaxGraph = y[i];} } XplotLatFit = newArray(65); YplotLatFit = newArray(65); for (i=0; i<65; i++) { XplotLatFit[i] = (i/4-8)*xyVoxel; X = i/4-8; YplotLatFit[i] = a + (b-a)*exp(-(X-c)*(X-c)/(2*d*d)); if (YplotLatFit[i]>=MaxGraph) {MaxGraph = YplotLatFit[i];} if (Ymin>YplotLatFit[i]) {Ymin=YplotLatFit[i];} if (Ymax