requires("1.46g"); rename("image"); w=getWidth(); h=getHeight(); s=nSlices(); selectWindow("image"); temp=getDirectory("home"); print("temp",temp); run("3D Manager"); Ext.Manager3D_AddImage(); Ext.Manager3D_Measure(); newImage("color size", "8-bit Black", w, h, s); selectWindow("color size"); Ext.Manager3D_Count(nb); Ext.Manager3D_Measure3D(0,"Vol",V); max=V; min=V; // loop to find max and min volumes for(i=1;imax) { max=V; } if(V