Memory matters, I think...
Posted by Andy Weller on
URL: http://imagej.273.s1.nabble.com/Memory-matters-I-think-tp3701987.html
Dear all,
Is there any way to 'flush out' the memory at the start of a macro/for
loop?
My macros keep coming up with problems that do not occur if I run things
manually in exactly the same routine!?
For example, on some occasions, it says that run("Create Selection")
needs a thresholded/binary image. I have set this up correctly:
setAutoThreshold();
run("Analyze Particles...", "size=5000-Infinity circularity=0.00-1.00
show=Masks exclude clear include");
mask = getImageID;
run("Copy");
setPasteMode("AND");
selectImage(img1);
run("Paste");
resetThreshold();
selectImage(mask);
run("Create Selection"); // requires 1.37j
on other occasions, with the same dataset, it gets passed this point!?
There's also a convex hull problem. Initially, I found that to run:
run("Enlarge...", "enlarge=0");
run("Fit Spline");
prior to:
run("Convex Hull");
seems to solve the closed/polyline/polygon ROI problem. This, however,
is sometimes reoccurring?!
Strange?! My only thought is that it is a memory problem...
Cheers, Andy