Login  Register

Re: How to avoid updating the image

Posted by Pariksheet Nanda on Oct 14, 2014; 3:07pm
URL: http://imagej.273.s1.nabble.com/How-to-avoid-updating-the-image-tp5010025p5010034.html

On Tue, Oct 14, 2014 at 8:30 AM, Avital Steinberg
<[hidden email]> wrote:
> How can I cancel the display of the moving ROI? (needless to
> say, it's slow)

Try using setBatchMode(true) so, for example, adding that makes a
script like this this execute much faster.

setBatchMode(true);
run("Blobs (25K)");
imWidth = getWidth();
imHeight = getWidth();
roiWidth = roiHeight = 25;
for (x = 0; x < imWidth - roiWidth; x++)
{
    for (y = 0; y < imHeight - roiHeight; y++)
    {
        makeOval(x, y, roiWidth, roiHeight);
        run("Measure");
    }
}


> Avital

Pariksheet

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html